PDA

View Full Version : please help me, sth wrong with my wall


error 404
29th August 2005, 18:14
hey i made a destroyable wall and i wrote a script:

Game_manager
{
spawn
{
}



trigger objective_counter //Counts allied objectives completed
{
accum 1 inc 1
trigger game_manager checkgame
}
trigger checkgame
{
accum 1 abort_if_not_equal 1
wm_setwinner 0
wait 1500
wm_endround
}
}
//the wall
wall_script
{
spawn
{
wait 200
constructible_class 3
}
death
{
wm_announce "Allies breached the wall!t"
setstate wall invisible
trigger game_manager objective_counter
}
}

but when allies blow the wall up, axis team wins :/ whats the problem? thank you for all the answers

kamikazee
29th August 2005, 18:29
I believe it's this:trigger objective_counter //Counts allied objectives completed
{
accum 1 inc 1
trigger game_manager checkgame
}
trigger checkgame
{
accum 1 abort_if_not_equal 1
wm_setwinner 0
wait 1500
wm_endround
} Look at the first statement in trigger objective_counter. It increases accum 1. (So it'll probably be one)
Then you do checkgame, and there it says "abort_if_not equal 1", so the script continues, accum 1 IS 1.
The statements following that one are causing the game to end.
You would best change the line accum 1 abort_if_not_equal 1 so it aborts the script when accum 1 is larger then 1.

error 404
29th August 2005, 18:52
thank you, i fixed the problem already

psyco_mario
17th September 2005, 12:08
hi webster