HELP! Plot Script Crazyness
Moderators: Bob the Hamster, marionline, SDHawk
HELP! Plot Script Crazyness
Hello,
Thank you for reading this!
Wrote my first plot script, very basic..walk show text box, etc...
placed onto the map data and everything worked fine.
Duplicated the txt file:
changed:
plotscript, zero, begin
to:
plotscript, one, begin
changed the name of the txt file to match. (zero/one)
The file imports/compiles fine but erases the previous one. It seems I can only have one plot script, which ever is the latest I compile/import.
I am using a MAC
can anyone help me with this?
Thank you for reading this!
Wrote my first plot script, very basic..walk show text box, etc...
placed onto the map data and everything worked fine.
Duplicated the txt file:
changed:
plotscript, zero, begin
to:
plotscript, one, begin
changed the name of the txt file to match. (zero/one)
The file imports/compiles fine but erases the previous one. It seems I can only have one plot script, which ever is the latest I compile/import.
I am using a MAC
can anyone help me with this?
You should always post your full script when asking questions like this, because it makes it easier to figure out what's going on. From the information you've given, I think your problem is you have scripts you want in two files, let's say One.txt and Two.txt, right? And so you compile One.txt to One.hs, and you import that, and then you compile Two.txt into Two.hs and you import that, and you've only got one script.
What you should do, is put a line at the start of One.txt that says
What you should do, is put a line at the start of One.txt that says
and then compile One.txt. I betcha you'll see your second script then.include, Two.txt
not quite
Thank you for replying.
here are my two scripts.
THE FIRST:
include, plotscr.hsd
include, Rab.hsi
plotscript, PZero, begin
suspend player
walk hero (me,east,2)
wait for hero (me)
walk hero (me,south,3)
wait for hero (me)
show text box (207)
wait for text box
walk hero (me,east,5)
wait for hero (me)
walk hero (me,north,2)
set hero direction (me,south)
show text box (208)
wait for text box
walk hero (me,west,5)
end
THE SECOND
include, plotscr.hsd
include, Rab.hsi
plotscript, pone, begin
suspend player
walk hero (me,east,2)
wait for hero (me)
walk hero (me,south,3)
wait for hero (me)
show text box (209)
wait for text box
walk hero (me,east,5)
wait for hero (me)
walk hero (me,north,2)
set hero direction (me,south)
show text box (210)
wait for text box
walk hero (me,west,5)
end
If I upload the first plot script it works fine. When I upload the second plot script it just replaces the old one.
I tried this at the start
include, plotscr.hsd
include, Rab.hsi
include, pone.txt
and this
include, pone.txt
include, plotscr.hsd
include, Rab.hsi
but both came up with error messages.
here are my two scripts.
THE FIRST:
include, plotscr.hsd
include, Rab.hsi
plotscript, PZero, begin
suspend player
walk hero (me,east,2)
wait for hero (me)
walk hero (me,south,3)
wait for hero (me)
show text box (207)
wait for text box
walk hero (me,east,5)
wait for hero (me)
walk hero (me,north,2)
set hero direction (me,south)
show text box (208)
wait for text box
walk hero (me,west,5)
end
THE SECOND
include, plotscr.hsd
include, Rab.hsi
plotscript, pone, begin
suspend player
walk hero (me,east,2)
wait for hero (me)
walk hero (me,south,3)
wait for hero (me)
show text box (209)
wait for text box
walk hero (me,east,5)
wait for hero (me)
walk hero (me,north,2)
set hero direction (me,south)
show text box (210)
wait for text box
walk hero (me,west,5)
end
If I upload the first plot script it works fine. When I upload the second plot script it just replaces the old one.
I tried this at the start
include, plotscr.hsd
include, Rab.hsi
include, pone.txt
and this
include, pone.txt
include, plotscr.hsd
include, Rab.hsi
but both came up with error messages.
- Urkelbot666
- Slime Knight
- Posts: 188
- Joined: Sat Oct 18, 2014 5:29 pm
separate
It's two separate text files. Should they be in the same txt document?
OMFG
my my, that's it, they needed to be in one document!
You know I hunted every document and F.A.Q. trying to work this out.
Thank you so so much for pointing out the absolute obvious!
You know I hunted every document and F.A.Q. trying to work this out.
Thank you so so much for pointing out the absolute obvious!
- Urkelbot666
- Slime Knight
- Posts: 188
- Joined: Sat Oct 18, 2014 5:29 pm
It's a common mistake; there is actually a FAQ (well, actually it appears this question was removed from the FAQ page, so I put it back):
Why can't I have more than one script at a time?
Also, welcome!
Also, I see that you forgot to put "resume player" at the end of your scripts.
Why can't I have more than one script at a time?
Also, welcome!
Also, I see that you forgot to put "resume player" at the end of your scripts.
Last edited by TMC on Sun Dec 07, 2014 8:58 pm, edited 2 times in total.
Re: not quite
You only need to include plotscr.hsd and Rab.hsi once. When you included your second file, you included it again and were duplicating a lot of the stuff the .hsi and .hsd had already set up, hence the errors. Delete that from the top of the second file, and this time, I bet it'll work. As others have noted, you can have more than one script in a given text file. Whether or not you do is mostly up to your own organizational habits.RabMoghal wrote:Thank you for replying.
here are my two scripts.
THE FIRST:
include, plotscr.hsd
include, Rab.hsi
plotscript, PZero, begin
suspend player
walk hero (me,east,2)
wait for hero (me)
walk hero (me,south,3)
wait for hero (me)
show text box (207)
wait for text box
walk hero (me,east,5)
wait for hero (me)
walk hero (me,north,2)
set hero direction (me,south)
show text box (208)
wait for text box
walk hero (me,west,5)
end
THE SECOND
include, plotscr.hsd
include, Rab.hsi
plotscript, pone, begin
suspend player
walk hero (me,east,2)
wait for hero (me)
walk hero (me,south,3)
wait for hero (me)
show text box (209)
wait for text box
walk hero (me,east,5)
wait for hero (me)
walk hero (me,north,2)
set hero direction (me,south)
show text box (210)
wait for text box
walk hero (me,west,5)
end
If I upload the first plot script it works fine. When I upload the second plot script it just replaces the old one.
I tried this at the start
include, plotscr.hsd
include, Rab.hsi
include, pone.txt
and this
include, pone.txt
include, plotscr.hsd
include, Rab.hsi
but both came up with error messages.
Thank You
Just wanted to say a huge thank you to everyone who replied!
So glad I found this community!
So glad I found this community!
- Urkelbot666
- Slime Knight
- Posts: 188
- Joined: Sat Oct 18, 2014 5:29 pm
Re: Thank You
^^ Yeah, I'd be lost without these goons!RabMoghal wrote:Just wanted to say a huge thank you to everyone who replied!
So glad I found this community!
Re: Thank You
I hope it wasn't hard to find. Really, I would hope people end up here by default.RabMoghal wrote:So glad I found this community!
- Spoonweaver
- Liquid Metal King Slime
- Posts: 6247
- Joined: Mon Dec 08, 2008 7:07 am
- Location: Home
- Contact: