• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Mind Control

Status
Not open for further replies.
Level 4
Joined
Apr 11, 2004
Messages
121
recently i have been attempting to make a temporary mind control spell.... all attempts so far have failed...

one way i tried is to use charm, but it would not a) give a buff b) only be temporary

is there a way i can work around it being permanent or will i have to make a series of triggers?

ps. if this has something similar has already been posted, please tell me :wink:
 
Level 2
Joined
Apr 10, 2004
Messages
16
1. Create a useless spell (mind controll)
2. create 2 variables: 1)player (for example: mind_controll_player) 2)Unit (example Mind_ controll_target
3. The trigger:

Trigger
A unit beginns the casting of a spell

condition
ability beiin cast = mind controll

Aktion
Change the owner of (target unit of spell) to owner of (triggering unit) Change color
Set Mind_controll_target = (target unit of spell)
Set Mind_controll_player = owner of (target unit of spell)
Wait "X" Seconds
Change the owner of Mind_controll_target to Mind_controll_player change color
Set Set Mind_controll_target = Nothing
Set Mind_controll_player = nothing
 
Level 3
Joined
Nov 2, 2004
Messages
49
Can someone please explain this more exactly?
I don't understand how to make it that a variable grows with an ability-level.
there is no trigger like "if hero raises ability-level"
I really need that spell with more levels, but I don't know how to make it >_<

Thx in advance

MfG JunJee
 
Level 7
Joined
Mar 26, 2004
Messages
350
@ Ozo2: not a good solution, sry. just use:
wait(arithmetic(convertintegertoreal(level of ability "yourability" for unit casting unit/variablecaster))*e.g.15)

@ JunJee: Ozo2 meant sth. like the following:
Code:
event - unit learns ability
   condition - learned ability = "yourability"
   action: set          variable "integervar."  "integervar." + 1

this "integervar" could be used then in the wait action. but use the other solution without an extra var.

@ storm_mage: u should use casting unit instead of triggering unit
 
Status
Not open for further replies.
Top