Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

[Answered] Chapter script

16 years ago

Before I start, I'd like to say that this seems like something that might have been suggested in the past, but I found nothing like this when I used the search for chapter script, and when I skimmed through the articles. Of course, I didnt' look very hard. Anyway, the idea is to have global scripts that are only active during certain chapters. For example, say that in a run-down town, for every action you take, you have a chance of having something stolen from you via random variables. Or in a desert your hydration decreases at a faster rate, or have an air variable that only decreases underwater or in a building on fire choked with smoke, or something like that. Sure, you could script it page by page, but I just thought I'd throw this idea out there to see what everyone thinks.

[Answered] Chapter script

16 years ago
I'm not sure - but I think there is a chapter script which works similarly to $PAGEID or whatever except you replace it with $CHAPTERID. Something like that. Give it a shot, anyway, but I'm pretty sure it works.

[Answered] Chapter script

16 years ago

October is correct. Figure out what ID the chapter is that you want to limit the script to and write this in the global link script:

IF $CHAPTERID = 3 THEN
BEGIN
yourscript
END

Substitute 3 for whatever ID your chapter is.

[Answered] Chapter script

16 years ago
Also moved because yes its been suggested before, and alex's reply was to use to use the above method. there will be no chapter scripts implemented.

[Answered] Chapter script

16 years ago
Thanks, it works well. It's so obvious that now I feel a little silly. You guys rock..

[Answered] Chapter script

16 years ago
Yeah, I know how you feel: Same thing happens to me :P