Simple Triggered Spells

Cfw_Master

New Member
Reaction score
1
Hello, i'm working my way into learning the wonders of spells and abilities. Since I'm just starting out, i'm trying to put together some simple triggered spells using GUI. Already, i've run into trouble :eek:

First spell: Blinking to a location and creating a mirror image at the previous location. How would I create the mirror image at previous location?

Second spell: Passive ability that has a chance of creating image when attacking. Again, I'm stuck on the image creation.

Thanks for your help :D
 

nabbig2

New Member
Reaction score
43
You need to add Mirror Image to the unit, then order it to cast mirror image, then remove Mirror Image from the unit.
 

Samael88

Evil always finds a way
Reaction score
181
Or you could have a dummy-unit with the mirror image wand thingy ability and make it use that ability on your unit:)
 

simonake

New Member
Reaction score
72
For the first one.

Create A variable on Point
I will use the label "tempPoint"

Unit -Start the effect of an ability

Condtitions
(Ability being cast) Equal to ( )

Actions
Set tempPoint Equal to Position of unit
Custom script:call TriggerSleepAction( 0.01 ) -copy this text
Unit - Add mirror image to (casting unit)
Unit - Order to (casting unit) to mirror image
Unit - Remove mirror image to (casting unit)
Unit - Move (Last created unit) instantly to tempPoint



For other spell use the same way.
 

Naga'sShadow

Ultra Cool Member
Reaction score
49
For both spells your gona need a bit of custom script. Search the forums for the wand of illusion's order id. That's the spell your gonna want to use to create your images. But you can't give the order via the unit-issue order with a single target. It's not there. So find that. To make it seamless will be a pain for the first ability and my advice is don' make such a difficult spell for your first triggered spell. The second ability is easy.

Code:
Events
A unit attacks
Conditions
Unit has buff <your image buff> //Base it on an aura with target self.
Actions
Set chance equal to random number between 1 and 100 //Chance is a real variable.
If level of <your spell> for attacking unit is 1 then
     If chance is less than or equal to <% chance of it happening>  then
            Make image //Search for this
     else
else

And so on for each level of the spell.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top