Ok, I have checked the brackets to make sure for every { there is a }. Now, I am STILL getting errors. It says “Unknown action construction_aramp” Here is my script:
game_manager
}
spawn
{
// Game rules
wm_axis_respawntime 30
wm_allied_respawntime 20
wm_number_of_objectives 6
wm_set_round_timelimit 20
// Objectives
// Primary:
// 1: Destroy Radar Control / Defend Radar Controls
// Secondary:
// 2: Construct Beach Assault Ramp / Prevent Beach Assault Ramp
// 3: Capture Forward Bunker / Defend Forward Bunker
// 4: Allied command post
// 5: Axis command post
wm_objective_status 1 0 0 // <objective team status>
wm_objective_status 1 1 0 // status: 0 = default
wm_objective_status 2 0 0 // 1 = succeeded
wm_objective_status 2 1 0 // 2 = failed
wm_objective_status 3 0 0
wm_objective_status 3 1 0
wm_objective_status 4 0 0
wm_objective_status 4 1 0
wm_objective_status 5 0 0
wm_objective_status 5 1 0
wm_set_main_objective 1 0
wm_set_main_objective 1 1
///=================================
///=========Constructables==========
///=================================
construction_aramp
{
spawn
}
wait 200
constructible_class 2
trigger self startup
{
buildstart final
}
{
built final
}
setstate construction_aramp default
setstate construction_materials invisible
// Some kind of UI pop-up to alert players
wm_announce "Allied team has built the Assault Ramp!"
{
decayed final
}
trigger self startup
{
death
}
trigger self startup
// Some kind of UI pop-up to alert players
wm_announce "Axis team has destroyed the Assault Ramp!"
{
trigger startup
}
setstate construction_aramp invisible
setstate construction_materials default
{
}
construction_rwood
{
spawn
}
wait 200
constructible_class 2
trigger self startup
{
buildstart final
}
{
built final
}
setstate construction_rwood default
setstate construction_materials invisible
// Some kind of UI pop-up to alert players
wm_announce "Axis team has built the Wooden Barrier!"
{
decayed final
}
trigger self startup
{
death
}
trigger self startup
// Some kind of UI pop-up to alert players
wm_announce "Allied team has destroyed the Wooden Barrier!"
{
trigger startup
}
setstate construction_rwood invisible
setstate construction_materials default
}
}
Now, I was told that the unknown action is coming from a bracket mistake. Can someone tell me which bracket is for commands and which is for actions?
