Jump to content

bg2 scripting wake up from sleep


vanatos

Recommended Posts

Hi, i have a script to put characters (player1 etc) to sleep with a spell. I want to awaken them and see them stand up.

Ive played around creating custom spells and using spell effect 'cure sleep' this merely removes the sleep status but their still lying on the ground. How do i make them stand up?

 

Link to post

Hmmm, according to the IESDP the "cure sleep" effect doesn't remove the helpless state. If you look at cutscenes you'll get a good idea of what the game uses to mimic sleep (PlayDead, etc.), such as when our characters are "knocked out" during a scene, then get up and walk toward an actor, etc. Scenes involving Jon Irenicus do this as I recall.

Link to post

Ahh ive tried playing around with PlayDead, it seems that command 'blocks' a script per the wait period specified in it.

while i needed a 'sleep' animation that i can interrupt at certain points on my discretion via scripts.

 

Maybe there is no way, thanks for having a look.

Link to post

The only other thing I can think of, since I haven't spent much time with the sleep system, is perhaps employing scripted Sequences via SEQ.IDS  which cause the character to perform various actions, including AWAKE.

Edited by Endurium
edited to specify BG2 IDS
Link to post

Hi, just i figured it out from your suggestions thanks.

I made a spell that had an effect 'cure_sleep', this only removed the status sleep but did not make my characters stand up.

i added an effect 'animation_sequence' with 'seq_awake' sequence and it worked.

Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...