| 06-07-2003, 04:28 AM | #1 |
How do I make it so that when 8 peasants are put in a transport (the transport is a hero and has a variable Heroes[Player 1] where Player 1 would be an index of 1, player 2 hero would have index 2) The transport's number of lives remaining (which is a variable Liv3s[Player #] ), would become Liv3s[Player #] = (Liv3s[Player #] + 1) ? And after the variable is set, the peasants are removed from the game? |
| 06-08-2003, 01:50 AM | #2 |
Heya. I don't know specific answers to your question but I hate you to get to the second page with no response. Its seems to me that you have a solid grasp of triggers. If there is an event that recognizes when units enter a storage unit, you could use that to manage the peasants. Else, if you could find out what the command name is (like "blizzard" or whatnot for other spells), you could use "Unit given order with no target (load)" or whatever the command is. Otherwise, you could use an ability like Devour for a similar effect, giving the hero a "life" when he devours a peasant. You'd have to make sure the devoured unit loses life quickly while in the stomach so that the hero can keep devouring, though. And you would probably want to change the spell targets in AbilityData.slk to include "worker" (or is it "peon"?) and "friend" so that the hero can't eat just anything instantly. |
| 06-08-2003, 05:22 AM | #3 |
The devour thing sounds good, and it would open the door for abilities of each character, instead of having to have all that cargo hold stuff. And I wouldn't even need to edit the SLK i think because devour can't target heros and invulnerables, even though I would probably want to get a different name and icon for the ability. So the peasants would be the only devour-able units. And the heros actually not having an attack would make it possible for the peasants to not be killed. Thanks for your suggestions. I guess I could make another variable for peasants eaten that would add lives for every X peasants you eat, but it's probably better to have one peasant = one life, and make them a fairly rare drop. |
| 06-08-2003, 11:04 PM | #4 |
Ok never mind I decided to change it so that the extra life is a 1 charged item. |
