Page 1 of 1
Objective scripting
Posted: Mon May 19, 2003 12:35 pm
by solar
I have three objectives in my map and I'm wondering if there is a way to script it so that the win condition occurs when any two of the three are completed. Any suggestions?
Posted: Mon May 19, 2003 1:55 pm
by Bjarne BZR
No problem. Just add to a variable each time an objective is completed, and then make the win - condition that that variable has reached 2 ( instead of 3 for all objectives ).
If you are using bombs as objectives, you are using the level.targets_to_destroy variable used by the global/obj_dm.scr::bomb_thinker. Just set it to level.targets_to_destroy = 2 instead of 3...
Hope I expain on your level, if not: ask a again....
Posted: Mon May 19, 2003 5:41 pm
by solar
Thx Bjarne, try it out when I get home, however, I have two bomb objs and one of your doc objs. Change anything???
Posted: Mon May 19, 2003 7:20 pm
by Bjarne BZR
Well, just follow the tutorial on
combining bombs and documentsI've got...