Overwatch

NEED HELP WITH CODE! INFO DOWN BELOW! tldr: Made a new ability for Zenyatta in ffa: “Truce” need help coding some of it’s functions.

Overwatch6 - NEED HELP WITH CODE! INFO DOWN BELOW! tldr: Made a new ability for Zenyatta in ffa: "Truce" need help coding some of it's functions.
Loading...

(I've been in the overwatch workshop working on some code some of you have helped provide me! it works real well!)

📷 CURRENT CODE: RTJM8 (the rules that are active, are the rules for this ability)

📷 WHAT THIS CODE DOES: When Zenyatta uses the hello voice line, while staring at the closest hero ( let us call them hero1) to his reticle and the hero is within 10 m of him and the hero isn't blocked by surfaces/walls/barriers, the hero1 is stunned for a quick second and a blue ring forms around them. This hero is now unable to be damaged by Zenyatta and Zenyatta is unable to damage the hero. This effect lasts for 30 seconds if not interrupted. Things that interrupt this effect (not sure if all of them are active in my current code): Hero1 dies, Zenyatta dies, Zenyatta changes into another hero, hero1 changes into another hero.

📷 HOW THE CODE WORKS CURRENTLY: When hero1 is affected by Zenyatta's truce: they are given a player variable called: Targets. Hero1 keeps this variable Target1 until the effect is interrupted. When the effect is interrupted the variable is emptied out. I have a couple of questions though:

📷 QUESTIONS: who is put into the variable targets when zenyatta says hello? is it just the person that zenyatta said hello to? or does zen himself get put into this variable as well?

📷 FOLLOW UP QUESTION. If zen isn't included into the targets variable, can i create a new variable for zenyatta to be put into? and if i do so, if i replace the event player in each rule with this new variable, would the ability's effects remain the same? (i have a hunch that if i do create a new variable for zen to be put into, if he has a truce with someone, he'd need to be put out of his new variable if either the player in the variable "targets" or zenyatta) dies: which would be coded as an action within the "Remove truce w/Zenyatta after death" rule, correct? )

Загрузка...

📷 REASON FOR QUESTIONS/FOLLOW UP QUESTION: I'm not sure if the effects are broken if the Zenyatta who said hello, that successfully affected hero1, dies. I'm worried that if i do create an extra rule that is identical to the "Remove truce w/Zenyatta after death" rule, but put the condition as victim= event player: the zenyatta could be any zenyatta regardless if they are the zenyatta that successfully affected hero1. So I was thinking that storing the zenyatta that successfully affected hero1 into a new variable would allow me to make the condition for this new rule to be; victim= this new variable for the zenyatta that successfully affected hero1 .

📷 EXTRA IDEAS I INTEND TO WANT BUT NEED HELP CODING:
(You can reference the ideas to me by their number)
1. When Zenyatta damages hero1 when the effect is active, hero1 is healed the amount of damage. Vise-versa (i.e. when hero1 damages Zenyatta when the effect is active, Zenyatta is healed the amount damage.)

  1. In ffa when Zenyatta earns a kill when the effect is active, hero1 gains a point. Vise-versa (i.e. when hero1 earns a kill when the effect is active, Zenyatta gains a point.)

  2. In ffa when Zenyatta dies when the effect is active, hero1 loses a point. Vise-versa (i.e. when hero1 dies when the effect is active, Zenyatta loses a point.

Source: Original link


Loading...
© Post "NEED HELP WITH CODE! INFO DOWN BELOW! tldr: Made a new ability for Zenyatta in ffa: “Truce” need help coding some of it’s functions." 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 *