O yeah, for the human player you still have if-statements there where you could have the add_to_flag commands, but you said you wanted to give blue the reaper,.. I don't know how you could use less than 3 if-statements for that either.
For Red though, right now you check for each set for both a flag AND the action point. So that gives you 3x2 if statements. If you remove those, and for each set just check for the unit being there, and kill the others, you need just 3 if statements in total.
But, I guess you can also change this:
Code:
IF_ACTION_POINT(1, PLAYER0)
IF(PLAYER0, FLAG0 == 0)
CREATURE_AVAILABLE( PLAYER0, SORCEROR, 1, 30)
SET_FLAG(PLAYER0, FLAG0, 1)
QUICK_OBJECTIVE(2,"Excellent choice. Here's the next set: West: Barbarian | Center: Bile Demon | East: Giant",ALL_PLAYERS)
ENDIF
ENDIF
IF_ACTION_POINT(2, PLAYER0)
IF(PLAYER0, FLAG0 == 0)
CREATURE_AVAILABLE( PLAYER0, MONK, 1, 30)
SET_FLAG(PLAYER0, FLAG0, 2)
QUICK_OBJECTIVE(3,"Excellent choice. Here's the next set: West: Barbarian | Center: Bile Demon | East: Giant",ALL_PLAYERS)
ENDIF
ENDIF
IF_ACTION_POINT(3, PLAYER0)
IF(PLAYER0, FLAG0 == 0)
CREATURE_AVAILABLE( PLAYER0, FAIRY, 1, 30)
SET_FLAG(PLAYER0, FLAG0, 3)
QUICK_OBJECTIVE(4,"Excellent choice. Here's the next set: West: Barbarian | Center: Bile Demon | East: Giant",ALL_PLAYERS)
ENDIF
ENDIF
to
Code:
IF(PLAYER0, FLAG0 == 0)
IF_ACTION_POINT(1, PLAYER0)
CREATURE_AVAILABLE( PLAYER0, SORCEROR, 1, 30)
SET_FLAG(PLAYER0, FLAG0, 1)
QUICK_OBJECTIVE(2,"Excellent choice. Here's the next set: West: Barbarian | Center: Bile Demon | East: Giant",ALL_PLAYERS)
ENDIF
IF_ACTION_POINT(2, PLAYER0)
CREATURE_AVAILABLE( PLAYER0, MONK, 1, 30)
SET_FLAG(PLAYER0, FLAG0, 2)
QUICK_OBJECTIVE(3,"Excellent choice. Here's the next set: West: Barbarian | Center: Bile Demon | East: Giant",ALL_PLAYERS)
ENDIF
IF_ACTION_POINT(3, PLAYER0)
CREATURE_AVAILABLE( PLAYER0, FAIRY, 1, 30)
SET_FLAG(PLAYER0, FLAG0, 3)
QUICK_OBJECTIVE(4,"Excellent choice. Here's the next set: West: Barbarian | Center: Bile Demon | East: Giant",ALL_PLAYERS)
ENDIF
ENDIF
EDIT:
Another advantage of killing units, is that you can actually show the units people can claim, instead of having to tell them. Makes your map better for an international audience.
Have you seen the 'My Pet Dungeon' map I made somebody a while back?
I think you can steal a lot from there, and each time show the unit in the 3 boxes, as a pretty way to select stuff.