The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Ash_XIII on September 17, 2006, 08:28:09 PM

Title: Request: Script to help solve character stats problem
Post by: Ash_XIII on September 17, 2006, 08:28:09 PM
Hey,
I apologise if this has been posted before, but I've searched as much as i can and still can't find an answer. I've tried everything (unless i'm being stupid and/or have missed something) in RPG maker XP and i'm still lost.  :-\

Problem:
I want to change my main character's stat curves using an event, as i'm allowing the player to choose their own class at the beginning of the game. I know about the stat change function but this is useless to me.

Example: (Just to make things as clear as possible)
Say a player wishes to be a mage. With the current character stat curve settings, when they get towards the higher levels, they end up having a high HP (for a mage) and average Intellgence, SP etc. because the main character's stat curves are all average (setting C or D i think, in the database's character menu). What i want is for the event, in this case, to change the stat curves to reflect more of a mage build and not just change the base stats.

I hope i've explained as clear as possible. Thanks in advance for any help/advice given.

PS: Wasn't quite sure where to post this, but thought here would be the safest bet!
Title: Re: Request: Script to help solve character stats problem
Post by: BPKS0 on September 18, 2006, 01:45:44 AM
1 person or more game?

Like is there only one character who you can be or is there like... Like final fantasy. Theres always like 8 ppl u can use. Are u making a game were theres only one person u can use?
Title: Re: Request: Script to help solve character stats problem
Post by: Shinami on September 18, 2006, 08:44:32 AM
If you mean something along the lines of choosing a starting class, just make several characters with the same graphics but make their stat growth reflect the class picked. I.E:

Character1: Fighter, Arshes. Fighter type stats.
Character2: Mage, Arshes, Mage type stats.
Character3: Ranger, Arshes, Ranger type stats.

Afterwards, when the player picks their class, just add the appropriate character into the party. If the player can choose the character's name, I recommend getting to that AFTER they've picked their class.
Title: Re: Request: Script to help solve character stats problem
Post by: Ash_XIII on September 18, 2006, 03:32:15 PM
Good point! Thanks Shinami. Makes more sense that way! I think i was making the problem more complicated than it was  ::)

Told ya i was being stupid  ;D

Edit: I just thought... What happens when i need to refer to the hero? I wont be able to use the \n[001] command because they may not use the first character on the list...
Title: Re: Request: Script to help solve character stats problem
Post by: Blizzard on September 18, 2006, 06:14:14 PM
Here“s a little trick. Use the Call script command and write:


$game_variables[1] = $game_party.actor.name


Now use \v[1] in a message and watch. ;)
Be sure to set variable number one just after this message to 0 or any other numeric value with the Variable Operation command.
Title: Re: Request: Script to help solve character stats problem
Post by: Ash_XIII on September 18, 2006, 07:06:39 PM
Ooooooh! Thanks!!! Me = Happy  ;D ;D ;D

I shouldn't celebrate yet though... Knowing me i'll mess something up!

Thanks again for the help!

Edit: I told you i'd mess it up :(  I get this error when my character activates the event with the message in...

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg367.imageshack.us%2Fimg367%2F6039%2Ferrorbw1.th.jpg&hash=7dac6d6d794df0d4bb3010a5ba41ed6594a3da65) (http://img367.imageshack.us/my.php?image=errorbw1.jpg)