I just realised that if I try to compile theese two scripts, Hamsterspeak.exe says there is an end missing, if i put an extra end in it, it says there are to many ends in it.
If I complie the scripts one by one, hamster speak dosen't complain at all.
But I have to use both ot them, of course.
I'm confuesd.
Quote: #-----------------------------------------------------------
plotscript, auto-battle, begin
if (check tag (tag:Winter)==true)
then (fight formation (random (1,2)))
else
if (check tag (tag:Fruehling)==true)
then (fight formation (random (3,4)))
else
if (check tag (tag:Sommer)==true)
then (fight formation (random (5,6)))
else
if (check tag (tag:Herbst)==true)
then (fight formation (random (7,8)))
else
end
end
end
#--------------------------------------------------------------
plotscript, Jahreszeiten, begin
#Abfrage für Montate inc. Jahreszeit
# Achtung: Die Tags müssen wieder auf off gesetzt werden!
# Zuerst off-setztn
# Monate
set tag (tag:januar, off)
set tag (tag:februar, off)
set tag (tag:maerz, off)
set tag (tag:april, off)
set tag (tag:mai, off)
set tag (tag:juni, off)
set tag (tag:juli, off)
set tag (tag:august, off)
set tag (tag:september, off)
set tag (tag:oktober, off)
set tag (tag:november, off)
set tag (tag:dezember, off)
# Jahreszeiten
set tag (tag:Winter, off)
set tag (tag:Fruehling, off)
set tag (tag:Sommer, off)
set tag (tag:Herbst, off)
#Abfrage und on-setzen
switch ( system month ) do, begin
case (1) do
(
set tag (tag:januar, on)
set tag (tag:Winter, on)
#optional
show text box (15)
)
case (2) do
(
set tag (tag:februar, on)
set tag (tag:Winter, on)
#optional
show text box (16)
)
case (3) do
(
set tag (tag:maerz, on)
set tag (tag:Fruehling, on)
#optional
show text box (17)
)
case (4) do
(
set tag (tag:april, on)
set tag (tag:Fruehling, on)
#optional
show text box (18)
)
case (5) do
(
set tag (tag:mai, on)
set tag (tag:Fruehling, on)
#optional
show text box (19)
)
case (6) do
(
set tag (tag:juni, on)
set tag (tag:Sommer, on)
#optional
show text box (20)
)
case (7) do
(
set tag (tag:juli, on)
set tag (tag:Sommer, on)
#optional
show text box (21)
)
case (8) do
(
set tag (tag:august, on)
set tag (tag:Sommer, on)
#optional
show text box (22)
)
case (9) do
(
set tag (tag:september, on)
set tag (tag:Herbst, on)
#optional
show text box (23)
)
case (10) do
(
set tag (tag:oktober, on)
set tag (tag:Herbst, on)
#optional
show text box (24)
)
case (11) do
(
set tag (tag:november, on)
set tag (tag:Herbst, on)
#optional
show text box (25)
)
case (12) do
(
set tag (tag:dezember, on)
set tag (tag:Winter, on)
#optional
show text box (14)
)
end
end
end