In order to have a random event occur, you'd need to use the random objective action.
Normally you'd use this to call a new objective:
Code: Select all
NewObjective("objective_example1");
NewObjective("objective_example2");
NewObjective("objective_example3");
However, you'd should rather use this to choose randomly between objectives:
Code: Select all
NewRandomObjective()
{
Add("objective_example1", 30);
Add("objective_example2", 10);
Add("objective_example3", 60);
}
You should add each new objective you want to be pooled for random selection, with the numbers on the right being each objectives weight which should ideally add up to 100.
Although keep in mind that when doing this, Army Men RTS does not use true randomness, and you may be able to discern a pattern after enough play time.
I may not make the best maps, or be the best player, but I put a lot of time, effort, and care into my stuff. That counts for something, right?
No.
"Can we order a pizza?"
GameRanger ID: 913974