| 11-14-2003, 01:20 AM | #1 |
I am trying to make a spell that temporarily takes control of an enemy hero but then after a certain time limit, gives it back to the original owner... any ideas?? Here's the trigger, Rampage Events Unit - A unit Is issued an order targeting an object Conditions ((Target unit of issued order) is A Hero) Equal to True (Issued order) Equal to (Order(purge)) (Unit-type of (Triggering unit)) Equal to Slithereen Guard Actions If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Target unit of issued order) is Undead) Equal to True Then - Actions Player - Disable Rampage for (Owner of (Triggering unit)) Wait 0.15 game-time seconds Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 250.00) Player - Enable Rampage for (Owner of (Triggering unit)) Else - Actions Player - Disable Rampage for (Owner of (Triggering unit)) Unit - Change ownership of (Target unit of issued order) to (Owner of (Triggering unit)) and Change color Wait 15.00 game-time seconds Unit - Change ownership of (Ownership-changed unit) to (Previous owner) and Change color Wait 120.00 game-time seconds Player - Enable Rampage for (Owner of (Triggering unit)) If someone could help on this, I would appreciate it... :) |
| 11-14-2003, 02:13 AM | #2 |
Heres my Mind Control spell Unit - A unit Is issued an order targeting an object ((Unit-type of (Ordered unit)) Equal to Evil Guado ) and ((Issued order) Equal to (Order(thunderbolt))) Set MindcontrolTarget = (Target unit of issued order) Set MindControlpreivousowner = (Owner of (Target unit of issued order)) Unit - A unit Starts the effect of an ability (Ability being cast) Equal to Mind Control Set MindcontrolCaster = (Casting unit) Unit - Change ownership of MindcontrolTarget to (Owner of MindcontrolCaster) and Change color Item - Make (Item carried by MindcontrolTarget in slot 1) Undroppable ---repeat for item slots 2-6 Undroppable--- Wait 10.00 game-time seconds Unit - Change ownership of MindcontrolTarget to MindControlpreivousowner and Change color Item - Make (Item carried by MindcontrolTarget in slot 1) Droppable ---repeat for item slots 2-6 Droppable--- this below trigger is needed if you have transport in your map because once it revert control, the previousowner cannot control his hero caz the transport belongs to the casting unit. Unit - A unit Is loaded into a transport (Loading unit) Equal to MindcontrolTarget Unit - Change ownership of (Transporting unit) to MindControlpreivousowner and Change color Also, If you have a revive trigger (I'm sure you do) beware on how your revive trigger is setup. When I first made this, While I had control of the enemy hero and I killed him; well the way I setup my trigger is that His hero became permanitlly mine hero. |
| 11-14-2003, 03:10 AM | #3 |
Here's my revive trigger... tell me if this will conflict, I don't think so.. but you never know :) Player Respawn NE Events Unit - A unit Dies Conditions ((Triggering unit) is Undead) Equal to False ((Triggering unit) is A Hero) Equal to True Actions Wait ((Real((Hero level of (Dying unit)))) x 5.00) game-time seconds Camera - Pan camera for (Owner of (Triggering unit)) to (Center of Hero Creation NE <gen>) over 2.00 seconds Hero - Instantly revive (Triggering unit) at (Center of Hero Creation NE <gen>), Hide revival graphics |
| 11-14-2003, 03:31 AM | #4 |
I dont think so either, but you can easily test this..... |
| 11-14-2003, 04:31 AM | #5 |
ok, it does what yours did, it takes their unit for good... how do I fix that? how did you do it? |
| 11-14-2003, 04:52 AM | #6 |
Well My revive trigger is like this A unit owned by player8 pink dies A- dying unit is a hero equals to true A- If then else ----if dying unit equals to mindcontrolTarget ----then action- Unit - Change ownership of MindcontrolTarget to MindControlpreivousowner and Change color ----- Item - Make (Item carried by MindcontrolTarget in slot 1) Droppable (repeat for 2-6) ----- revive at Badpoint region ----- Else do revive at goodpoint region do this for all the players.... |
| 11-14-2003, 05:24 AM | #7 |
what if I just say a unit dies if unit is equal to mindcontroltarget then unit - change back to owner item stuff... etc... etc.. etc... then the normal revive stuff that I have... would that work? |
| 11-14-2003, 05:43 AM | #8 |
Ya, that method is better In the main trigger that I wrote earlier add this trigger before the wait 10 game time secs trigger. A- trigger turn on unitdiesfromMindcontrol<gen> initially off, unitdiesfromMindcontrol E- a unit dies C- dying unit equals to mindcontrolTarget A- Unit - Change ownership of MindcontrolTarget to MindControlpreivousowner and Change color A- make item droppable blah blah blah... |
