Warcraft III resources & community, 2003–2006 · archived

need help (with something other than importing spells)

7 posts
#1

need help (with something other than importing spells)

This doesnt really pertain to spells but since people here seem to know a lot about triggers(as well they should)I thought I should ask this question here. I am creating a map and in it there are 3 armies... yadda yadda.... anyway when a villager not of an army steps on a beacon he is granted joint control of whatever army he decided to enlist in, and is replaced by a 1st Lt.(but that doesnt really matter). What I'm asking is that when the original owner of the army decides hes stayed around long enough he can choose either honorable discharg, general discharge, or dishonorable discharge(these are dummy spells amplified by triggers). When the owner targets the player I want the players hero to revert back to its original form (villager form). Please help. This map is based on the Life of a Peasant God and Death version if that helps.
#2
What exactly is your problem? That you can't get the hero to turn back to a villager? Use Unit - Replace.

~The_Raven
#3
No its not that, ummmm how should I put this..... I how do I get it to recall wat the unit looked like before it got replaced with the 1st lt. see above.
#4
1) You could assign the unit to a array and assign its type to a unit-type array. Reference the unit with For Each Integer A loos.
2) You could assign the unit a custom value based on its unit-type. Use If/Then functions.

~The_Raven
#5
Noob question time, how do you do that?
#6
Unit - Set Custom Value

~The_Raven
#7
Thanks, this answers a number of problems I have faced with this map. I'll try it.