Managing randomly created characters.


  • *
  • Posts: 2754
Here's a sample of some of the code from the other project, this one in particular refers to a number variable. If it is run with a typo in the variable name, or if I forget to pre-make variables with the character names before compiling, it crashes in the EXE version.
The only weird thing I'm seeing is that you're comparing numbers. You need to wrap the "value of game attribute" block into an "as number" block. One good pratice is to check if the given value is not "null" (there is a block for that under Flow > Advanced) before doing stuff when you expect it to have a value.
My Stencyl resources are available here:
Cutscenes, RPG Elements, Particles, Map System and many more.