creating script part for more then one objective.......
Posted: Sun Jun 29, 2003 9:35 pm
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.
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.