Only show event if a stat is high enough

Discussion in 'Game Mechanics Design' started by Canini, Apr 7, 2016.

  1. Canini

    Canini Veteran Veteran

    Messages:
    974
    Likes Received:
    647
    First Language:
    Swedish
    I am working on a game prototype where there are few battles but stats still play a big part. Making events and sidequests raise a character stat is simple enough I was wondering if there any way to only show an event if a characters stat is only above a certain threshold? Lets say there is a ghost in a map that the player can only see or interact with if their wisdow stat is high enough. Any suggestions how this can be implemented, and if it is even possible? 
     
    #1
  2. Oddball

    Oddball Veteran Veteran

    Messages:
    1,527
    Likes Received:
    383
    First Language:
    English
    Primarily Uses:
    N/A
    i think its possible to store a stat value into a variable. so yes, it is possible. practical? ask someone who knows how to store a stat into a variable
     
    #2
  3. standardplayer

    standardplayer Keeper of Kitties Veteran

    Messages:
    333
    Likes Received:
    1,260
    First Language:
    English
    Primarily Uses:
    N/A
    You can use Control Variables (Game Data) to store specific data like stats into variables.


    Then, you can use Conditional branch to check if said variable is greater than, equal to, less than, etc. You can even check if the variable is 'not' equal to something and run an event that way. 


    But lets say we did that ghost example. 


    Make the ghost an event that has one of the conditions in the upper left side checked. You can choose the variable you've chosen your stat in, and what value it needs to be equal to or greater than in order for the event to trigger.  


    To recap, Control variable and click Game Data to access the stats to store. 


    Set event's inherent requirement to be the stat and it's required value, via the variable you made. 


    Hope this helped ^^

    examp.png
     
    #3
    Canini likes this.
  4. Canini

    Canini Veteran Veteran

    Messages:
    974
    Likes Received:
    647
    First Language:
    Swedish
    Neat, thanks. Would it be possible to take it even further, say make the ghost appear on a certain threshold but not make the player be able to interact with it until yet another threshold is crossed. Or do you have to do two events in that case?
     
    #4
  5. Ghost of Christmas Kloe

    Ghost of Christmas Kloe Ghost of a Princess Seagull Veteran

    Messages:
    1,504
    Likes Received:
    913
    Location:
    Somewhere...
    First Language:
    English
    Primarily Uses:
    N/A
    Yes, a conditional branch which works IF the variable you used earlier is X.
     
    #5
    Canini likes this.
  6. Canini

    Canini Veteran Veteran

    Messages:
    974
    Likes Received:
    647
    First Language:
    Swedish
    Nice!


    I will be experimenting a bit with this during the weekend, then.
     
    #6
  7. clark

    clark Villager Member

    Messages:
    22
    Likes Received:
    10
    First Language:
    english
    you can actually set a blank page, then have page 2 be set to the variable also to make the thing completely invisible until said variable is reached.
     
    #7
  8. Menos

    Menos Veteran Veteran

    Messages:
    36
    Likes Received:
    10
    First Language:
    English
    You could do this either via if statements or event pages. The latter probably has more flexibility, since you could use graphics of the ghost at different transparencies and make it get more concrete as the player gets closer to being able to interact.
     
    #8

Share This Page