creating script part for more then one objective.......

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
grb
Warrant Officer
Posts: 136
Joined: Fri Jun 06, 2003 12:22 am
Location: USA Philadelphia

creating script part for more then one objective.......

Post by grb »

Hi all,
Below is my code for reaching an objective (test_x.scr) SP mode.
It works fine, I get the box and text shown on screen and when objective
is meet, I walk over the multiple_trigger that then starts thread objective1, I get the objective box filled in... etc..
OK, can some one show me what code is required to add more objectives in under the InitObjective: section?

Here is what I got thus far:

InitObjectives:

waitthread global/objectives.scr::add_objectives 1 1 "Head for the town using the bridge over the raven" $obj1.origin

waitthread global/objectives.scr::add_objectives 1 2
waitthread global/objectives.scr::current_objectives 1

end

objective1:
goto objective

end

objective:
waitthread global/objectives.scr::add_objectives 1 3 "Head for the town using the bridge over the raven" $obj1.origin
waitthread global/objectives.scr::current_objectives 0
end
_____________________________

thanks for any help. I understand the objective: goto blah is a bit redundant. I copied this code from somewhere in this forum or from Nemesis site.
grb
User avatar
mohaa_rox
Field Marshal
Posts: 2760
Joined: Mon Nov 11, 2002 7:05 am
Contact:

Post by mohaa_rox »

... add_objectives 2 1 "x"
... add_objectives 2 2 "x"

whereby the first number "2" is the obj number, i.e 4, 7, 10. and the second number "1" is used to add the obj w/o the check in the box. the second number "2" is used to place a check in the box

hope this helps :wink:
Live to map, not map to live.
-mohaa_rox, .map
moderator
grb
Warrant Officer
Posts: 136
Joined: Fri Jun 06, 2003 12:22 am
Location: USA Philadelphia

mohaa_rox

Post by grb »

Thank you for your help.

cheers
grb
Post Reply