• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

2 questions

Status
Not open for further replies.
Level 25
Joined
Apr 27, 2008
Messages
2,512
1-How do i make my own units disobey my orders, while they are attack moving randomley in the map? in such a way that does'nt lead to a lag or an interruption in their mouvement
(units are mouving player owner of unit cant order them to change direction or stop ...)

2-i had a fantastic idea, but i dont know yet how to put it in action. the idea is "loyalty", when the loyalty of a certain unit goes below 30% he changes his owner. The question is: how to represent his loyalty? how to make it vary? and is the new owner selected on his score or there is a better idea?
:eekani:
 
Level 13
Joined
Jan 18, 2008
Messages
956
Represent loyalty as mana and trigger it so that everytime something happens, mana is either added or substracted from the unit. When the unit's mana is below 30%, make trigger that changes the unit's owner. I use this as a morale system sometimes.
 
Level 9
Joined
Feb 19, 2006
Messages
115
For the second use the units custom value instead of a 100 level ability (simpler and faster). Just use "Unit - Set Custom Value of (someunit) to (Custom Value of (someunit) +/- 1)" and when it's value is over 70 (it starts at 0) the do "Unit - Change Ownership of (someunit) to (another player)"

For the first one, (if you give them all their commands through triggers) give the units the "locust" ability (except I think they might not be able to be attacked then). Ward won't work, because you can still right-click them to places. Also, you could try making a "dummy player" for each player (if the game has 6 or less players) and make the unit change ownership when its created (retain color), then order it to move.
 
Status
Not open for further replies.
Top