Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question i want manage my player's stat. (ink)

Discussion in 'Getting Started' started by shyego1225, Mar 4, 2024.

  1. shyego1225

    shyego1225

    Joined:
    Mar 3, 2024
    Posts:
    4
    Hi! i'm noob indie game developer. i'm using unity(2D) to make text-based game. (with ink)

    first, I say sorry for my strange English skills.

    anyway! in my game, player have several status. like power, health, intelligence...etc.

    question is, in the story, if player drink poison tea, how can i down player's health status?

    [player drink tea. oops. it's poison.

    health -20] << if this line come out, i want to down 20 health point in my player's 100 health point that already defined in c# script.


    I need your help. Have a nice day!