Keys used with NPC systems

How many keys on the keyboard can be read by graal for use with NPCs or systems??
(im hoping to make a new way of playing the game, but need to know what keys i can use first)

You can use all of them.

if (keypressed) {
if (keydown2(keycode(Put_key_here_please),false)) {
//do stuff;
}
}

OR

if (keypressed) {
if (strequals(#p(1),Put_key_here_please)) {
//do stuff;
}
}

ok so i can rewite it to use the numbers 0 to 9, and have “I” “G” “S” doing other stuff just with this code?

if (keypressed) {
if (keydown2(keycode(I),false)) {
message you are pressing “I”.;
sleep 1;
message Press any key.;
}
}

ok i will try it out.

(ps. i cant find my “any key” i think i lost it)

Mhmm, that would force you to push shift and i, since its capitol.
Also, why not just do:
if (keypressed) {
message You are pressing #p(1);
}

??? Dont use sleep?? wow thats like one of my fav commands its easier than setting a tag then a time with an if to that tag, then unseting the tag all to get a delayed function, all you need is sleep it was that easy. :frowning:

Use this scriprt in the editor. It’ll help you out.

if (keypressed) setplayerprop #c,#p(1) : #p(0);


___Merged doublepost__________________

This thread should be in the NPC forum…

I can’t think of a good time to use sleep. Not yet anyway.