Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Class Change Issue [Resolved]
Xyster
post May 13 2011, 08:42 PM
Post #1


Level 10
Group Icon

Group: Revolutionary
Posts: 150
Type: Developer
RM Skill: Undisclosed




Right now I'm working on a battle system that involves two things that I am having issues with. The first I think is fairly simple, I'm just missing the line that I need to change to get it right, the other is confusing me. I'll post both of them together so that I don't take up two threads.

1. My battlers aren't resting at the bottom of the screen and I can't scoot them down. Below you'll see a picture, I'd like to move the bottom of my battler to be flush with the bottom of the screen since they're flat on the bottom. I am using a custom battle script, but as you can see it still works with the standard front view system. Please let me know and I'll see if I can link the script.

Picture


2. I have a dual class system that I'm working on via common events instead of scripting. Basically, an ability changes the character to the second class, and another one changes them back. Unfortunately when my character changes classes, all of the skills stay the same, even though it is indeed switching to the new class. I checked with the name of the class in the menu to make sure that it had gone through, plus the character graphic changes.

None of the new skills are showing up, is this normal, or am I doing something wrong? Again, please let me know if I need to elaborate.

Thanks!

This post has been edited by Xyster: May 14 2011, 11:10 PM


__________________________
Go to the top of the page
 
+Quote Post
   
Night_Runner
post May 14 2011, 12:30 AM
Post #2


Level 50
Group Icon

Group: +Gold Member
Posts: 1,519
Type: Scripter
RM Skill: Undisclosed




For question 1, I can't be completely sure this will work, but if it does use the default method to show the battler, then go to line 583 of Game_Actor
Y of the battler

And just add a + 50 or something to move the battlers down.

If it doesn't work, you'll need to post a link to the battle system smile.gif



For question 2, when you change class, the only immediate changes to your actor is you'll unequip any class-specific weapons that you can no longer wield, and it changes your class so when you level up you learn the new class' skills.
if you want to have the player lose all their class-learnt skills, ang gain the skill of a new class when they change classes, this sciript should help smile.gif
Night_Runner's Class Specific Skills
CODE
#==============================================================================
# ** Night_Runner's Class Specific Skills
#------------------------------------------------------------------------------
# History:
#  Date Created: 14/May/2011
#  Created for: Xyster
#   @> http://www.rpgrevolution.com/forums/index.php?showtopic=50266
#
# Description:
#  This script is designed to make an actor forget any class specific
#  skills they may have learnt when they leave a skill, and to learns any
#  skills they should have learnt for the new class by their current level.
#
# How to Install:
#  Copy this entire script, go into your game, along the top select Tools >>
#   Script Editor. Along the left scroll to the bottom, right click on Main,
#   and select insert. Paste this code in the window on the right.
#==============================================================================



#==============================================================================
# ** Game_Actor
#------------------------------------------------------------------------------
#  Edited to have class specific skills.
#==============================================================================

class Game_Actor
  #--------------------------------------------------------------------------
  # * Alias Methods
  #--------------------------------------------------------------------------
  alias  nr_classSkillSecrets_class_id  class_id=  unless $@
  #--------------------------------------------------------------------------
  # * Change Class ID
  #     class_id : new class ID
  #--------------------------------------------------------------------------
  def class_id=(*args)
    # Unlearn all the skills specific to the last class
    for j in $data_classes[@class_id].learnings
      forget_skill(j.skill_id)
    end
    # Run the original class_id=
    nr_classSkillSecrets_class_id(*args)
    # Learn skill
    for j in $data_classes[@class_id].learnings
      if j.level <= @level
        learn_skill(j.skill_id)
      end
    end
  end
end


Oh, and since both of these questions are heavily script related, I'm moving this to Script Support smile.gif


__________________________
K.I.S.S.
Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.

Most important guide ever: Newbie's Guide to Switches
Go to the top of the page
 
+Quote Post
   
Xyster
post May 14 2011, 11:09 PM
Post #3


Level 10
Group Icon

Group: Revolutionary
Posts: 150
Type: Developer
RM Skill: Undisclosed




Thank you very much! Both of those worked and resolved my issues. I had looked for the right line to change my battler position, but didn't know that it was under game_actor. I'll know where to look from now on. Also, that script works like a charm, thank you so much! You'll go right into the credits.

Also, my apologies, I didn't realize that both of these would be scripting issues. Thank you for moving to the right spot.


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 18th May 2013 - 02:21 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker