Visual Cues for Damage states?

Discussion in 'RPG Maker VX Ace' started by TicklishWasabi, Aug 23, 2019.

Thread Status:
Not open for further replies.
  1. TicklishWasabi

    TicklishWasabi Veteran Veteran

    Messages:
    151
    Likes Received:
    15
    First Language:
    English
    Primarily Uses:
    N/A
    Is there a way to make it so an applied state that damages you outside of battle will give a visual cue to the player that they are taking damage, so for every instance their hp decreases, the screen will flash red or maybe a sound will play?

    -Thanks
     
    #1
  2. Heirukichi

    Heirukichi Veteran Veteran

    Messages:
    1,293
    Likes Received:
    546
    Location:
    Italy
    First Language:
    Italian
    Primarily Uses:
    RMVXA
    If you want to do that without using scripts you could do that in a parallel process event. In that case your state might not inflict any damage and everything would be handled in the parallel process event (animation and damage). Otherwise you need to use a script to handle that.

    The obvious advantage of handling everything in the parallel process event is that you can have a single conditional branch for each state that deals damage out of combat, and use the Show Animation command together with the Change HP command in the said conditional branch.
     
    Last edited: Aug 23, 2019
    #2
  3. TicklishWasabi

    TicklishWasabi Veteran Veteran

    Messages:
    151
    Likes Received:
    15
    First Language:
    English
    Primarily Uses:
    N/A
    This is what I have so far, I'm trying to make it so I'm damaged once every 5 steps. The problem right now seems to be that if I take 5 steps and don't move, the game parallel process seems to get stuck on the dmg, flash, and sound and happens a million times a minute until I die. (in the picture it's +25 but I fixed it.) I then have a command that subtracts 5 steps, setting me back to 0 steps. But that doesn't seem to work, neither does using the Set = 0 rather than subtract. If I take 5 steps and keep moving, I won't get damaged ever again, however. sdfkb.PNG
     
    #3
  4. Thefirelion

    Thefirelion Veteran Veteran

    Messages:
    49
    Likes Received:
    11
    First Language:
    Spanish
    Primarily Uses:
    RMVXA
    Make a test creating a contidional call script box:

    To determine if the player is walking
    $game_player.moving?

    To determine if the player is running
    $game_player.dash?

    Edit: Also creates a variable without calling the step count, instead, it creates a variable that adds 1 (1 point) each step and when it reaches 5 it resets
     
    Last edited: Aug 23, 2019
    #4
    Heirukichi likes this.
  5. TicklishWasabi

    TicklishWasabi Veteran Veteran

    Messages:
    151
    Likes Received:
    15
    First Language:
    English
    Primarily Uses:
    N/A
    I'm sorry but I'm not sure how to do that.
     
    #5
  6. Thefirelion

    Thefirelion Veteran Veteran

    Messages:
    49
    Likes Received:
    11
    First Language:
    Spanish
    Primarily Uses:
    RMVXA
    For example In the parallel process:
    If [Actor1] is [Downing] inflited
    1) if $game_player.moving?
    Control Variable[your variable]+=1
    else (if you like)
    if $game_player.dash?
    Control Variable[your variable]+=1
    end
    2) if [your variable] == 5
    do stuff
    Control Variable[Your variable] = 0 #Reset the variable
    end.
     
    #6
  7. TicklishWasabi

    TicklishWasabi Veteran Veteran

    Messages:
    151
    Likes Received:
    15
    First Language:
    English
    Primarily Uses:
    N/A
    Ooooooh. Thank you so much, you're a huge help. And you actually gave me an idea of how to make it do damage based on time instead of steps as well! Which would make more sense in my case. Everything works perfectly.

    -Thanks
     
    #7
  8. Kes

    Kes Global Moderators Global Mod

    Messages:
    21,047
    Likes Received:
    10,697
    First Language:
    English
    Primarily Uses:
    RMVXA
    @TicklishWasabi
    If your query is fully resolved, please Report your post and ask for the thread to be closed. Mods might not see a post, but they will see a Report.
     
    #8
  9. slimmmeiske2

    slimmmeiske2 Little Red Riding Hood Moderator

    Messages:
    5,727
    Likes Received:
    4,168
    Location:
    Belgium
    First Language:
    Dutch
    Primarily Uses:
    RMXP

    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.

     
    #9
Thread Status:
Not open for further replies.

Share This Page