RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
How to create Zombie status effect?

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 88
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

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
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:

Code: [Select]
      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

Code: [Select]
      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.
     
« Last Edit: September 26, 2006, 11:54:48 AM by 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!

**
Rep: +0/-0Level 88
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...

*
Full Metal Mod - He will pillage your women!
Rep:
Level 93
The RGSS Dude
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."

**
Rep: +0/-0Level 88
Wee...now my game has Zombie status, and it works just fine! Thanks  ;D

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
:scripter:
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!