Warcraft III resources & community, 2003–2006 · archived

Mind Confusion v2

not rated
Submitted by leissaKTrigger Enhanced256 downloads20 KB
Screenshot
Screenshot
My 3rd Spell

Mind Confusion makes the targeted unit act like a critter gone mad. He will attack anything near him, and anything near him will attack him.

UPDATE- Added more duration per level, now has 10 levels (requested by †es†amen†)
File Name
TrancosMindConfusionv2.w3x
Author
Trancos (leissaK)
Download

Comments

14
You mean a buff? I will do the update next weekend, the computer I am on is limited in spell designing.
well leissak the problem was that they kept targeting me while I tried to flee... and didn't work.... thanks for the update... but there's only one prob... would u make a model for it like drunken haze so people know they're affected by the spell... thx
Spell re-submitted as v2...

Fulfilled request by †es†amen† to add more levels and longer duration per level.
I do exactly what you say and it says, Spell has been disabled due to errors... I don't think I will be able to do this...
@leissaK

Its a unit variable.

~The_Raven
ehehe nice ideal ,,, its funny spell and i love it,,every funny spells i will use for my new map ..im almost done the map :) 5/5
†es†amen†, the reason they still attack the Archmage is because you are in their range and that was their last given order. Move your archmage away and he will select another target.
When I make the Variable, what do I put for the Variable Type and Initial Value?
5/5 .. 10x for the spell leissak.. I got to see 1 bug.. I guess it's a bug.. I tested ur spell map and I casted mind confusion on a rifleman... no1 attacked him and they all kept attackin my archmage.. that was in late game while i was f**kin around with the rifles.. I dunno it did that thing many times.. like it doesn't work after a # or retries... i might b wrong k... dun take it serious or personal... btw I LOVE IT!
ps: r u gonna fix sumin in it ? if u do plz tell me!
Ok I will get to work.
1) The affected units don't attack each other.
2) There is no easy way to tell afflicted units from other enemies. Add a special effect or buff to them.
3) The afflicted units often don't switch back. There's a little something in the editor called local variables. They're really great. Use them. Here's how:
MindConfusion
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Mind Confusion 
    Actions
        Custom script:   local unit udg_Mind_Confusion_Target
        Set Mind_Confusion_Target = (Target unit of ability being cast)
        Unit - Add Wander (Neutral) to Mind_Confusion_Target
        Unit - Set the custom value of Mind_Confusion_Target to (Player number of (Owner of Mind_Confusion_Target))
        Unit - Change ownership of Mind_Confusion_Target to Neutral Hostile and Change color
        Wait 7.00 seconds
        Unit - Remove Wander (Neutral) from Mind_Confusion_Target
        Unit - Order Mind_Confusion_Target to Stop
        Unit - Change ownership of Mind_Confusion_Target to (Player((Custom value of Mind_Confusion_Target))) and Change color


This retains the previous player by setting it to the custom value of the target. The custom script "local unit udg_Mind_Confusion_Target" sets the target equal to a local variable.

If you want the units to attack anybody, then add them to a unit group and do something like:
Attack Random
    Events
        Time - Every 2.00 seconds of game time
    Conditions
    Actions
        Unit Group - Pick every unit in (Your unit group) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Current order of (Picked unit)) Not equal to (Order(attack))
                    Then - Actions
                        Unit - Order (Picked unit) to Attack (Random unit from (Units within 450.00 of (Position of (Picked unit))))
                    Else - Actions


My rating as of now: 2/5.
My rating if you make those improvements: 4/5.

P.S. Thanks for the credit.

~The_Raven
Test it for youself!

But I will tell you anyways. The unit that you target will attack ANYTHING in range of a radius of 450.

That means if you are an allie of his and you are at low health, you may be killed by your own allie! Would suck huh... lol
original idea, but do only the opponents units attack the targeted unit or also the casters units?
Arg... forgot to name the Spell Maker Trancos (leissaK) oh well.. You guys know its me ^_^

Let me know if you find any bugs or errors. I have a feeling I messed up on something... Just dont know what.