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

How to learn a skill during battle.

Question

Can a character learn a skill during battle? I'm wondering this because I have a character that can transform to another creature. The transformation works just fine and I can even change her stats a little to give her things like added strength, agility and the like but it doesn't change her skills.

 

I tried to use the same status effect that allows her to transform called demon form. I made a battle event that would watch to see if a character was afflicted with demon form and if they are to have them learn  skills based on the level of the character. But unfortunately the battle event isn't working. None of the skills come up when she is transformed. Anyone has any ideas how I can still accomplish this?

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Looks like the state inflicted conditional branch doesn't work on the battle event. Try putting it on the common event instead. It works for me.

Share this post


Link to post
Share on other sites
  • 0

I was managed to change skill by calling an common event via battle event pages. I think using change skill command via battle event pages are working too. Maybe there's something wrong with your calling condition. :)

Share this post


Link to post
Share on other sites
  • 0

I was managed to change skill by calling an common event via battle event pages. I think using change skill command via battle event pages are working too. Maybe there's something wrong with your calling condition. :)

 

It can always be a possibility. I did try it using a common event at first.

For Trigger I chose none

on the common event  the code was:

Control Variables: [0029:Tamaralvl] = Tamara's Level
Conditional Branch:[Tamara] is [Demon Form] inflicted
Conditional Branch: Variable:[0029:Tamaralvl] >= 5
Change Skills: [Tamara], + [Firebrand]
 
Conditional Branch: Variable:[0029:Tamaralvl] >= 8
Change Skills: [Tamara], + [Dragon's Fury]
 
etc.

For the battle event

in the condition I had Turn 1 X 1 For Span I've tried Moment which seemed to freeze everything and I've tried turn

 

In the Event box I have

Conditional Branch: [Tamara] is [Demon Form] inflicted
Call Common Event: Dragon Form
 
else
Call Common Event: Dragon Revert

but as I said it doesn't work.The other thing I tried doing was taking the code out of the common events and placing it straight into the Battle Event but that didn't work either.I'm curious how you did it?

Share this post


Link to post
Share on other sites
  • 0

I wrote a script that allows for Unlimited Battle Page Conditions for XP, specifically for problems like this.

 

The script requires you to put in a Comment.  Then in the Comment, put the word "Condition:"

 

You can literally script straight into the Comment Box now, but what ever you write needs to be able to evaluate to TRUE or FALSE.  So you'd start off with something like "Condition: $foo == $bar" because that can evaluate properly.  You can also add in as much stuff into the calls as you wish.  "Condition: ($foo == $bar AND $bal == $fal) OR $lorem == $ipsum"

 

For your particular case, you'd probably need to put in something like this:

 

"Condition: $game_party.actors[2].state?(state_id) == true"

 

That will allow a specific page to run but only if that actor has that State.  Hence, Unlimited Conditions.

 

Now, as far as adding the skill itself, there should be an Event Command for that.  Dont give the skill as you normally would in the Actor Tab of the Database, use the Event Command for that.  Thus, you should also be able to make that actor "forget" that skill as well, if you so desire.

 

The script is available in my "Collection" in my sig below.  You might find a few other useful scripts to help you out as well.

 

---

 

Note: Unlimited Battle Page Conditions works fine as a Standalone Script.  Just copy out that one, you dont need my battle system or any other scripts.

Edited by Heretic86

Share this post


Link to post
Share on other sites
  • 0

Looks like the state inflicted conditional branch doesn't work on the battle event. Try putting it on the common event instead. It works for me.

Alright I got it!! Once again the motto of K.I.S.S. works best. (Keep It Simple Stupid)

 

Once I took out the inflicted thing from the battle event it worked just great.I might have to tinker with the turn thing though because it took like two turns for my skills to kick in. But it's working thanks for the rap session black mage.

 

Heretic I didn't notice your comment until a second ago. Thanks for the assists I'll keep it in mind for the future but for now I got it solved moving onward. Oh yeah I went ahead and downloaded your demo for your scripts though. I'll be checking that out real soon.

Edited by Ovan35

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...