Page 1 of 1
Plotscripts w/ tags
Posted: Thu Dec 21, 2017 5:47 pm
by AzureGames
How do I end a plotscript with tags in it? And I mean LOTS of tags.

Posted: Thu Dec 21, 2017 7:23 pm
by Bob the Hamster
I don't understand the question. You are asking how you end the plotscript? Are you getting an error message when you try to compile/import the plotscript?
If so, you can copy-paste the error message, or post a screenshot.
You can also post the text of the script here, or if it is too long, put it up on pastebin.com and put a link to it here.
Sorry to confuse you.
Posted: Thu Dec 21, 2017 8:01 pm
by AzureGames
...Well... I think I can provide you with a similar, shorter plotscript. The one I'm using, you see, would just be way too long.
Code: Select all
plotscript, script1, begin
if (check tag (tag: tag1)==on) then, begin
set tag (tag: tag2, off)
set tag (tag: tag3, on)
???
plotscript, script2, begin
Whenever I try to export my plotscript, it just says "declaration script2 is not permitted inside a script. Perhaps script1 has an extra begin or ("
Posted: Thu Dec 21, 2017 8:51 pm
by TMC
Every ( or begin (they're just two different ways of writing the same thing) needs a matching ) or end to show where the thing started by (/begin ends. So you need an 'end' to end the 'then' block, and a second one to end the 'script':
Code: Select all
plotscript, script1, begin
if (check tag (tag: tag1)==on) then, begin
set tag (tag: tag2, off)
set tag (tag: tag3, on)
end
end
Hint: indentation is very very helpful for keeping track of where you need to put the 'end's as your script gets longer. Not using indentation is a clinical indicator for madness.
Hmmmm...
Posted: Sun Dec 24, 2017 3:35 pm
by AzureGames
Well, thanks I guess.
Another Question...
Posted: Thu Jan 25, 2018 6:17 pm
by AzureGames
What's the plotscripting command (or whatever it's called) for adding/removing heroes in/to the party?
Thanks in advance.

Posted: Thu Jan 25, 2018 6:22 pm
by Bob the Hamster
The commands you want are "add hero" and "delete hero"
You will find them here:
http://hamsterrepublic.com/ohrrpgce/doc ... he%20Party