Main Menu
  • Welcome to The RPG Maker Resource Kit.

How to create Zombie status effect?

Started by Puddings, September 26, 2006, 12:42:15 AM

0 Members and 1 Guest are viewing this topic.

Puddings

I was wondering how to create a status-illness called Zombie (as in FF series) where when your hero is afflicted, Heal would deal damage to him and he will be strong against Darkness attacks and weak against Light attacks? No experience is received afterwards.

I hope someone can help me out thanks  :D

Blizzard

#1
The only thing you can´t make in the database is that you can´t make him weak against light and you can´t make him get damage instead of healing. Somewhere in your Game_Battler script (don´t know which number) in "def skill_effect" should be these lines:

      last_hp = self.hp
      self.hp -= self.damage
      effective |= self.hp != last_hp
      effective |= states_plus(skill.plus_state_set)
      effective |= states_minus(skill.minus_state_set)


change it to

      last_hp = self.hp
      self.damage = -self.damage if self.damage < 0 and self.state?(ZOMBIE_STATUS_ID)
      self.damage = (self.damage * 1.5).to_i if skill.element_set.include?(LIGHT_ELEMENT_ID) and self.state?(ZOMBIE_STATUS_ID)
      self.hp -= self.damage
      effective |= self.hp != last_hp
      effective |= states_plus(skill.plus_state_set)
      effective |= states_minus(skill.minus_state_set)


Replace ZOMBIE_STATUS_ID and LIGHT_ELEMENT_ID wth the appropriate IDs from your database.
     
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

Puddings

Umm.. I tried changing the script and replace ZOMBIE_STATUS_ID and LIGHT_ELEMENT_ID with ID from my database. It's 018 for Zombie and 007 for Light Attribute. The problem is, when I run the game, I got an error message. Syntax error I think...

Tsunokiette

Change 018 to 18 and 007 to 7.

There's your syntax.

@Blizzard - I just learned something new, yay!
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I'm the only one, I'm the only one."

Puddings

Wee...now my game has Zombie status, and it works just fine! Thanks  ;D

Blizzard

Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!