need help in spell

caelez

New Member
Reaction score
0
there are some upgrades effect which i wish to make it into an ability of a hero.
such as : Long Rifle Upgrade - increase attack range of rifleman
Upgrade moon glaive - provide bouncing target while attacking
i found it in the object editor>upgrades
and its unable to place any upgrades effect in the "ability - hero" section, also, hero unit do not have the section "Techtree - Researches avaliable"

anyone who understand what i mention about please help.
 

Varine

And as the moon rises, we shall prepare for war
Reaction score
808
You just make it an ability that adds whatever buff to it.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
You can't just turn any upgrade into an ability, as many of the abilities are just displays for the effect given by the upgrade. You have to go to your Upgrade Editor and change the values so that they can affect your hero.
 

caelez

New Member
Reaction score
0
Take Aim
Events
Unit - A unit Learns a skill
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Take Aim for (Triggering unit)) Equal to 1
(Owner of (Triggering unit)) Equal to (Triggering player)
Then - Actions
Player - Set the current research level of Arrow Range Upgrade to 1 for (Triggering player)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Take Aim for (Triggering unit)) Equal to 2
(Owner of (Triggering unit)) Equal to (Triggering player)
Then - Actions
Player - Set the current research level of Arrow Range Upgrade to 2 for (Triggering player)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Level of Take Aim for (Triggering unit)) Equal to 3
(Owner of (Triggering unit)) Equal to (Triggering player)
Then - Actions
Player - Set the current research level of Arrow Range Upgrade to 3 for (Triggering player)
Else - Actions
 

Solu9

You can change this now in User CP.
Reaction score
216
When you post a trigger you can should wrap a WC3 tag around it.

[WC3,] Trigger
[/WC3,]

Like that, but without the comma. Right click the trigger name, in this case the Take Aim and copy it in between the WC3 tags.

Trigger:
  • Take Aim
    • Events
    • Unit - A unit Learns a skill
    • Conditions
    • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Level of Take Aim for (Triggering unit)) Equal to 1
    • (Owner of (Triggering unit)) Equal to (Triggering player)
    • Then - Actions
    • Player - Set the current research level of Arrow Range Upgrade to 1 for (Triggering player)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Level of Take Aim for (Triggering unit)) Equal to 2
    • (Owner of (Triggering unit)) Equal to (Triggering player)
    • Then - Actions
    • Player - Set the current research level of Arrow Range Upgrade to 2 for (Triggering player)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Level of Take Aim for (Triggering unit)) Equal to 3
    • (Owner of (Triggering unit)) Equal to (Triggering player)
    • Then - Actions
    • Player - Set the current research level of Arrow Range Upgrade to 3 for (Triggering player)
    • Else - Actions


I just took your post and wrapped the tag around it. It will be much nicer if you did it from the start :)
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
There's no need for the nested Ifs.
Try using
Trigger:
  • Player - Set the current research level of Arrow Range Upgrade to (Level of Take Aim for (Triggering unit)) for (Triggering player)
 

caelez

New Member
Reaction score
0
thanks alot, but this is for passive skill only..
i wonder if is able to turn on the upgrade while the spell cast, and after the spell duration, the upgrade back to 0 again..
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top