Non-threaded

Forums » Advanced Editor Forum » Read Thread

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

Help with variables

10 years ago

I need help again. Is there a way where you can make a variable, say money, appear in a certain chapter?

Help with variables

10 years ago

Well yeah. Each chapter has a $CHAPTERID equal to its number. Just use that to check what chapter it is on in the global page script to see if it appears.

In other words, yes but you need to use scripting.

Help with variables

10 years ago

But scripting is confusing…is there a simple way to use it?

Help with variables

10 years ago

IF $CHAPTERID = 3 THEN
$PAGETEXT := $PAGETEXT + %MONEY

That's about as simple as it can be made, so if that's too complex for your liking, you'd have to manually add money to each page in the chapter.