| 03-11-2005, 12:57 PM | #1 |
Hey guys, I've got a little problem with a tavern on my AoS-like game. I created a region around the Tavern, so when the hero spawns I can recognize which hero has been selected. The problem is: how can I make warcraft knows which hero I selected if he has just been created? I want to do this 'cuz I created custom skills based on variables. So, when the player picks the wizard, I'll assign him to the skill's variables. Thanx for any help :D |
| 03-11-2005, 01:05 PM | #2 |
Event: Unit- Unit enters (TavernRegion) Conditions: If (Entering Unit Type) is Equal to (Wizard) Then (Run Trigger (Assign Wizard Skills)) Else If (Entering Unit Type) is Equal to (Warrior) Then (Run Trigger (Assign Warrior Skills)) Else If (Entering Unit Type) is Equal to (Ranger) Then (Run Trigger (Assign Ranger Skills)) Else... You can carry this on pretty much for as long as you need to for each type of hero. I made the assumption you could simply stick the skill assigning bit into a different trigger, one for each hero, (Assign Warrior Skills, Assign Wizard Skills, Assign Ranger Skills, ect.) Does that help? If you have problems, post the map you have so far, and I'll see what I can do... |
| 03-11-2005, 02:56 PM | #3 |
Just before posting I did try "Unit comparison", but didn't try "Unit-type Comparison". Living and learning I guess hehe... Thanx a lot! |
| 03-11-2005, 04:59 PM | #4 |
If someone has any tips for this subject, you may post'em, I'll gladly receive'em :D But I came up with sumthing else: how do I limit the tavern, so you can only select one hero and revive this hero if he comes to die later? I looked for it in the Tavern on the Object Editor and didn't find anything, even tried the gameplay constants, but also found nothing apparently useful. Any help? |
