I have gone through my script, and made sure each curly bracket had the opposite kind, IE } {. Now, the only error I get when I load my map is unknown action: buildstart. I’ve gone over the SD map scripts, and they use the same action, buildstart. Now, here is my script:
construction_aramp
{
spawn
}
wait 200
constructible_class 2
trigger self startup
{
buildstart final
{
}
built final
{
setstate construction_extra default
setstate construction_aramp default
setstate construction_materials invisible
// *----------------------------------- vo ------------------------------------------*
wm_addteamvoiceannounce 0 "radar_axis_bunker_stop"
wm_addteamvoiceannounce 1 "radar_allies_bunker_capture"
wm_teamvoiceannounce 0 "battery_axis_ramp_constructed"
wm_teamvoiceannounce 0 "radar_axis_bunker_stop"
wm_teamvoiceannounce 1 "battery_allies_ramp_constructed"
wm_teamvoiceannounce 1 "radar_allies_bunker_capture"
wm_removeteamvoiceannounce 0 "battery_axis_ramp_stop"
wm_removeteamvoiceannounce 1 "battery_allies_ramp_construct"
// *---------------------------------------------------------------------------------*
// Some kind of UI pop-up to alert players
wm_announce "Allied team has constructed the Assault Ramp!"
}
decayed final
{
trigger self startup
}
death
{
trigger self startup
// *----------------------------------- vo ------------------------------------------*
wm_addteamvoiceannounce 0 "battery_axis_ramp_stop"
wm_addteamvoiceannounce 1 "battery_allies_ramp_construct"
wm_teamvoiceannounce 0 "battery_axis_ramp_destroyed"
wm_teamvoiceannounce 1 "battery_allies_ramp_destroyed"
wm_removeteamvoiceannounce 0 "battery_axis_controls_defend"
wm_removeteamvoiceannounce 0 "radar_axis_bunker_stop"
"
wm_removeteamvoiceannounce 1 "radar_allies_bunker_capture"
// *---------------------------------------------------------------------------------*
// Some kind of UI pop-up to alert players
wm_announce "Axis team has destroyed the Assault Ramp!"
}
trigger startup
{
setstate construction_extra invisible
setstate construction_aramp invisible
setstate construction_materials default
}
}
What’s wrong here?