Post new topic    
Metal Slime
Send private message
Sprict is beeing compiled but not imported 
 PostSat Oct 01, 2011 7:18 pm
Send private message Reply with quote
Hello, i'm having trouble with my script for checking seasons again.
Sad

So, i need your help again.


These are the scripts in my .hss file.
Everything worked with plotscript auto-battle and Jahreszeiten.
But I can not import the Map05Haustuer1Winter script. I can compile it (Hspeak says 3 script complied), but it's not imported in the editor. ???

I tryed in yfrom+2 and zenzizenzic.

Are the scripts worng?



Quote:

# This is my Seanson+month check script.

include, plotscr.hsd
include, JaneRed_Test.hsi


#---------------------------------------------------

#------------------------------------------------
Script, Map05Haustuer1Winter, begin

teleport to map (07, hero x (me), hero y(me))

end

#Script, Map05Haustuer1Spring, begin
#teleport to map (map, x, y)
#end
#Script, Map05Haustuer1Summer, begin

#teleport to map (map, x, y)
#end
#Script, Map05Haustuer1Autum, begin
#end



#-------------------------------------------------


plotscript, auto-battle, begin
if (check tag (tag:Winter)==true) then(
fight formation(random (1,2))
exit script
)
if (check tag (tag:Fruehling)==true) then(
fight formation (random (3,4))
exit script
)
if (check tag (tag:Sommer)==true) then(
fight formation (random (5,6))
exit script
)
if (check tag (tag:Herbst)==true) then(
fight formation (random (7,8))
exit script
)
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


Do you know what to do? Please help! Confused
Slime Knight
Send private message
 
 PostSat Oct 01, 2011 10:47 pm
Send private message Reply with quote
only scripts defined with the word plotscript will be selectable in editor.

Code:
Script, Map05Haustuer1Winter, begin

teleport to map (07, hero x (me), hero y(me))

end

is what you have

Code:
plotscript, Map05Haustuer1Winter, begin

teleport to map (07, hero x (me), hero y(me))

end


is what you want.

'script, whatever, begin' is used only for scripts which are only called from other scripts.
Metal Slime
Send private message
 
 PostSun Oct 02, 2011 8:58 am
Send private message Reply with quote
Thank you!


Quote:
Code:
Quote:
plotscript, Map05Haustuer1Winter, begin

teleport to map (07, hero x (me), hero y(me))

end



is what you want.



<- I'll remember that! Grin
Display posts from previous: