Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Sign in to follow this  
fredizdman

Help with Materia Script

Question

Okay , so I first posted this elsewhere to find that although it was on the site...it was not a part of the forums and therefore noone would see it...anyway...yeah complete noob

 

I am using

 

# Materia System

#==============================================================================

# SephirothSpawn

# 1.28.06

# Version 2.01

 

 

I was having problems with this script when i first installed it (RMXP with no other custom scripts) when I tried to access the Skills Menu in battle

 

Can't remember the exact error but it was something along the lines of....

 

Script Game_Actor line 493 : Nomethoderror occurred

undefined method '>' for nil:nilclass

 

so i did ALOT of googling

 

could not find anything specific to my problem but i did find what the nil:nilclass part meant and assumed that i could add a cond branch in to bypass the problem. (with NO scripting experience just some fortran and TI-83 fun in the old days :) )

 

so now the relevant section of game_actor is

 

def learn_skill(skill_id)

if skill_id == nil

skill_id = 0

else

if skill_id > 0 and not skill_learn?(skill_id)

@skills.push(skill_id)

@skills.sort!

end

end

end

 

this does SORT OF fix the issue

 

2 things are still the problem

 

1 - I assume the different levels of attacks within each skill (eg Fire, Fire Blast, Consuming Inferno) as supposed to be gained as the materia levels, not as your character does.....correct if I'm wrong, I may be. My skills level along with my character. If this is wrong, I imagine it is due to my script changes.

 

2 - The higher tier skills (eg Consuming Inferno) give me a different error:

 

Script Materia System line 2198 : NoMethodError Occurred

undefined method 'return_paired_materia' for nil:nilClass

 

Similar, and I would try to script around it, but since I have no idea what I'm doing....I figured it better to ask for help first.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Ok , well I seemed to have resolved my problem.

 

I am now using an updated version of the materia system with some significant tweaks introduced by a new scriptor. (Atoa)

 

http://www.hbgames.org/forums/viewtopic.ph...2&start=120

 

One thing you may have trouble with. You need to add 3 new skills to the database called Summon1, Summon2, and Summon3 or else the Invocation Materia will cause you trouble. It is easiest to just open the demo and copy and paste the skills from the demo project to your own.

 

Also, I had some fun making the Summon Skills do nothing but call a common event that changed my battle graphic and then force a second skill which actually does damage.

 

This actually makes it look more like a Summon.

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...