Sprict is beeing compiled but not imported

Make games! Discuss those games here.

Moderators: Bob the Hamster, marionline, SDHawk

Post Reply
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

Sprict is beeing compiled but not imported

Post by marionline »

Hello, i'm having trouble with my script for checking seasons again.
:(

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?


# 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! :???:
Last edited by marionline on Sat Oct 01, 2011 8:51 pm, edited 1 time in total.
User avatar
shakeyair
Slime Knight
Posts: 215
Joined: Fri Jun 12, 2009 6:15 am

Post by shakeyair »

only scripts defined with the word plotscript will be selectable in editor.

Code: Select all

Script, Map05Haustuer1Winter, begin 

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

end 
is what you have

Code: Select all

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.
Last edited by shakeyair on Sat Oct 01, 2011 10:47 pm, edited 1 time in total.
User avatar
marionline
Metal Slime
Posts: 673
Joined: Sat Feb 26, 2011 9:23 pm

Post by marionline »

Thank you!

Code:
plotscript, Map05Haustuer1Winter, begin

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

end

is what you want.

<- I'll remember that! :D
Post Reply