I'm working on a map, where I want heroes to lvl-up their abilities by buying specific items. First, they learn their skills as usually heroes in W3 do, and to upgrade them, they have to use books. For me everything seems to be fine, but the system doesn't work, and that's my problem... (And yes, i tried to fix it by myself)
Oh, and before you click the "reveal" button, remember to close other "If/Then/Else" roots, will be much easier to read P
Thanks in advance
Oh, and before you click the "reveal" button, remember to close other "If/Then/Else" roots, will be much easier to read P
Thanks in advance
This one sets a variable when spell is learned, to pass trought conditions in next trigger.
Every spell can be upgraded 4 times. I hope the knowledge of this will help.
Tought the bug is somewhere in this trigger, most probably in conditions, cause the upgrade-info hints has never been shown...
Every spell can be upgraded 4 times. I hope the knowledge of this will help.
-
Learn
-
Events
- Unit - A unit acquires an ability
- Conditions:
-
Actions:
- -------- Stomp --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Learned Hero Skill) Equal to Stomp
-
Then - Actions:
- Set Stomp[(Player number of (Owner of (Triggering unit)))] = 1
- Else - Actions:
-
If - Conditions:
- -------- Spellbook --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Learned Hero Skill) Equal to Totem Spellbook
-
Then - Actions:
- Set Spellbook[(Player number of (Owner of (Triggering unit)))] = 1
- Else - Actions:
-
If - Conditions:
- -------- Slashing Strike --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Learned Hero Skill) Equal to Slashing Strike (dummy)
-
Then - Actions:
- Set SS_angle[(Player number of (Owner of (Triggering unit)))] = 20 // It's default angle value for triggered spell, consider it as '1' in other "Set ..."'s
- Else - Actions:
-
If - Conditions:
- -------- Shockwave --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Learned Hero Skill) Equal to Shockwave (dummy)
-
Then - Actions:
- Set Shockwave[(Player number of (Owner of (Triggering unit)))] = 1
- Else - Actions
-
If - Conditions:
-
Events
Tought the bug is somewhere in this trigger, most probably in conditions, cause the upgrade-info hints has never been shown...
-
Upgrade
-
Events:
- Unit - A unit acquires an item
- Conditions:
-
Actions:
- -------- Slashing Strike --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Slashing Strike
- SS_angle[(Player number of (Owner of (Triggering unit)))] Greater than or Equal to 20
- SS_angle[(Player number of (Owner of (Triggering unit)))] Lower than 100
-
Then - Actions
- Set SS_angle[(Player number of (Owner of (Triggering unit)))] = (SS_angle[(Player number of (Owner of (Triggering unit)))] + 20)
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: (|cffffcc00Upgrade - ...
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Slashing Strike
- SS_angle[(Player number of (Owner of (Triggering unit)))] Equal to 0
-
Then - Actions:
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffFF0000Error|r |...
- Player - Add 160 to (Owner of (Triggering unit)) gold amount
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Slashing Strike
- SS_angle[(Player number of (Owner of (Triggering unit)))] Equal to 4
-
Then - Actions:
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffFF0000Error|r |...
- Player - Add 160 to (Owner of (Triggering unit)) gold amount
- Else - Actions:
-
If - Conditions:
- -------- Stomp --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Stomp
- Stomp[(Player number of (Owner of (Triggering unit)))] Greater than or Equal to 1
- Stomp[(Player number of (Owner of (Triggering unit)))] Lower than 4
-
Then - Actions:
- Set Stomp[(Player number of (Owner of (Triggering unit)))] = (Stomp[(Player number of (Owner of (Triggering unit)))] + 1)
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: (|cffffcc00Upgrade - ...
- Unit - Remove Stomp from (Triggering unit)
- Unit - Add Stomp (upg) to (Triggering unit)
- Unit - Set level of Stomp (upg) for (Triggering unit) to Stomp[(Player number of (Owner of (Triggering unit)))]
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Stomp
- Stomp[(Player number of (Owner of (Triggering unit)))] Equal to 0
-
Then - Actions:
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffFF0000Error|r |...
- Player - Add 270 to (Owner of (Triggering unit)) gold amount
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Stomp
- Stomp[(Player number of (Owner of (Triggering unit)))] Equal to 4
-
Then - Actions:
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffFF0000Error|r |...
- Player - Add 270 to (Owner of (Triggering unit)) gold amount
- Else - Actions
-
If - Conditions:
- -------- Spellbook --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Totem Spellbook
- Spellbook[(Player number of (Owner of (Triggering unit)))] Greater than or Equal to 1
- Spellbook[(Player number of (Owner of (Triggering unit)))] Lower than 4
-
Then - Actions:
- Set Spellbook[(Player number of (Owner of (Triggering unit)))] = (Spellbook[(Player number of (Owner of (Triggering unit)))] + 1)
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: (|cffffcc00Upgrade - ...
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Totem Spellbook
- Spellbook[(Player number of (Owner of (Triggering unit)))] Equal to 0
-
Then - Actions:
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffFF0000Error|r |...
- Player - Add 170 to (Owner of (Triggering unit)) gold amount
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Totem Spellbook
- Spellbook[(Player number of (Owner of (Triggering unit)))] Equal to 4
-
Then - Actions:
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffFF0000Error|r |...
- Player - Add 170 to (Owner of (Triggering unit)) gold amount
- Else - Actions:
-
If - Conditions:
- -------- Shockwave --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Shockwave
- Shockwave[(Player number of (Owner of (Triggering unit)))] Greater than or Equal to 1
- Shockwave[(Player number of (Owner of (Triggering unit)))] Lower than 4
-
Then - Actions:
- Set Shockwave[(Player number of (Owner of (Triggering unit)))] = (Shockwave[(Player number of (Owner of (Triggering unit)))] + 1)
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: (|cffffcc00Upgrade - ...
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Shockwave
- Shockwave[(Player number of (Owner of (Triggering unit)))] Equal to 0
-
Then - Actions:
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffFF0000Error|r |...
- Player - Add 230 to (Owner of (Triggering unit)) gold amount
- Else - Actions:
-
If - Conditions:
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions:
- (Item-type of (Item being manipulated)) Equal to Upgrade: Shockwave
- Shockwave[(Player number of (Owner of (Triggering unit)))] Equal to 4
-
Then - Actions:
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: |cffFF0000Error|r |...
- Player - Add 230 to (Owner of (Triggering unit)) gold amount
- Else - Actions:
-
If - Conditions:
-
Events: