Page 1 of 1

Making a character "doing something else"

Posted: Fri Aug 03, 2007 4:07 pm
by mr bubbles
I'm having a brain fart atm :P

How do I make a character in use, like he's already performing another skill. I have a script I want the player to treat like a skill when using it, so he cant use any skills when running it.

cheers

Posted: Fri Aug 03, 2007 7:08 pm
by CWO
this is done by attaching the script to them. The code would go something like this...

Code: Select all

  if (who.attached)
    SendSysMessage(who, "You are already doing something else.");
    return;
  endif
  Attach(who);
if you come to a point where the code in the script should still run but it shouldn't stop the char from doing something else anymore, call Detach(who);