OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Allie on 04 Jan 2003, 19:52:34
-
Hi and happy new year to youall,
Have new quastion here:
how can i FORCE veteran mode during mission play,i mean i want during mission its switch to veteran mode ??
Any of u guys have answer ??
thanks for reading this
greetings Allie
???
-
why do u want it in veteran mode? if you dont want waypoints to show, then dont place any
-
Make a trigger.
In the condition text box, put "cadetmode" (without quotes)
Now, in the onactivation put something like,
titletext ["YOU MUST PLAY IN VETERAN MODE. PLEASE EXIT OUT AND ENTER AS VETERAN.","PLAIN"]
Or, if you want it to just end, this -
forceend
Gameer :)
-
Lol, ;), can`t you sqitch to veteran/cadet mode during gameplay?
So that the admin get this radio commands:
Radio:
1. Cadet Mode
2. Veteran Mode
And if you choose cadet mode and you are already on Cadet mode, he displays a text:
You are already on cadet mode
And when on veteran mode:
You are already on veteran mode
;)
-
There's no command for switching between the two.
I suggest using a limbo-screen kind of thing, perhaps with dialogs.
A trigger, which has cadetMode in it's condition field, and has [] exec {cadetModeOn.sqs} in the onActivation field.
cadetModeOn.sqs: (non-dialog version)
Hint ["I'm sorry, but you are running the game in Cadet Mode, please switch to veteran mode and restart the mission."]
~10
forceEnd
Then you could do a fancy version with dialogs.
Create a simple dialog (tutorials are available) and give it the name DlgCadetmode.
My suggestion is popping a little box up, with some text (the one in the hint box above) and an "Ok" button.
For the "Ok" button, add this action in the description.ext:
action = "forceEnd";
That way, the game will end when the player clicks the "ok" button.
Initialize the dialog in the cadetModeOn.sqs script by adding this:
_ok = createDialog "DlgCadetmode"
?(not _ok) : exit
at the beginning.
-
tnx toyall
but i just want during game that waypoints disappear
so mission starts in cadet mode and during game swith to veteran mode ?
if not possible just say :)
tnx for all your reactions
-
no, thats not what I mean, I don`t want that youhave to reassign to change to veteran, I want that you can change it to cadetor veteran mode all the time during gameplay ;)
-
Is there a distorted echo in here? ;D
In any event, I don't think you can switch them off while the mission is being played. However, I can think of two possible workarounds.
1. Simply, do not place anymore waypoints after the one where the waypoints are supposed to disappear. Use triggers to determine if the players have accomplished their objectives.
2. Set the waypoints to Never Show to hide any ones that come after the last one that the players are supposed to see. That way, the waypoints still exist, but the players just can't see them.
-
2. Set the waypoints to Never Show to hide any ones that come after the last one that the players are supposed to see. That way, the waypoints still exist, but the players just can't see them.
That's only so it doesn't show the little lines between the waypoints on the map. ;)
Gameer
-
That's only so it doesn't show the little lines between the waypoints on the map. ;)
Oops, my bad. That's what happens when I talk about a feature that I've never used before. :P
-
no, thats not what I mean, I don`t want that youhave to reassign to change to veteran, I want that you can change it to cadetor veteran mode all the time during gameplay ;)
Not possible, there is no command available to us that lets us change that menu option, and I don't suspect that there is a command to call up the menu either (could move the player to the option screen and force him to select there).
It's impossible to change with a command.
-
rgr that, sir :P