Main Menu
  • Welcome to The RPG Maker Resource Kit.

Class Branch Script

Started by Astrojazz, July 10, 2007, 06:38:48 PM

0 Members and 1 Guest are viewing this topic.

Astrojazz

Would it be possible to make a script where, say a fighter has just reached level 10, so he can choose a direction to advance, such as becoming a lancer or a peltast?

EG:
                                                                 Fighter
                                                  __________|________
                                                 |                                     |
                                            Lancer                            Peltast

Thanks for the help!

kathis

I would think an event would be easier....

have a variable set for each hero's level

common event Parallel condition switch one  (since when are you not going to use goble switch one by the time they reach level 10?)

condition fork 
If variable [1 Hero1 level] = 10
if switch [1 Hero chosen first class up] is off
show message 
\n[1] can now
choose to become a Lancer
or a Peltast Which will you choose?

show choices [1 lancer]
change hero class to lancer (page 3 second from the bottom left)
show message:
\n[1] is now a lancer!

[2 Peltast]
change hero class to Peltast (page 3 second from the bottom left)
show message:
\n[1] is now a Peltast!


[3 remaind fighter]
show message:
very well but remember to go
to the hero's guild if you change
your mind.

end
change switch [1 Hero chosen first class up] on
end




and tada there you go 


hope that helps... I mean

you were assisted by professor Kathis
Project
New project. The other dimention DND
RPG makers challenge http://rmrk.net/index.php/topic,13503.0.html

Astrojazz

I'm still a little confused, because I'm not sure how to work variables and stuff, but whats with the (page 3 second to left) thing? Is that a command, or a reference?

kathis

reference. and I would advice you learn how to use events a little more before you explore script. mostly because a lot of things can be done by events also. they might be a little harder to work with but its far more easier to understand where the problem could be rather than looking at scripts and not knowing anything about the commands. At least events are a bit user friendly.
Project
New project. The other dimention DND
RPG makers challenge http://rmrk.net/index.php/topic,13503.0.html

Astrojazz

Alright, I'll try with events, but where do I put the actual event marker? Or does it not need one?

kathis

Event maker?.....uhh ooook....


Make that a common event...set the varibles also as its own common event...so its always checking
Project
New project. The other dimention DND
RPG makers challenge http://rmrk.net/index.php/topic,13503.0.html

Astrojazz

Alright, thanks for the help! Its finally working!