King's Quest Score system

  • #1, by fabian-schurgersTuesday, 26. October 2021, 09:16 2 years ago
    Hi there,

    I'm trying to make a score system for my game, like in the old King's Quest games.

    I'm using the 'Display object text' to show the score on screen, and I was wondering if there's a text code to display a value?

    Or do I need to do it with Lua scripting? I found this in the Visionaire Wiki:

    -- let's say I have an integer value called "money" which contains the initial value of 100...
    I currently have $. -- would display "I currently have $100."

    Could this be used to display a score on screen?

    Thanks!

    Forum Fan

    128 Posts


  • #2, by esmeraldaTuesday, 26. October 2021, 09:36 2 years ago
    Yes, sure. Do like described in the wiki.

    <v=value_name>  will display the integer of the value
    <vs=value_name> the string of the value


    Key Killer

    513 Posts

  • #3, by fabian-schurgersTuesday, 26. October 2021, 11:06 2 years ago
    Yes, sure. Do like described in the wiki.

    <v=value_name>  will display the integer of the value</v=value_name></div>
    <vs=value_name> the string of the value</vs=value_name></div>



    Great! Thanks for the help!

Forum Fan

128 Posts