Spell Help

Spray-

Member
Reaction score
1
Hi, im making a spell in which it creates a unit which has 2 abilities which in theory increase depending on the level of the base ability the hero uses to activate the trigger, but for some reason, the created unit's spells stays at the same level (1). Here's the code.

Events
Unit - A unit Begins casting an ability

Conditions
(Ability being cast) Equal to Quicksand (Buccaneer)

Actions
Unit - Create 1 Quicksand for (Owner of (Casting unit)) at (Target point of ability being cast) facing Default building facing degrees
Set Quicksand = (Last created unit)
Wait 0.10 seconds
Unit - Set level of Quicksand Aura (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for Buccaneer 0065 <gen>)
Unit - Set level of Quicksand Damage (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for Buccaneer 0065 <gen>)
Wait 15.00 seconds
Unit - Remove Quicksand from the game

And yes, the Unit has the abilities and both abilities have levels up to 10.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Try to use Casting Unit, or Triggering unit, istead of the preset Buccaneer 0065 <gen>.
 

naughty

New Member
Reaction score
12
Events
Unit - A unit Begins casting an ability

Conditions
(Ability being cast) Equal to Quicksand (Buccaneer)

Actions
set casting_unit=casting unit
Unit - Create 1 Quicksand for (Owner of (casting_unit)) at (Target point of ability being cast) facing Default building facing degrees
Set Quicksand = (Last created unit)
add 10 seconds generic expiration timer to last created unit
Wait 0.10 seconds
Unit - Set level of Quicksand Aura (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for casting_unit)
Unit - Set level of Quicksand Damage (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for casting_unit)




IT should look like this....
 

Spray-

Member
Reaction score
1
Events
Unit - A unit Begins casting an ability

Conditions
(Ability being cast) Equal to Quicksand (Buccaneer)

Actions
set casting_unit=casting unit
Unit - Create 1 Quicksand for (Owner of (casting_unit)) at (Target point of ability being cast) facing Default building facing degrees
Set Quicksand = (Last created unit)
add 10 seconds generic expiration timer to last created unit
Wait 0.10 seconds
Unit - Set level of Quicksand Aura (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for casting_unit)
Unit - Set level of Quicksand Damage (Buccaneer) for Quicksand to (Level of Quicksand (Buccaneer) for casting_unit)




IT should look like this....


.... Didnt work :p Maybe i should just do a trigger for each level of the spell xP
 

Spray-

Member
Reaction score
1
I made it work by making separate levels for the damage and slowing effects xD Annoying but at least it works. Thanks for all the help nontheless!:thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top