Overwatch

Problem with variables not updating? (Lots of Text)

Overwatch3 - Problem with variables not updating? (Lots of Text)
Loading...

variables

{

`player:` `0: moveSpeed` `1: maxHealth` `2: damageDealt` `3: damageRecieved` `4: healingDealt` `5: healingRecieved` `6: aimSpeed` `7: gravity` `8: statCheck` `10: projectileSpeed` `29: tracerSpeed` `30: tracerDelay` `31: tracerCheck` 

}

rule("set stats")

{

`event` `{` `Ongoing - Each Player;` `All;` `All;` `}` 

`conditions` `{` `Event Player.statCheck == 0;` `}` 

`actions` `{` `Set Projectile Speed(Event Player, Event Player.projectileSpeed);` `Set Move Speed(Event Player, Event Player.moveSpeed);` `Set Damage Dealt(Event Player, Event Player.damageDealt);` `Set Damage Received(Event Player, Event Player.damageRecieved);` `Set Healing Received(Event Player, Event Player.healingRecieved);` `Set Max Health(Event Player, Event Player.maxHealth);` `Set Aim Speed(Event Player, Event Player.aimSpeed);` `Set Gravity(Event Player, Event Player.gravity);` `Set Healing Dealt(Event Player, Event Player.healingDealt);` `Event Player.statCheck = 1;` `}` 

}

rule("Tracer Speed Minimum")

{

`event` `{` `Ongoing - Each Player;` `Team 1;` `Tracer;` `}` 

`conditions` `{` `Event Player.tracerSpeed < 75;` `}` 

`actions` `{` `Event Player.tracerSpeed = 75;` `}` 

}

rule("Set Speed Based On Damage")

{

`event` `{` `Ongoing - Each Player;` `Team 1;` `Tracer;` `}` 

`conditions` `{` `Event Player.tracerCheck == 0;` `}` 

Загрузка...
`actions` `{` `Event Player.moveSpeed = Event Player.tracerSpeed;` `Event Player.statCheck = 0;` `Event Player.tracerCheck = 1;` `}` 

}

rule("Set Damage")

{

`event` `{` `Player Dealt Damage;` `Team 1;` `Tracer;` `}` 

`actions` `{` `Event Player.tracerSpeed = Event Player.tracerSpeed + Round To Integer(Event Damage / 4, Up);` `Event Player.tracerCheck = 0;` `}` 

}

rule("Reduce Speed")

{

`event` `{` `Ongoing - Each Player;` `All;` `All;` `}` 

`conditions` `{` `Event Player.tracerSpeed > 75;` `Event Player.tracerDelay == 1;` `}` 

`actions` `{` `Event Player.tracerSpeed = Event Player.tracerSpeed - 1;` `Event Player.tracerCheck = 0;` `Wait(0.070, Ignore Condition);` `Loop If Condition Is True;` `}` 

}

rule("Set Delay")

{

`event` `{` `Player Dealt Damage;` `Team 1;` `Tracer;` `}` 

`actions` `{` `Event Player.tracerDelay = 0;` `Wait(0.800, Restart When True);` `Event Player.tracerDelay = 1;` `}` 

}

i'm sorry if this difficult to read, i'm just very unsure of where the problem lies, it basically works normally as the code would suggest, but then at some point it locks the moveSpeed variable, so the tracerSpeed variable could be like 500, but movespeed would stay at 140. To anyone willing to help, thanks!

Source: Original link


Loading...
© Post "Problem with variables not updating? (Lots of Text)" for game Overwatch.


Top 10 Most Anticipated Video Games of 2020

2020 will have something to satisfy classic and modern gamers alike. To be eligible for the list, the game must be confirmed for 2020, or there should be good reason to expect its release in that year. Therefore, upcoming games with a mere announcement and no discernible release date will not be included.

Top 15 NEW Games of 2020 [FIRST HALF]

2020 has a ton to look forward to...in the video gaming world. Here are fifteen games we're looking forward to in the first half of 2020.

You Might Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *