- Joined
- Jul 1, 2009
- Messages
- 1,147
SOLVED
Edit: The problem was indeed with absolute values. Even changing the y part of the "is x equal to y" there was still an "is x absolute" function in the trigger. I didn't even think of that.
Thank you all for your help.
This is with the sc2 editor, however both the wc3 and sc2 editor do mathematical calculations in the same fashion, so I assume its a wc3 editor problem as well.
Essentially it's registering negative integer variables as positive. Any help would be VERY appreciated.
http://www.hiveworkshop.com/forums/...ard-real-identifying-negative-numbers-227129/
Edit: The problem was indeed with absolute values. Even changing the y part of the "is x equal to y" there was still an "is x absolute" function in the trigger. I didn't even think of that.
Thank you all for your help.
-
Deal Damage
- Events
- Local Variables
- Conditions
-
Actions
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
Or
-
Conditions
- (Abs(Enemy Shields)) < 0
- (Abs(Enemy Shields)) == 0
-
Conditions
-
Or
-
Then
- Variable - Modify Enemy Hull: - Player Weapon Effective Damage
- Variable - Set Player Current Weapon Effective Cooldown = (Abs(Player Current Weapon Cooldown))
- Else
-
If
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
- (Abs(Enemy Shields)) > 0
-
Then
- Variable - Modify Enemy Shields: - Player Weapon Effective Damage
- Variable - Set Player Current Weapon Effective Cooldown = (Abs(Player Current Weapon Cooldown))
- Else
-
If
-
General - If (Conditions) then do (Actions) else do (Actions)
-
Deal Damage
- Events
- Local Variables
- Conditions
-
Actions
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
-
Or
-
Conditions
- Enemy Shields < 0
- Enemy Shields == 0
-
Conditions
-
Or
-
Then
- Variable - Modify Enemy Hull: - Player Weapon Effective Damage
- Variable - Set Player Current Weapon Effective Cooldown = (Abs(Player Current Weapon Cooldown))
- Else
-
If
-
General - If (Conditions) then do (Actions) else do (Actions)
-
If
- Enemy Shields > 0
-
Then
- Variable - Modify Enemy Shields: - Player Weapon Effective Damage
- Variable - Set Player Current Weapon Effective Cooldown = (Abs(Player Current Weapon Cooldown))
- Else
-
If
-
General - If (Conditions) then do (Actions) else do (Actions)
- [/hidden]
Essentially it's registering negative integer variables as positive. Any help would be VERY appreciated.
http://www.hiveworkshop.com/forums/...ard-real-identifying-negative-numbers-227129/
Last edited: