aliminator8
New Member
- Reaction score
- 3
Hi all and thanks in advance.
My problem is this... i made a map based kinda off x hero line wars,
and basically i want to make a -int command that puts the typing players heroes inteligence up by his current lumber then sets lumber to 0.
I realised for this, i needed to set the players heroe to a unit variable.
So what i wanted to do was, once the person trained his hero from the hero tavern its sets the trained hero to 'hero' (array=trained unit owner *is it possible?*)
(Oh yeh, im usin WEU)
Ok so this is what i had.
Event
---Unit owned by Player 1 (Red) Finished training a unit.
Condition
---((Trained unit) is a Hero) equal to true
Action
---Set Hero[1]= Trained Unit **(player 1 red = [1])**
It didn't work.... I realised it was because the Hero Tavern was ownd by neutral Hostile. sigh.....
i made 2 hero tavern for 2 teams, makes sense... one each
So my second attempt at the triger was like this...i got stuck halfway//lol//
Action
---Unit- A unit Finishes training a unit
Condition
---((Trained unit)is a Hero) Equal to true
---??((Trained unit) owned by player 1) Equal to true??
Action
---Set Hero[1]
I got the -int command written so i could test this.... but so fare i cant find a way to check if the trained unit was trained by player 1... do u get what im talking about?
My problem is this... i made a map based kinda off x hero line wars,
and basically i want to make a -int command that puts the typing players heroes inteligence up by his current lumber then sets lumber to 0.
I realised for this, i needed to set the players heroe to a unit variable.
So what i wanted to do was, once the person trained his hero from the hero tavern its sets the trained hero to 'hero' (array=trained unit owner *is it possible?*)
(Oh yeh, im usin WEU)
Ok so this is what i had.
Event
---Unit owned by Player 1 (Red) Finished training a unit.
Condition
---((Trained unit) is a Hero) equal to true
Action
---Set Hero[1]= Trained Unit **(player 1 red = [1])**
It didn't work.... I realised it was because the Hero Tavern was ownd by neutral Hostile. sigh.....
i made 2 hero tavern for 2 teams, makes sense... one each
So my second attempt at the triger was like this...i got stuck halfway//lol//
Action
---Unit- A unit Finishes training a unit
Condition
---((Trained unit)is a Hero) Equal to true
---??((Trained unit) owned by player 1) Equal to true??
Action
---Set Hero[1]
I got the -int command written so i could test this.... but so fare i cant find a way to check if the trained unit was trained by player 1... do u get what im talking about?