I thought i'd report it as a bug, unless this is already known.
I wanted to import/complie plot scripts, as i've almost forgotten everything about plotscripting I played try and error, correcting the mistakes the OHR complained about.
But after I wrote 'case (<20>6) I got no Error messege.
The whole script lookes like this:
include, plotscr.hsd
include, bla.hsi
plotscript, random-battle, begin
# fight a random formation
fight formation (random (1,2))
end
plotscript, die in battle, begin
# checks if the Tag with the ID TAG-ID is set off, and makes you die in battle. If the tag is set on,
# you can't die in battle.
if (check tag(5)==OFF)
then, begin
game over
end
end
plotscript, checking tag and using door, begin
# checks if a tag is true (checktag:Teleport) and then does use a door
if (checktag (tag:Teleport) ) then
(
use door (1)
)
end
plotscript, changing the palette, begin
# changes the default palette
load palette (1)
end
plotscript, ecyclopedia, begin
# uses a random number and then calls the according text box
switch (random (1,10)) do, begin
case (1) do
(
show textbox(1)
)
case (2) do
(
show text box (16)
)
case (3) do
(
show text box (16)
)
case (4) do
(
show text box (16)
)
case (5) do
(
show text box (16)
)
case (6) do
(
show text box (16)
)
case (7) do
(
show text box (16)
)
case (8) do
(
show text box (16)
)
case (9) do
(
show text box (16)
)
end
end
plotscript, radom encounter base, begin
# a random encounter, or an item or just a text messege
switch (random (1,20))
case (>5)
(
#textbox text: There's nothig there!
show textbox (1)
)
case (>6)
# fight against a random formation, in this case one from 1 to 5
fight formation (random (1,5))
)
case (<20)
# a textbox that tells you, you found an item
# give you that item number 1
show textbox (2)
#get item (item,1)
)
end
By retrying, the compilter told me:
Edit: Edit: posting the script workred, must have been a copy past error. xD



