Jump to content

Help editing .pex: How Do I Divide a Value?


PokemonButcher

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...