• 🏆 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!

[Trigger] GUI Triggered AI spell!

Status
Not open for further replies.
okay for any moderaters or admin please move this to the correct forum thanks


Okay this is a basic system only using 4 triggers to create a unit that when attacks makes a unit cast a spell.

Step #1: Create a unit and change HP ect to your likeings BUT >>>>IMPROTANT<<<< Shift Enter Or Shift double click the attack damage field and put -1.00 there After that go to Damage number of sides and damage and set that to 1,1 and your unit has 0 damage.


Step #2: Make a spell based of Breath of fire if this is for a user or player create a Tool Tip if not Forget about TT for the moment becuase a user will not see the TT. After that make the AOE 40 and Final Area 40 to create a Shockwave effect with the depression behind it making it look more life like. If you want to remove the buff and the effect of the spell go to buffs and remove the buff and go to duration and set it to 0.01 for both Normal And Hero if you have it 0 the spell wont work and if you have it for mre than your cooldown the ability wont do anything untill the set time has run out eg

Duration - normal: 2
Duration - Hero 0.5
The normal unit cant be hurt for 2 seconds and the hero cant be hurt for 0.5 seconds by any spell based of Breath Of Fire
So the optimal Setting would be

Duration - Normal: 0.01
Duration - Hero: 0.01
Buffs: ** NONE **
This will create a spell like a normal attack. The cooldown on the spell doesnt matter becuase the spell is only triggered when the unit is attacked. Okay set the maxuimum damage 10 more than the damage you want done eg.
WRONG ONLY DEALS 10 DMG
Damage Dealt: 100
Maximuim Damage Dealt: 10
See the maxuimum damage set how much the spell can do over all the damage dealt is the minuim damage dealt but is overided by the Maximuin Damage being lower

Correct way of doing this:
Damage Dealt: 100
Maximuim Damage Dealt: 110
This 110 allows armor bonuses becuase spells do not do damage like chaos they are based of the Spell Damage.

okay for this you will just need to change the range to 40 and art to Spawned Effects and what ever blood effect you want and change the missile speed to 1560 wich is what i find great for melee attacks


Step #3: Create 2 varibles with arrays. 1st Variable is a Point called Point,Postion,Location ect ( to make it easier for beginers to see what i am doing) and another Variable of Unit Called unit,Triggering_unit, Trigger_unit ect. So you should have 2 varibles now A Point And A Unit Varible With Arrays.

Step #4: Give the newley created spell to The unit you want to cast the spell

Step #5: Okay create a trigger like this:-
  • Dummy Attack
  • Events
    • Unit - A unit is attacked
  • Conditions
    • (Unit type of (Attacking unit)) Equal to (** Enter Your Unit**)
  • Actions
    • Set Unit[1] = (Triggering Unit)
    • Set Point[1] = (Postition Of (Unit[1]))
    • Set Unit[2] = (Attacking Unit)
    • Unit - Order Unit[2] To Neutral Panderan Brewmaster - Breath Of Fire Point[1]
    • Custom Script: Call RemoveLocation( udg_Point[1] )
And you are now done and you can create AI or Player Line/Splash Spells


To do this go to the unit casting the spell and go to
Art - Cast Backswing and
Art - Cast Point
and set them both to 0 to create instant casting spells!
 
Status
Not open for further replies.
Top