PokemonButcher Posted June 1, 2018 Share Posted June 1, 2018 I asked a modder how I am to decrease the amount by which a variable increases. He highlighted the line in the .pex file that he created that would affect the change I need (+= ChangeStep) and told me to divide it: += ChangeStep ---------- divide change step there How do I divide it? I don't know anything about coding. As far as I know, there is no division symbol on a keyboard, but there must be some way to divide a variable/value (ChangeStep)! Please, does anyone know how to "divide" it in... lets say, half? Link to comment Share on other sites More sharing options...
DrakeTheDragon Posted June 1, 2018 Share Posted June 1, 2018 Did you try "/" already? It means division in all programming and scripting languages I know. Otherwise, what game is this about? I can move your topic to places where the people who are more likely to know the answer are mostly hanging out. edit: Additionally, simple math always applies when working with variables. So you can just as well exchange "+= ChangeStep / 2" by "+= ChangeStep * 0.5" as well. Link to comment Share on other sites More sharing options...
PokemonButcher Posted June 2, 2018 Author Share Posted June 2, 2018 On 6/1/2018 at 10:29 PM, DrakeTheDragon said: Did you try "/" already? It means division in all programming and scripting languages I know. Otherwise, what game is this about? I can move your topic to places where the people who are more likely to know the answer are mostly hanging out. edit: Additionally, simple math always applies when working with variables. So you can just as well exchange "+= ChangeStep / 2" by "+= ChangeStep * 0.5" as well. Thank you so much! Big help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now