Hi,
for some unknown reason my script doesn’t what I want it to do… after a lot of trial only producing ERRORs i hope someone can help me…
situation: Allies repair the tram engine (works fine in the map). This should activate a forward spawn, disable the first allied spawn, and also disable the first axis spawn letting axis spawn at a rear spawn (which they also have in the beginning).
problem: The built_final should activate 2 triggers, of which the one for the spawns doesn’t do its duty… the other one works fine (enabling the use of the tram)… ok works fine apart from giving out the message 3 times instead of just once, but, alas…
these are the parts of my script involved:
tramengine
{
built final
{
setstate tramengine default
setstate baumaterial invisible
wm_announce "The tram engine has been repaired!"
trigger tram tramengine_repaired // enable use of tram
trigger spawns tramengine_repaired // for the spawn at tram station
}
(...)
}
tram // objective 1: repairing the tram engine & using the tram
{
(...)
trigger tramengine_repaired
{
accum 1 set 1
accum 4 set 1
wm_announce "The tram can be used USED!" // this message appears 3 times :???:
}
}
(...)
spawns // general action starting here
{
spawn
{
}
trigger tramengine_repaired
{
wait 50
trigger spawnstation_wobj on
wm_announce "spawnstation_wobj on"
wait 50
trigger spawntunnel_wobj off
trigger spawntunnel off
wm_announce "spawntunnel off"
wait 50
alertentity spawnstation_wobj
alertentity spawnstation
setautospawn "station" 1
wm_announce "setautospawn station 1"
wait 50
trigger spawnroad_wobj off
alertentity spawncastle
alertentity spawncastle_wobj
setautospawn "castle" 0
wm_announce "setautospawn castle 0"
}
}
The "off"s und "on"s only effect a setstate XYZ “invisible” or “default” which should enable or disable the spawns (in radar this is used for the allied command post spawn).
The whole lot of wm_announces within the spawns script were only built in for indicating whether this part of the script has been gone through, but as i said, I don’t even get the first one (wm_announce “spawnstation_wobj on” ).
The other trigger in the built_final starts the trigger tram tramengine_repaired (but giving out the wm_announce 3 times)
The whole rest of my script (blowing up a wall, steal documents, capture a flag, using a lift and a tram) works fine, and i don’t get any error-messages while the map loads.
I hope anybody has any ideas about this… i m pretty desperate after 2 days of messing with this
[/quote]