| 09-27-2002, 09:24 AM | #1 |
On a melee map I made a fourth Hero. The pb is that I can train it more then once. How can I do to make it trainable only once at a time like the three standard Heros ? And also when he dies, he can't be revived. |
| 09-27-2002, 09:53 AM | #2 |
Tu es sûr que tu as fait un Héro (c'est une unité personalisée basée sur un Héros)? je crois que la limitation s'effectue au niveau des triggers Are you sure you have created a Hero (a custom unit based on a Hero unit)? As far as I can remember, Hero limitation is done through triggers. :ggani: :ggani: :ggani: |
| 09-27-2002, 11:04 AM | #3 |
Yes I am sure my Hero is based on a Hero. I have tried with triggers but unsuccessfully. Can someone help me plz ? |
| 09-27-2002, 02:12 PM | #4 |
Which triggers are u using at melee initialization event? |
| 09-27-2002, 02:58 PM | #5 |
I use the default those who are automaticaly created. |
| 09-27-2002, 04:25 PM | #6 |
Then, this should work... check this. |
| 09-27-2002, 08:01 PM | #7 |
Guest | No, that doesn't affect custom heroes. The easiest way to limit custom Heroes is to get GoldenUrg's editor patch (http://goldenurg.tripod.com) which adds an action to limit a unit type for a player. |
| 09-27-2002, 08:44 PM | #8 |
Guest | how about making a trigger saying that whenever the hero gets 'trained', that unit type should be disabled for 'training/constructing' for the current player? I believe the hero can still be revived that way. |
| 09-28-2002, 12:40 PM | #9 |
DrunkOM you were right there is a trigger : Player - Set for player 1 the max units of type xxxx to 1 in the GoldenUrg's editor patch, and he revives :D The only thing is that when I train my custom hero first, I can train a second hero, but that's another story. Thx to all. |
| 09-28-2002, 07:56 PM | #10 | |
Guest | Quote:
This doesn't trigger until the unit is finished training. You can queue more of the same hero for training during this time, and they will continue to build even though it's been diabled. |
| 09-29-2002, 04:03 PM | #11 | |
Guest | Quote:
no what I actually meant was that you can intercept the issued train order (by using 'issued an order with no target' event, and checking the issued order (which should be the unit type of the hero) with a condition), then disable the hero, and when cancelled, enable it again. But I was to lazy to fully explain it at that time ;) |
