Zelaron Gaming Forum

Zelaron Gaming Forum (http://zelaron.com/forum/index.php)
-   RPGMaker (http://zelaron.com/forum/forumdisplay.php?f=188)
-   -   [RMXP] A question that i need answered asap (http://zelaron.com/forum/showthread.php?t=44666)

Coriander 2008-02-21 04:39 AM

A question that i need answered asap
 
Ok, the question i have is this. How do i change the word "Skill" to let's say... Martial arts so that it only affects the one character, not all of them. So i wanted Sword Tech, Martial Arts, Dragoon, and Summon.. One for each character. How would i do it? (RmXP by the way)

Goodlookinguy 2008-02-21 03:26 PM

You can do it in VX, but I don't know if you can do it in XP, and since XP is not as open as VX, I doubt that you can.

Atnas 2008-02-21 04:00 PM

Code:

#Script by poccil on www.rmxp.org.
#Originally created for xthexendxhasxcomex on the same site.
#Please use with credit.
#- Atnas. :3

class Window_Command
  attr_accessor :commands
end

class Scene_Battle
  alias :petero_skillcommand_Scene_Battle_phase3_setup_command_window phase3_setup_command_window
  def phase3_setup_command_window
    # Disable party command window
    @party_command_window.active = false
    @party_command_window.visible = false
    # Enable actor command window
    @actor_command_window.active = true
    @actor_command_window.visible = true
    # Set actor command window position
    @actor_command_window.x = @actor_index * 160
    # Set index to 0
    @actor_command_window.index = 0
    @actor_command_window.commands[1]=skillCommand(@active_battler)
    @actor_command_window.refresh
  end
  # Returns the text to replace the default "Skill" depending on class
  def skillCommand(battler)
    case battler.class_id
    when 1
      return "Fighter Skill"
    when 2
      return "Lancer Skill"
    when 3
      return "Warrior Skill"
    else
      return "Skill"
    end
  end
end

Where it has the strings at the end, replace them with your own names based on the class ID. For example, if Zen Fuyu is a martial artist, and Martial Artist is class #1 in the Database, you would replace 'return "Fighter Skill"' with return '"Martial Arts"'.

This may not work if your battle system changes the default skill command class in any way, tell me if it doesn't work and I will make it compliant. :)


-------

GLG, you can do anything in RMXP.

Goodlookinguy 2008-02-21 06:19 PM

Oh! That is a nice little script there Atnas. I didn't know someone had created something like that.

Atnas 2008-02-21 09:10 PM

I wish I could have written that script. With a little time, probably an hour or so, I could have. XD

But you should always check if there is a script out there before you start coding, otherwise your work is for nothing but practice.

By the way, I've been learning more languages recently - Java, PHP, Actionscript, in addition to my already pretty fluent HTML and CSS skills. I find it more interesting now that I'm faced with the need to code in various langauges coupled with the realization that coding is awesome. XD

Just little drips of each, but I'm learning. :)

Goodlookinguy 2008-02-21 11:34 PM

Quote:

Originally Posted by Atnas
By the way, I've been learning more languages recently - Java, PHP, Actionscript, in addition to my already pretty fluent HTML and CSS skills. I find it more interesting now that I'm faced with the need to code in various langauges coupled with the realization that coding is awesome. XD

Ah, I'm becoming increasingly fluent with HTML, CSS, JavaScript, & Ruby. I am also learning C++, ActionScript, & PHP.

It appears that we are learning around the same languages of scripting. I am so going into the field of programming; and possibly game programming.

Coriander 2008-02-22 03:42 AM

Eh ok..could just be me... but when ever i do use this script, i placed it right above main.. I can't cancel or acces my menu..

Atnas 2008-02-22 08:38 AM

Are you using any special menu script?

Coriander 2008-02-22 11:14 AM

Nope i am using the default menu. I am using bars, side view battle system, caterpillar script is it.. no special menu.

Goodlookinguy 2008-02-22 12:04 PM

He meant special battle menu script. Yes you are using one, so you can't have it.

Coriander 2008-02-22 01:07 PM

I beg to differ, in the demo of the side view battle system i am using, he had a character with the skill name Sword Tech and only that person had it. But forget it, i'll just use a different name like Arts or somethin.. And infact..i just tested it..and it's not that that makes it where i can't access the menu..it's something else in my game..probably the script im using..i'll figure it out.. [ Edit ] I figured out what it was, it was this other script i was using. Chaos Rage/ Soul Rage script, it allowed items to have skills and such, but that was what the problem was. I can use this script in my game now, so thanks atnas for the code.


All times are GMT -6. The time now is 07:29 PM.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.