Page 1 of 1
Adding objective to T.O.W
Posted: Sun Dec 19, 2004 4:32 pm
by LtNeil
Hello there!
im making a tow map for breathrough and i wondered if any of you know how to add an objective to the on screen display.
Is it possible to add a sixth objective?i have made the objective already and it works fine the only strange problem i have is that i can not get the mission to show on screen!!?
Any help (as usual) would be great
cheers!
Posted: Mon Dec 20, 2004 1:44 am
by Grassy
How about just following how it's done in the stock scr's, you can have any number of obj's.
init_objectives:
$obj_radio_tower ControlledBy 0
$obj_radio_tower initialize
$obj_radio_tower SetCurrent 0
thread set_objectives
end
set_objectives:
//First Allies
if( $obj_radio_tower.ControlledBy != 1 )
{
iprintln ( loc_convert_string "Allies -- Turn off the radio!" )
$obj_radio_tower SetCurrent 1
}
//Now the Axis
if( $obj_radio_tower.ControlledBy != 0 )
{
iprintln ( loc_convert_string "Axis -- Turn on the radio!" )
$obj_radio_tower SetCurrent 0
}
end
Posted: Mon Dec 20, 2004 2:01 pm
by LtNeil
ah i see i did'nt explain myself well enough.I have cpoied how the script works and the objective works fine but when you play the game and you hold down tab to see your missions i.e axis turn on radar dish,allies stop airstrike.etc. i can not get the sith mission to show up on the screen with the little tick box.hope this is more understandable.
thanks
Posted: Tue Dec 21, 2004 12:40 pm
by Grassy
Ahh I see, I think you might be out of luck there. All other stock maps only have the 5 entries for the score board.
Another way to do it would be to print a message onscreen when the objective is ready to be completed, or show a reminder msg every now and then until it has been completed and then stop the onscreen message.
for eg;
level.targetstodestroy = 6
level.targetsdestroyed = 0
thread bomb_six_obj
thread obj6_onscreen_reminder
bomb_six_obj:
bla bla
bla bla...
//bomb has gone off and axis are not happy

level.obj6_complete =1
level.targetsdestroyed++
end
obj6_onscreen_reminder:
while ( level.targetsdestroyed < level.targetstodestroy )
{
if ( level.ob6_complete !=1 )
{
iprintln "Objective 6 - Allies need to destroy this valuable Axis object "
}
wait 60
}
end
Posted: Tue Dec 21, 2004 6:17 pm
by LtNeil
well thats a good idea and thanks very much for your help m8!
But i think i'll just stick to the five obj's.Thanks anyway though!