Yo man, you’re explicitly checking if event player hp% <= 25 right?
I liked the way the workshop works, but as an intermediary programmer, it’s strange how the workshop uses blocks to represent actions and conditions, and honestly I thought we would be able to write real code within the game, such as embeddable script engines, like Lua or Javascript (Google v8 engine), or anything, because these blocks of actions you can not pass a specific context to the action, I would write a real code where we could transform and contextualize the actions appropriately.
But I really enjoyed this new workshop system .
I notice that there are the following syntaxes:
SET_ABILITY_1_ENABLED(...)
SET_ABILITY_2_ENABLED(...)
SET_ULTIMATE_ABILITY_ENABLED(...)
but there’s no options for
SET_PRIMARY_ENABLED(...)
SET_SECONDARY_ENABLED(...)
Is this intentional? I sorta like for the ability to not have to make some of the changes within the heroes settings, and other parts in the scripting tool, since it makes locating theses info for changes problematic in some cases.
You could probably achieve this effect by using the DISALLOW BUTTON
Action Syntax.
More of the value syntax are now updated into the guide. I think I will at least get all of those done by the time the night is out tonight.
thanks! I also notice there is no melee in the list.
Yeah you are right… unfortunate.
Is there a way to create custom strings? Right now, we are only able to create strings with value from the dropdown list like “Hello”, but we aren’t able to create a string saying “Stamina” for example.
Not at this time. The problem with custom streams that you have to account for all the different languages that Overwatch runs on.
Whenever I using anything in the workshop, I kinda confuse of the return type could you add return type to it?
I’d like to share a very simple debugging tool for player angles, as I was stumped at first:
5SGD3
It simply plasters the player angle, sine and cosine of the player angle (in this exact order) in the top-left corner of the screen.
Happy tinkering.
-Where can I learn to use an Array ?
-is it normal that the “resurrect” action does not always work?
Workshop bug. When I use it in Simplified Chinese, it shows blank. But is works in English. I wish I could paste my screen shot here.
An array is a data type used in literally every programming language just google “Java Array” or “C++ Array”, in the workshop you assign a variable (global or player) using SET GLOBAL/PLAYER VARIBLE and than use MODIFY GLOBAL/PLAYER VARIABLE and APPEND TO ARRAY to append something to the variable making it an array.
Is there any kind of Value which holds a Boolean that says whether the player is holding their secondary weapon out (e.g. Torb’s hammer, Mercy’s gun).
When Sombra uses her hack, can I get the player hacking and the one being hacked?
Sanity check regarding == and !=
Is it strict or loose (e.g. js style)? From what I can tell 0 == False and [anything but 0/false/null] == True. I could be mistaken but it seemed any conditions I had that relied on Variable = False triggered immediately since all variables default to 0.
use the HAS STATUS condition and the IS BUTTON HELD condition
Well i guess its time to read and try some new things in the work shop. =D
Is it possible to somehow count distance the player had travelled so far?