Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Spell Books

Hyde

Member

Ok well I have gone back to RMXP after like 2 years or so, and well I'm a bit rusty at it.
On this game I am trying to create you can buy spell books, and who ever you give these to will learn the skill that item gives.

My problem is that it only works half of the time. Sometimes for no reason it wont work, sometimes it will, and I'm not to sure why. Anyway I have included screenshots to give a more in depth of the way I'm doing this.

The Item (I only show one, but they all have the same effect)
http://i21.photobucket.com/albums/b295/artix_battleon/mainitems.jpg[/img]

The common events, you can tell which item links to what common event
http://i21.photobucket.com/albums/b295/artix_battleon/commonevent.jpg[/img]

Thank you to anyway who might have a solution to my problem.
~Hyde
 

Hyde

Member

I feel like a noob saying this but what do you mean exactly?

I got the 'Entire Party' 'minus' 'Learning...' at the end of each common event if that is what you mean
 
Oh, I guess that is what I meant.  Do you have each and every book set up to run when "Learning..." is inflicted.  If so, that might be screwing it up somehow, like they learn all the spells when they are only supposed to learn the certain one.
 

Hyde

Member

Hmm ok I will give it a shot for the currect 8 books I got.

EDIT: Nope didn't seem to work, I just can't work out why it works sometimes and not others.
 
When i made skill books, my way was a lot diffrent, but it did work. I think i might know the problem, or maybe not. I'd just mess around with it till it works, but that's just me... hehe
 

Hyde

Member

I have tried everything my tired brain can think of at 1am.
Got any suggestions? Or if you can think of a way the events work differently but when the item is used it will have the same effect
 
Try putting a Wait command in front of each conditional. It might be working side-by-side. Activating the status as it cycles through to common event instead of one before the other.
 
How about changing the event so it checks to see if your party has learnt the skill, eg. fire.

If your party has learnt fire, the event says 'You have learnt this skill' or something along those lines, and if your party hasn't learnt it, you add it to their skills with something saying 'You have learnt the skill Fire', or something like that.

That's what I would do, and it's nice and simple too.
 

Hyde

Member

Yeah I was going add exactly what you said Inicol1990 but I want to get the basics of it all done first. Err might as well add it to one of the common events now
 
Hyde, it has nothing to do with your coding.  After some testing I found that what is occurring is the characters are resisting the initial state change, hence the conditional never starts.  This is easily remedied.  Simply go to the database tab for classes and set everyones state efficiency for the Learning state to "A".  This makes it so the state is inflicted 100% of the time.  That's a nice simple system btw.
 
It's no hassle.  Helping out on support helps me learn more about the program myself.  Thanks for the recognition all the same.  Good luck on the project.  I'll keep my eye out for it.
 

Hyde

Member

Its going to be a long time before a demo even to be released.
Oh and good luck to yours if your working on one.

EDIT: Just added the thing that will return the book and give a message if that skill is learned.
I think the book system is all 100% flawless now.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top