Enemy Death/0% HP Battle Event

Discussion in 'RPG Maker VX Ace' started by wrigty12, Mar 30, 2014.

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

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    I am trying to have a boss say a line of text when his HP is 0, but before he "dies" on screen.

    How I tried making the enemy immune to Death, but then when I script add Death to him, it still doesnt work.

    How do I have the boss say something just before he dies in the battle?
     
    #1
  2. Andar

    Andar Veteran Veteran

    Messages:
    28,672
    Likes Received:
    6,594
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    The idea to make the boss immune to death is the correct one, but you need to remove the resistance to death after the message is displayed.


    There are several ways to do this, I suggest adding the resistance by troop event run once at turn zero, then remove the resistance again after the message has been displayed. The death should follow automatically if the boss is still at 0 HP.
     
    #2
  3. wrigty12

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    How do I change the resistance within the Battle Events?
     
    #3
  4. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    #4
  5. wrigty12

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    I think I'd rather use the changing resistance thing instead of installing another script, that I'd probably only use once.

    But, again, I dont know how to change enemy resistances through scripts.
     
    #5
  6. Andar

    Andar Veteran Veteran

    Messages:
    28,672
    Likes Received:
    6,594
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Make a state "immortal" with resistance to death and add that state by the event command "change enemy state".
    Place that command in the troop events, and have that event run on turn 0 only.
     
    #6
    wrigty12 likes this.
  7. wrigty12

    wrigty12 Veteran Veteran

    Messages:
    533
    Likes Received:
    76
    First Language:
    English
    Got it. Thanks!
     
    #7
  8. Andar

    Andar Veteran Veteran

    Messages:
    28,672
    Likes Received:
    6,594
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    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.
     
    #8
Thread Status:
Not open for further replies.

Share This Page