- Joined
- Jul 1, 2009
- Messages
- 1,147
Sc2 Editor's Logic Is Broken?
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.
When identifying an integer variable, it considers negative numbers as positive? What the f***?
I tried changing the hinge value from 0 to 1 but it had no effect (I thought maybe it just considered 0 a negative number).
Edit: This does not work either..
No matter what, unless the enemy shields lands exactly on 0 it will deal damage to the shields.
Which is funny because in both instances I have it set to greater than or less than 0, not 0 itself.
THIS FUCKING LOGIC IS BROKEN!!!
I'd make a trigger to identify the negative amount to shields and apply it to hull but hows that possible if the game cant recognize negative numbers (even though in game it shows -## as current values).
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.
-
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]
I tried changing the hinge value from 0 to 1 but it had no effect (I thought maybe it just considered 0 a negative number).
Edit: This does not work either..
-
Deal Damage
- Events
- Local Variables
- Conditions
-
Actions
- General - If (Conditions) then do (Actions) else do (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
Which is funny because in both instances I have it set to greater than or less than 0, not 0 itself.
THIS FUCKING LOGIC IS BROKEN!!!
I'd make a trigger to identify the negative amount to shields and apply it to hull but hows that possible if the game cant recognize negative numbers (even though in game it shows -## as current values).
Last edited: