View Single Post
  #3  
Old 01-09-2005, 03:54 PM
Aethorpe Aethorpe is offline
Their black hands protect
Aethorpe's Avatar
Join Date: Dec 2004
Location: Beyond infinite.
Posts: 265
Aethorpe is on a distinguished road
Send a message via AIM to Aethorpe Send a message via MSN to Aethorpe
Quote:
Originally Posted by middo
NPC Code:

if (keypressed && strequals(#p(1),k)) {
say2 OMG U PRESS K KEY.
}



That's the lazy way, and there are many better ways of putting it together, but I forget them right now.
(Some people are obsess with the keycode function, I just say screw it))
Thanks, but, uh, care to explain how that works? I'm not sure I understand '#p(1)'. Sorry, I am just starting out with this.

I also had a question about strings, what command updates a string to a new value? Maybe I am blind, but I seriously do not see one. I used setstring to create the string, this is correct, right? And to change it?

I really appreciate the help, thanks again.
__________________
Reply With Quote