I need help to find the mistakes in this ploscrit, the messages I recives while runing hamsterspeak/the editor were a bit confusing. Maybe I'm doing something fundamentally wrong with if-else-clauses. I don't know, so I ask for help.
This is the whole plotscript ...
Code:
include, plotscr.hsd
include, FoolsQuest.hsi
# Here all the scripts go, that are used in the game FooldQuest (against the All-Seeing-Eye)
# ~marionline
#Tutorial
# run by NPCs to check what they say.
#checks the follwing tags
#4,tag:have bag
#5,tag:have coat
#6,tag:have bottle
#7,tag:have Kerli
#15,tag:Donowell in team
plotscript, bag, begin
if (checktag (4) == 1) then,
show text box (11) # Great! Now, let's get the red bottle. It's a potion, use it to recover HP.
else then
show text box (15) # That's not the thing I'm looking for right now...
end # end of plotscript
plotscript, coat, begin
if (checktag (4) == 1) then,
show text box (15) # That's not the thing I'm looking for right now...
else if (checktag (5) == 1)
show text box (15) # That's not the thing I'm looking for right now...
else then
show text box (15) # That's not the thing I'm looking for right now...
end # end of plotscript
plotscript, bottle, begin
if (checktag (6) == 1) then, begin
show text box (12) # Eh? Where is my marionette?
end
else if (check tag (4) == 1)
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end if the else-clause
else if (check tag (5) == 1)
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end if the else-clause
else then
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end the else-clause
end # end of plotscript
plotscript, bird,begin
else if (check tag (7) == 1)
begin
show text box (13) #fight bird
if (checktag check tag (6) == 1) then,
beginn
show text box (15) # That's not the thing I'm looking for right now...
end # of the if-clause
else if ( check tag (4) == 1)
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end if the else-clause
else if ( check tag (5) == 1)
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end if the else-clause
else then
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end the else-clause
end # end of plotscript
plotscript, NPC Kobold, begin
# if Do-no-Well is team leader:
if (checktag check tag (15) == 1) then,
begin
show text box (86)
end #end if the if-clause
end # end of plotscript
include, plotscr.hsd
include, FoolsQuest.hsi
# Here all the scripts go, that are used in the game FooldQuest (against the All-Seeing-Eye)
# ~marionline
#Tutorial
# run by NPCs to check what they say.
#checks the follwing tags
#4,tag:have bag
#5,tag:have coat
#6,tag:have bottle
#7,tag:have Kerli
#15,tag:Donowell in team
plotscript, bag, begin
if (checktag (4) == 1) then,
show text box (11) # Great! Now, let's get the red bottle. It's a potion, use it to recover HP.
else then
show text box (15) # That's not the thing I'm looking for right now...
end # end of plotscript
plotscript, coat, begin
if (checktag (4) == 1) then,
show text box (15) # That's not the thing I'm looking for right now...
else if (checktag (5) == 1)
show text box (15) # That's not the thing I'm looking for right now...
else then
show text box (15) # That's not the thing I'm looking for right now...
end # end of plotscript
plotscript, bottle, begin
if (checktag (6) == 1) then, begin
show text box (12) # Eh? Where is my marionette?
end
else if (check tag (4) == 1)
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end if the else-clause
else if (check tag (5) == 1)
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end if the else-clause
else then
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end the else-clause
end # end of plotscript
plotscript, bird,begin
else if (check tag (7) == 1)
begin
show text box (13) #fight bird
if (checktag check tag (6) == 1) then,
beginn
show text box (15) # That's not the thing I'm looking for right now...
end # of the if-clause
else if ( check tag (4) == 1)
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end if the else-clause
else if ( check tag (5) == 1)
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end if the else-clause
else then
begin
show text box (15) # That's not the thing I'm looking for right now...
end #end the else-clause
end # end of plotscript
plotscript, NPC Kobold, begin
# if Do-no-Well is team leader:
if (checktag check tag (15) == 1) then,
begin
show text box (86)
end #end if the if-clause
end # end of plotscript



