Operation between global variables

● ARCHIVED · READ-ONLY
Started by KravenarGames 2 posts View original ↗
  1. How could be possible do with scripts something like

    GN:1 * GN:2 / GN:3? I haven't seen something to do that around...
  2. You can use Number Variable command to do that. If you want to do that with script, it looks like this:

    Code:
    var numbers = GameManager.variableStore.numbers;
    numbers[0] = numbers[0] * numbers[1] / numbers[2];

    The variable index starts at 0 in scripts so for variable 0001 you have to use 0, for 0002 you have to use 1 and so on. Let me know if that helps you out.