If you are allowing all Pokemons to pop out at once and commence attack, I don't
think there's a solution. However, if you are allowing the player to to "choose" the
Pokemon they are going to use, I guess there might be a way.
1. If there is a place in the map unreachable by normal means (or, if you prevent
players entering the space by blocking it with a location + trigger) you could use
the spot for "counting" measures.
2. Say you have a location with a ground unit along with 5 beacons. Whenever you
place the unit on a beacon, each beacon will toggle the switch of the Pokemon that
you are about to summon.
3. If you want the stats such as energy or HP to be kept as well, then you should
assign the pokemon to neutral player when it's unsummoned, move the pokemon
from the map to a certain area where summoned pokemons are kept; and move
it back near the player when it's summoned, assign the Pokemon back to player.
Unfortunately, I am not sure how you can spawn it back near the player character
because it's impossible to assign a location every time the character moves. (or
you might have to cover the entire map with a bunch of small locations, which is
pretty likely to be a pain in the butt)
4. Or you could just remove the Pokemon it and spawn it whenever you want it to
get summoned. (I suggest to move it, since it would be cheap if they restore their
HP every time they are unsummoned and summoned back)
5. When a Pokemon is summoned, set the corresponding switch. And when a kill
is made, create a flag (or whatever thing that has a small size) in the given area
mentioned on Step 1.
Trigger |
Description: |
When Pikachu kills an enemy unit |
|
Players: |
¤ Computer player |
Conditions: |
¤ Current player has suffered at least 1 death of Enemy type 1.
|
¤ 'Pikachu' switch is set. |
Actions: |
¤ Create 1 Flag at 'Not accesible area' for current player.
|
¤ Modify death counts for Current player: Set to 0 for Enemy type 1.
|
¤ Preserve Trigger.
|
¤ Comment: Death Count |
Then you could use the number of flags to count the exp of the Pokemon. For a
different Pokemon summoned, simply create something different like a Civilian or
a Zergling. You could also give different amounts of exp by modifying the Enemy
type and giving more flags for difficult enemys. If there are too many flags, then
remove 20 flags and create something like 1 khalis crystal which will represent 20
flags.
Edit: A long descrpition which isn't so easy to understand, but I think that should
definately work.