[Solved] How to make script call variable instead of integer?

Discussion in 'Game Mechanics Design' started by bishiba, May 23, 2017.

Thread Status:
Not open for further replies.
    Tags:
  1. bishiba

    bishiba Degenerate Member

    Messages:
    16
    Likes Received:
    0
    First Language:
    Swedish
    Primarily Uses:
    N/A
    Hello!

    I would like to call a variable(68) instead of the 1 in the following script.

    DataManager.saveGame(1)

    So far I've tried:
    DataManager.saveGame(var = 68)
    DataManager.saveGame(68)
    DataManager.saveGame(var68)
    DataManager.saveGame(var 68)
    DataManager.saveGame(var = 68)
    DataManager.saveGame(id68)
    DataManager.saveGame(id 68)
    DataManager.saveGame(id = 68) //This one seems to save in slot 68... -.-'
    DataManager.saveGame(varid = 68) //This one seems to save in slot 68... -.-'


    How would I do that?
    Thanks in advance.

    Solve:

    DataManager.saveGame($gameVariables.value(68))
     
    Last edited: May 23, 2017
    #1
  2. bgillisp

    bgillisp Global Moderators Global Mod

    Messages:
    12,418
    Likes Received:
    12,653
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMVXA

    This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

     
    #2
Thread Status:
Not open for further replies.

Share This Page