Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Mithrik

HP Absorption

Question

Hello.

I've been looking for a way to make an HP Absorption skill, and I found this script by RPG Advocate.

 

The problem is that I can't seem to get it to work. It came with no instruction other than something that basically says: "Place in the Script Editor and use the sample code to call from a common event."

 

Whenever I try to test my skill the way they tell me, I get an error saying this:

 

 

undefined method 'damage_hook' for #<Game_Temp:0x299c558>

 

What does that mean? I am quite new to RPG Maker and I am still learning about the scripting function, so I only understand basic things like the cod logic. If I could get some help I would appreciate it a lot.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Share this post


Link to post
Share on other sites
  • 0

Thank you for showing me those, they were pretty helpful, and I substitued the script I was using with Blizzard's, but I have a problem with it. I got the HP Absorption Script to run, but now my whole Skill window is broken by a a part of the script that shouldn't be running at all.

 

It says this:

 

 

????? 'Blizz_AddOn' ? 808 ??? NoMethodError????????

undefined method 'SKILL_SEPARATION' for #<Game_System:0x33e3cc8>

 

What did I do wrong?

 

This is what I have on my Call Script Command:

 

$game_system.ABSORB_HP_SP = true

 

That's what the instructions say I put in it, so I'm stumped again. Even more so, the problem comes from an add-on I am not using at all.

Edited by Mithrik

Share this post


Link to post
Share on other sites
  • 0

Sometimes it'll do that lol. Where did you put the call script command? I'm pretty sure you don't need it.

Just change line 102 of part 3 (@ABSORB_HP_SP        = false) to true

then go down to line 1135 and set the IDs

 

Also try this:

- Make sure you have all 3 parts of the script

- turn on skill separation, but change the settings so it doesn't look like it's doing anything in game

- If that doesn't work, replace line 808 (which should be "return if $game_system.SKILL_SEPARATION") with this:

NOTE: "banana" can be substituted for any word that is not already in any script. you can also use underscores_as_spaces_to_make_a_phrase

banana = true
return if banana == false

- If that doesn't work try using only 1 equals sign before false

- If none of the above works, try removing the sp cost mod part completely. It might break it though so keep a backup.

 

That's all I can think of right now.

 

edit: And screenshoting your error message instead of typing it (because no one is smart enough to make an error message window with text that can be highlighted) will help a ton.

 

edit2: I just learned something REALLY COOL. If you click on an error message window and press CTRL+C, it copies all the text in the window so you can paste it in notepad or something.

Share this post


Link to post
Share on other sites
  • 0

Thank you for the help. I finally got it to work, I didn't notice that I needed to have the 3 parts of the script until a few hours ago, but still, it's good advice, so thanks. :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...