Post new topic    
Liquid Metal Slime
Send private message
Calling scripts from within scripts 
 PostWed Dec 22, 2010 10:44 pm
Send private message Reply with quote
My game over script is as buggy as ever. The problem is that the game over will inevitably interrupt a cutscene, which attempts to continue running even after everything's been reset.
EDIT: This also happens when everyone dies in battle and the game over script is triggered normally, after being set with "set death script" earlier in the cutscene.
Here's what I've been doing:
Code:
#CUTSCENE PLOTSCRIPT
#BATTLE
#CHECK FOR CASUALTIES:
 if(check tag(tag:atyler)==OFF) then, begin
 run script by id(@ch2_yourjamesover)
 exit script
 end
#tag:atyler is Tyler's "hero is alive" tag; when he's dead, it's off
#CONTINUE WITH THE CUTSCENE IF GAME OVER IS NOT TRIGGERED


Is there a better way to call up the game over script from within another script? Is there a way to completely cut off the rest of the cutscene after the game over script triggers? Apparently "exit script" isn't doing the trick.
Liquid Metal King Slime
Send private message
 
 PostWed Dec 22, 2010 11:40 pm
Send private message Reply with quote
Well, yes there is a way. It's hard to really pinpoint a problem with a script such as this one without seeing the whole thing. If you have everything set up in separate scripts you may need to combine some of them in order to achieve what you're looking for.
Liquid Metal Slime
Send private message
 
 PostThu Dec 23, 2010 12:16 am
Send private message Reply with quote
If anyone's got the time to cover it all, I'll send the scripts in via PM. It's quite long.

Maybe I should split the big cutscene-script into pieces, make it so that one part of the cutscene plays and ends with a battle. Once that's done I'll run the dead-or-alive tag check, and follow up with either the game over script or the next part of the cutscene.
Display posts from previous: