Code: Select all
CreateObjectType("random_units","Objective")
{
GameObj();
ObjectiveObj()
{
Condition("Timer")
{
Time(120, 180);
}
Action()
{
NewRandomObjective()
{
Add("type1", 25);
Add("type2", 25);
Add("type3", 25);
Add("type4", 25);
Add("type5", 25);
Add("type6", 25);
Add("type7", 25);
}
}
}
}
CreateObjectType("type1", "Objective")
{
GameObj();
ObjectiveObj()
{
Condition("Timer")
{
Time(15, 30);
}
Action()
{
ExecuteScript("type1*", "squad.move.typebasetotrail", 1000, 3)
{
Op("%.types", "=", "type1");
Op("%.base", "=", "Tan");
Op("%.trail", "=", "base-base");
Op("%.attack", "=", 1);
Op("%.acceptInsufficient", "=", 1);
}
NewObjective("random_units");
}
}
}
By the way, I am back after a long time!