Warcraft III resources & community, 2003–2006 · archived

Mind Control

9 posts
#1

Mind Control

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:
#2
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
#3
thanx :D

is there any way for me to have different duration times for different spell levels? eg. lv.1 20secs lv.2 40secs lv.3 indefinatley (?)
#4
Wait "X" Seconds


Just make different triggers for the different levels and make it that when he upgrades the ability level have it stored in an Integer Variable.
#5
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
#6
@ 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:
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
#7
Try Raven's Seduce. It kinda does the job and it's good enough. Believe me...
#8
Good enough? *Fakeing Shock* What's wrong with it?

~The_Raven
#9
Nothing... I just mentioned that it was good. perhaps I didn't say the best expression. My english is not excellent. Sorry for any incovenience. It was good enough to receive a Director's Award anyway... ;)