Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Health problem (hehe)

14 years ago

I typed:

 

IF $CHAPTERID = @C18 THEN
BEGIN
IF %HEALTH < 1 THEN
$DEST = @P208
END

 

Into the global links, but yet, in chapter 18 (and I have quadrouplechecked that it is), Health can go down to 0, and page 208 (which is the death page for that chapter) does not appear. Help anyone?

Health problem (hehe)

14 years ago
The problem is probably that you are using the @C18 to determine the chapter. And you left out the : in the $DEST variable change there. Little problems like these mean everything in scripting.

It should be:

IF $CHAPTERID = 18 THEN
BEGIN
IF %HEALTH < 1 THEN
$DEST := @P208
END

Try that and let us know how it goes.

Health problem (hehe)

14 years ago
It still doesn't work :(

Health problem (hehe)

14 years ago
Give me a sec and I'll test it out, and see if I can get it to do what you want.

Health problem (hehe)

14 years ago
Aaaah, I forgot to change the C@18 to just 18. Now it worked. Thanks.

Health problem (hehe)

14 years ago
Ahhh... alright, awesome!

Health problem (hehe)

14 years ago
Great work, Z.