Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - keozeo

#1
Ok so I made a sanity meter and now I'm working on some basic effects. I want for when the player examines/picks up/uses an item or opens a door it has a chance of displaying a message if your sanity is below 45. I have the randomizer and sanity variable displayed here:
Code: ags
if (player_Sanity< 45)
{
    int dice_roll = Random(100);
    if (dice_roll < 25)
    {
       (Display "I'm a bit tense.")
       
    }
}
but I'm missing the "flag" or trigger for it if you will. I have the variable as a global. I'm pretty sure this is incredibly simple.
#2
I've been looking into this for a while but I can't seem to find much. Basically what I'm trying to do is when a certain variable ("Sanity") is below a certain number, a dice roll or random number is pulled up every time you enter a room. Certain numbers pull up an effect and certain numbers do not. Is this possible? I don't know how particularly advanced something like this is. Think something like the morality meter in "I have no mouth" but instead of changing the ending, it makes certain things happen at random.
SMF spam blocked by CleanTalk