Jump to content


Waking Up


  • Please log in to reply
5 replies to this topic

#1 -Moonfruit-

-Moonfruit-
  • Guest

Posted 03 July 2003 - 10:35 AM

I'm trying to awake somone who is sleeping, after a certain person is dead.

The code looks something like this:

IF
Dead("BadGuy")
StateCheck("GoodGuy",STATE_SLEEPING)
THEN
RESPONSE #100
?????
END

Problem is I can't find a command to wake the GoodGuy up.

Can someone help.

#2 -SlidMang0-

-SlidMang0-
  • Guest

Posted 03 July 2003 - 12:43 PM

You have to do it via spell effect, not script action.

#3 -Moonfruit-

-Moonfruit-
  • Guest

Posted 04 July 2003 - 01:36 PM

You have to do it via spell effect, not script action.

Could you be a little more specific? I've tried finding a Wake Up effect, but have thus far been unsuccessful.

#4 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 06 July 2003 - 01:31 AM

In dltc we had to modify/create a sleep effect that is specifically dispellable.
Sadly the wake opcode (2) which supposed to work, doesn't work at all.
Avenger

#5 Cuv

Cuv

    Area Maker (retired)

  • Modder
  • 925 posts

Posted 06 July 2003 - 01:50 PM

Why not try:

StaticSequence("badguy",SEQ_SLEEP)

SetSequence("badguy",SEQ_AWAKE)

Just set your sequences to whatever animations you want them to have. Here is a test script I have with this in it:

IF
HotKey(D)
THEN
RESPONSE #100
MoveToPointNoInterrupt([1742.1351])
SmallWait(2)
MoveToPointNoInterrupt([1917.1326])
SmallWait(2)
MoveToPointNoInterrupt([1844.1377])
SmallWait(2)
SetSequence(SEQ_CONJURE)
Wait(4)
SetSequence(SEQ_ATTACK_JAB)
Wait(1)
SetSequence(SEQ_CONJURE)
Wait(4)
SetSequence(SEQ_ATTACK_SLASH)
Wait(1)
SetSequence(SEQ_CONJURE)
Wait(4)
SetSequence(SEQ_READY)
END


Cuv

#6 -Moonfruit-

-Moonfruit-
  • Guest

Posted 06 July 2003 - 01:59 PM

Why not try:

StaticSequence("badguy",SEQ_SLEEP)

SetSequence("badguy",SEQ_AWAKE)

Thanx Cuv

I'll give it a try and get back to you.