We've all (almost all) seen it before, in RTS (Real Time Strategy) for OFP. Fun game that was...
In the RTS, in the actions menu, it had an option that said "Show Options". When you clicked on that, it showed a bunch of new Actions, and it "closed" the "Show Options" command, and a new command became available: "Close Options".
When you hit "Close Options", all the Options go away, and "Close OPtions" disappears, and "Show Options" comes back. You can do this for an unlimited number of times, and it continues to work....
My question is: "How did he do that?!?!". How can you, like the example, be able to have those actions repeatly come and go, and come and go, and come back again. I've tried my own methods, me not being an expert scripter, more of a Intermediate, and it doesn't seem to work. My previous command was this:
#ShowOptions
Removeaction 0;
Player1 AddAction ["(Close Options)", "CloseOptions.sqs"];
exit
The problem was, that as you create an action, it assigns it a number. When the game starts, ShowOptions is assigned as 0, and Close Options in 1. If I hit Show OPtions, then Close Options, then Show Options, it wouldn't get rid of "ShowOptions". So then I'd have 1 Show Option (Extra) on my Action Menu.
So, how do I do it? Is it a mathmatical calculation?:
N = N + 1;
RemoveAction N;
this Addaction ["(Close Options)", "CloseOptions.sqs"];
exit
#Condfused
RunAwayScientist globalchat "?!?!??!?...";
exit
If anyone has any idea or input, I'll be here all week...Heh heh....
-RunAwayScientist (Left is not always right, right?)