How do I end a plotscript with tags in it? And I mean LOTS of tags.
Plotscripts w/ tags
Moderators: Bob the Hamster, marionline, SDHawk
- Bob the Hamster
- Lord of the Slimes
- Posts: 7658
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
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.
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.
-
- Red Slime
- Posts: 49
- Joined: Thu Oct 29, 2015 8:18 pm
Sorry to confuse you.
...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.
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 ("
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
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':
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.
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
Last edited by TMC on Thu Dec 21, 2017 8:52 pm, edited 1 time in total.
-
- Red Slime
- Posts: 49
- Joined: Thu Oct 29, 2015 8:18 pm
Another Question...
What's the plotscripting command (or whatever it's called) for adding/removing heroes in/to the party?
Thanks in advance.
Thanks in advance.
- Bob the Hamster
- Lord of the Slimes
- Posts: 7658
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
The commands you want are "add hero" and "delete hero"
You will find them here: http://hamsterrepublic.com/ohrrpgce/doc ... he%20Party
You will find them here: http://hamsterrepublic.com/ohrrpgce/doc ... he%20Party