I learn the scripting system first when i start programming java, but if you want to learn java you’ll need a book…
so the first rules in scripting
The thing
{
the function
{
what you want
}
}
look at the diffrent maps for more sense just unzip scripts into a folder and look at them.
when making explosive objective:
scriptname
{
spawn
{
wait 200
constuctible_class 3
}
death
{
wm_announce “objective destroyed”
}
}
additional explosives:
game_manager
{
spawn
{
}
trigger explodes
{
trigger self first
trigger self second
}
trigger first
{
accum 2 set 1
}
trigger second
{
accum 2 abort_if_not_equal 1
wm_announce “tadaaaaa objective destroyed”
}
}
exploding_thing
{
spawn
{
constructible_class 3
}
death
{
trigger game_manager explodes
trigger self spawn
}
}
look at the bold underline and cursive text it’s connected, here we simply respawn the objective and destroy it again, and use the game_manager as a counter, the trigger second should be connected with the trigger checkgame.