Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Creating a Death on posion script?, Epic Fail
Adrien.
post Jan 5 2012, 12:06 PM
Post #1


Bet Mapper
Group Icon

Group: Banned
Posts: 1,632
Type: Mapper
RM Skill: Advanced




Can some one help me turn this script that I created into something that works?

essentially RPG maker VX allows a actor to go to 1 hp when the state poison is applied. what I tried to do what say, is your HP 1? yes, reduce it to 0 and applied the death state (state id 1). But i think I just failed.


Help?

CODE
class Game_Battler
  
  def death_on_posion(actor)
    if $game_actors[actor] == nil
      return
    else
      if $game_actors[actor].state?(2) == true
        if $game_battler.hp == 1
          $game_battler.hp == 0
          $game.battler.add_state(1)
        end
      end
    end
  end
  
end


__________________________



Games I am working on | Each image is a link to the game
Go to the top of the page
 
+Quote Post
   



Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 08:56 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker