Add manna per trasported unit.

sunshinex3

You can change this now in User CP.
Reaction score
7
That's what i want this trigger to do add 50 manna to transporting unit per unit it is transporting.(4 total)

so here is the trigger i don't know how to do it proper sry.

[TRIGGER]Data Storage Copy
Events
Unit - A unit Is loaded into a transport
Conditions
((Unit-type of (Transporting unit)) Equal to Fencer (Guardian)) or (((Unit-type of (Transporting unit)) Equal to Crystalisk (Guardian)) or (((Unit-type of (Transporting unit)) Equal to Savant (guardian)) or (((Unit-type of (Transporting unit)) Equal to Marksman (Guardian)) or (((Unit-type of (Transporting unit)) Equal to Sen
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Transporting unit) has buff Bonus Manna (Guardian lvl 1)) Equal to False
((Transporting unit) has buff Bonus Manna (Guardian lvl 2)) Equal to False
((Transporting unit) has buff Bonus Manna (Guardian lvl 3)) Equal to False
((Transporting unit) has buff Bonus Manna (Guardian lvl 4)) Equal to False
Then - Actions
Unit - Add +50 mana (guardian lvl 1) to (Transporting unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Transporting unit) has buff Bonus Manna (Guardian lvl 1)) Equal to True
Then - Actions
Unit - Remove +50 mana (guardian lvl 1) from (Transporting unit)
Unit - Add +100 mana (guardian lvl 2) to (Transporting unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Transporting unit) has buff Bonus Manna (Guardian lvl 2)) Equal to True
Then - Actions
Unit - Remove +100 mana (guardian lvl 2) from (Casting unit)
Unit - Add +150 mana (guardian lvl 3) to (Casting unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Transporting unit) has buff Bonus Manna (Guardian lvl 3)) Equal to True
Then - Actions
Unit - Remove +150 mana (guardian lvl 3) from (Casting unit)
Unit - Add +200 mana (guardian lvl 4) to (Casting unit)
Else - Actions
Do nothing
[/TRIGGER]
____________________________________________________________________________________________________________________________________________
Right now all this does is add the first 50 manna but i want it to go up to 200 bonus manna.
I also want to eventually add bonus manna regen. Attack speed and damage in another trigger.
 
Last edited:

Accname

2D-Graphics enthusiast
Reaction score
1,462
Are you talking about adding max mana or healing the mana of the unit.
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
The ability to add max mana (as well as max hp and a few others) is buggy in the WC3 engine.
Only the first level is added correctly. If you add the ability to a unit and level it up the unit will keep only the bonus from the first level.

But there is another bug. Give a higher level of the ability a negative bonus and remove it from the unit. The negative bonus will not be added (as I said earlier, only the first level applies) but when the ability is removed the negative negative (that is positive) bonus will be given to the unit.
Example:
Level 1) bonus of 0
Level 2) bonus of -50

add ability to unit
set level to 2
remove ability from unit

=> unit now has +50 max mana
 

sunshinex3

You can change this now in User CP.
Reaction score
7
o yea i should of thought of that, will that work for +manna, + manna regen + attack damage and attack speed?
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Doesnt work for regeneration and attack speed as far as I know, but I am not 100% sure.
For these things you can use the auras with several levels, but you could try the item abilities.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
also i never attempted to lvl the ability just to remove lvl 1 and add lvl 2 but it doesnt work?
The buffs are fine i just don't understand? any thing?
 

sunshinex3

You can change this now in User CP.
Reaction score
7
So if i make the values negative (-50,-100,-150) then it will add the manna in there? or do i have to level it and then remove it to be added?

Also using the add manna item ability it wont let me set manna to a negative value
 

jonas

You can change this now in User CP.
Reaction score
67
Use shift+click to change to such values.

Add the ability, level it up, remove it. As Accname said, it will add the level 1 bonus but remove the level 2 bonus.
 

sunshinex3

You can change this now in User CP.
Reaction score
7
ty for telling me about shift click i set all the values to negative.
Trigger:
  • Data Storage lvl up
    • Events
    • Unit - A unit Is loaded into a transport
    • Conditions
    • ((Unit-type of (Transporting unit)) Equal to Fencer (Guardian)) or (((Unit-type of (Transporting unit)) Equal to Crystalisk (Guardian)(blue)) or (((Unit-type of (Transporting unit)) Equal to Savant (guardian)) or (((Unit-type of (Transporting unit)) Equal to Marksman (Guardian)) or (((Unit-type of (Transporting unit)) Equal
    • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Triggering unit) has buff Bonus Manna (Guardian lvl 1)) Equal to False
    • ((Triggering unit) has buff Bonus Manna (Guardian lvl 2)) Equal to False
    • ((Triggering unit) has buff Bonus Manna (Guardian lvl 3)) Equal to False
    • ((Triggering unit) has buff Bonus Manna (Guardian lvl 4)) Equal to False
    • Then - Actions
    • Unit - Add +50 mana (guardian lvl 1) to (Transporting unit)
    • Unit - Set level of +50 mana (guardian lvl 1) for (Transporting unit) to 1
    • Unit - Remove +50 mana (guardian lvl 1) from (Transporting unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Triggering unit) has buff Bonus Manna (Guardian lvl 1)) Equal to True
    • Then - Actions
    • Unit - Add +50 mana (guardian lvl 1) to (Transporting unit)
    • Unit - Set level of +50 mana (guardian lvl 1) for (Transporting unit) to 2
    • Unit - Remove +50 mana (guardian lvl 1) from (Transporting unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Transporting unit) has buff Bonus Manna (Guardian lvl 2)) Equal to True
    • Then - Actions
    • Unit - Remove +100 mana (guardian lvl 2) from (Casting unit)
    • Unit - Add +150 mana (guardian lvl 3) to (Casting unit)
    • Else - Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • ((Transporting unit) has buff Bonus Manna (Guardian lvl 3)) Equal to True
    • Then - Actions
    • Unit - Remove +150 mana (guardian lvl 3) from (Casting unit)
    • Unit - Add +200 mana (guardian lvl 4) to (Casting unit)
    • Else - Actions
    • Do nothing


This is what i tried it didnt work add ability lvl ability remove ability it did nothing....what am i doing wrong? is it transporting unit? should that be casting unit?
 
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