Announcement

Collapse
No announcement yet.

Revive question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Revive question

    Does any one know how to revive a hero on an auto event .
    I been able to do that , but after revive my hero . He hit point
    got totally mess up . If you help me , I will put you name as
    credit in my Rpg maker 2 project .

    #2
    Re: Revive question

    Originally posted by Antersi View Post
    Does any one know how to revive a hero on an auto event .
    I been able to do that , but after revive my hero . He hit point
    got totally mess up . If you help me , I will put you name as
    credit in my Rpg maker 2 project .
    dive into your scripts. it sounds like you're using the default game calculation for registering death. what are you using to revive them? i dont use auto events much, so i dont have lots of experience debugging issues around it.

    not saying i can solve your problem, but you should be very specific and particular in describing what happens. rpg maker 2 has lots of little details easy to overlook. dont give up.

    Comment


      #3
      Re: Revive question

      ok, your looking at this simply, first make an auto event. then create it so if your char dies he is reveved. Now LOOK at the script for HP, is it that it adds HP or gives it a new HP. keep an eye on that. Use select to have a description telling you. You want to add HP not give them a totally new HP, the same goes for MP, and any other stat changes. Also have it reference check your stats so it doesnt mix them up or anything. If I can get an actual script I will type it up. Just ask.
      Lunchbox

      Comment


        #4
        Re: Revive question

        Can you type in up ???

        Comment


          #5
          Re: Revive question

          OK I have the script you seek. That'll be 10000 yen, just kidding. but here's the script though, it revives a char. with 1/2 max HP.

          000 Text: Clear Message
          001 Battle: Make active character
          002 Substitute Attribute for Variable
          003 Load direct effect info
          004 Data: Variable: [Temp Variable 9] = [Max Hit Points} X [Direct Rate]
          005 Data: Variable: [Temp Variable 9] = [Temp Variable 9] / [+100]
          006 Script Branch: Condition: Variable [Temp Variable 9] = [0 Fixed]
          007 Data Variable:[Temp Variable 9] = [+1] + [0 Fixed]
          008 Script: Condition End
          009 Data Variable: [Hit Points] = [Hit Points] + [Temp Variable 9]010 Target Data: Action Status Remove
          011 Target Data: Condition Status Remove
          012 Target Data: Magic Status Remove
          013 Target Data: Skill Status Remove
          014 Data: Substitute Variable for Attribute
          015 Script: Call [Instigators Name]
          016 Text: Message "'s Soul Returns'
          017 Battle: Change back Active Character
          018 Other: Wait 10f

          Now, I know this works, it may need to be fiddled with so as to tell if the guy is dead or not and I dont know what happens when used on a live person, but I do know that on a dead guy it gives them about half there HP back as well as no status. If anything is wrong or needs revision, I do ask for you to tell me so I can fix it both for you and my own game.
          Last edited by Lunchbox19464431; 01-07-2008, 06:11 PM. Reason: so I'm not technically double posting.
          Lunchbox

          Comment

          Working...
          X