Can someone help me set up a trigger, when ever an new item is being bought it count as 1 Food was used?
In my case all my spells variable is set to be named Ability, so i would like to have my Ability/variable set to Food used + 1. so i can control how many spells the player gets to buy.
But the tricky part is the item/spell the player bought cant cost any food after they bought it once, or else it wont be able to level up
Here is how my spells setup looks.
In my case all my spells variable is set to be named Ability, so i would like to have my Ability/variable set to Food used + 1. so i can control how many spells the player gets to buy.
But the tricky part is the item/spell the player bought cant cost any food after they bought it once, or else it wont be able to level up
Here is how my spells setup looks.
-
Frost Nova
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to Frost Nova
-
-
Actions
-
Set Units = (Triggering unit)
-
Set Ability[(Player number of (Owner of Units))] = Frost Nova
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Ability[(Player number of (Owner of Units))] for Units) Less than 1
-
-
Then - Actions
-
Unit - Add Ability[(Player number of (Owner of Units))] to Units
-
Game - Display to (Player group((Owner of Units))) for 5.00 seconds the text: |c0000FFFF Frost No...
-
Special Effect - Create a special effect attached to the origin of Units using Abilities\Spells\Items\AIem\AIemTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of Ability[(Player number of (Owner of Units))] for Units) Less than 10
-
-
Then - Actions
-
Unit - Increase level of Ability[(Player number of (Owner of Units))] for Units
-
Game - Display to (Player group((Owner of Units))) for 5.00 seconds the text: (|c0000FFFF Frost Nova's |r Level + ( is + ( + (String((Level of Frost Nova for Units))))))
-
Special Effect - Create a special effect attached to the origin of Units using Abilities\Spells\Items\AIem\AIemTarget.mdl
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
Game - Display to (Player group((Owner of Units))) for 5.00 seconds the text: This spell is alrea...
-
Player - Add 400 to (Owner of Units) Current gold
-
-
-
-
-
-
Attachments
Last edited: