OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Optik on 08 Jun 2006, 16:14:24
-
Sorry if this has been already explained but:
I've started with editing just 2 days ago and I've read the tutorial. It says that if I want an ending of the mission when all of the enemy units have been killed, i just type "sy" in the condition field. Well, i did that and nothing happened, so i've given names to all enemy units and then made a condition that game should end when all of them die. Well it is noobish but it worked lol.
So, does the sy really doesn't work or I misused it.
My second question would be about radio. How to disable calling reinforcements when you already call them? I got it that when you use radio to call some units, you trigger a variable which is a condition that enables waypoints for reinforcements. Am i right?
But how to disable radio after you've done that? My solution was putting a trigger that activates at the beginning of the mission and sets a variable to true, which is a condition for radio trigger, and then when the radio is activated, the radio trigger sets the variable to false, but then i have reinforcements coming straight away, not paying attention to conditions that enable their waypoints.
ehm...help? :)
-
Sorry if this has been already explained but:
I've started with editing just 2 days ago and I've read the tutorial. It says that if I want an ending of the mission when all of the enemy units have been killed, i just type "sy" in the condition field. Well, i did that and nothing happened, so i've given names to all enemy units and then made a condition that game should end when all of them die. Well it is noobish but it worked lol.
So, does the sy really doesn't work or I misused it.
My second question would be about radio. How to disable calling reinforcements when you already call them? I got it that when you use radio to call some units, you trigger a variable which is a condition that enables waypoints for reinforcements. Am i right?
But how to disable radio after you've done that? My solution was putting a trigger that activates at the beginning of the mission and sets a variable to true, which is a condition for radio trigger, and then when the radio is activated, the radio trigger sets the variable to false, but then i have reinforcements coming straight away, not paying attention to conditions that enable their waypoints.
@1. Never heard of the "sy".
@2. So you want to be able to cancel the request of reinforcements?
-
from OFP's readme:
Now place another SENSOR. This will be for the other ending, the one where you win the mission.
AXISa=0, AXISb=0, ACTIVATION=NONE, TYPE=END 1, TEXT=endWIN, CONDITION=sy and westcardead and uscaralive
End 1 will be defined in the briefing; sy is the variable executed when there are no enemy in the area;
i'm a beginner damnit
-
Hm. I'm not entirely certain what scenario you're describing here. Hm.
The first case : yes indeed. sy is just a variable, which can be either "true" or "false" in this case. I believe that there should be a "sensor" (hm. We call them triggers) which is large enough to encompass the entire enemy force, which is activated by "West not present" (=no west units in the area defined by the a/b values), condition "true" (=no other condition needed but the one we already mentioned) and putting sy=true in the On Activation field. Basically, when the trigger is triggered, by you having killed or chased away all West units, the variable "sy" is true.
As noted, you also need the variables westcardead and uscaralive to be true. (I think it explains how to do that in the tutorial). When all of these are true, THEN the "endmission" trigger can be activated. There's nothing special in the variable name "sy", although I really have no idea why they chose to name the variable that :P
As to the other thing : uhm, once again, not entirely certain what the context is but : a radio trigger (Radio Alpha, for instance) can be set to either "Once" or "Repeatedly". You want to make it "Once", that way it'll disappear when you've called it once. Hm.
I wish I could show you some more tutorials *looks sadly at the Editor's Depot* there are some in there WAAAY better than the one shipped with the game. But oh well. Keep asking questions, you'll learn. :)
Good luck!
/Wolfrug out.
-
thanks, that explains alot of things. ;D