I was woundering if someone can help me with the script for making the character change scrolls in my game. I was going to have a class shop in my game where you can buy the change scrolls so that you as they player to buy them and wanted to change any class your character wanted to be in the game. I know it has to be in the common event script, but i can never get it right. I know someone did in in one of their online games, but they banned me for no-reason. So I deleted their client off my computer, because I was giving them ideas to improve their game to make it more interesting, but oh well. Not much to lose.
well not much help on this board i found another board and someone finnally helped me with my sprite change script in my game! I know their is nice people out their that help!
Sorry to reply so late, but this kinda interested me, cause I just figured out a non-script way.
You can do this as follows
QuoteShow Choices: Paladin, Thief, Mage, More
: When [Paladin]
@>Change Actor Graphic [Bob] 'Male Classes 0, 1'
@>Change Actor Class: [Bob], [Paladin]
@>Exit Event Processing
@>
: When [Thief]
@>Change Actor Graphic [Bob] 'Male Classes 0, 2'
@>Change Actor Class: [Bob], [Thief]
@>Exit Event Processing
@>
: When [Mage]
@>Change Actor Graphic [Bob] 'Male Classes 0, 3'
@>Change Actor Class: [Bob], [Mage]
@>Exit Event Processing
@>
: When [More]
@>Show Choices: Ninja, Samurai, Gunner, Cancel
: When [Ninja]
@>Change Actor Graphic [Bob] 'Male Classes 0, 4'
@>Change Actor Class: [Bob], [Ninja]
@>Exit Event Processing
@>
: When [Samurai]
@>Change Actor Graphic [Bob] 'Male Classes 1, 1'
@>Change Actor Class: [Bob], [Samurai]
@>Exit Event Processing
@>
: When [Gunner]
@>Change Actor Graphic [Bob] 'Male Classes 1, 2'
@>Change Actor Class: [Bob], [Gunner]
@>Exit Event Processing
@>
: When [Cancel]
@>Exit Event Processing
@>
You can use conditional branches to set it up for each character, and it's really a neat concept.
Again, sorry for posting is a kinda dead thread, but I figured I may as well share what doesn't actually need a script, just some branches.
EDIT: Forgot to add the class change ^_^;
I think a more manageable way to handle an event system like this is to make a common event for each class. Make a 'Class Scroll' item in the database for each class you have. Then sell the 'Class Scrolls' in a basic shop. When you make the 'Class Scroll' items in the database, make sure that on use you call a common event. Just have the scroll correspond to the correct class you want to have changed.
Never even thought of doing it that way, actually. Much neater than my solution.
Yeah, the comment event way sounds simplier. Perhaps you could make it so you can also find the scrolls around in certain places (randomly, of course), and then let the player choose if they want to use them or save them for later? Sounds interesting to me anyway!