RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
a script for sprite change in game!

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 85
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.
« Last Edit: June 10, 2008, 05:40:11 PM by marty2008 »
"If you build it, they will play it"

**
Rep:
Level 85
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!
"If you build it, they will play it"

**
Rep: +0/-0Level 84
The sigil of ice keeps me at bay...
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

Quote
Show 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 ^_^;
« Last Edit: November 28, 2008, 10:53:36 PM by WeaponMaster Kaesar »
Why does nobody ever stab somebody with a gunblade, and then pull the trigger?


Which Final Fantasy Character Are You?
Final Fantasy 8

********
Resource Artist
Rep:
Level 94
\\\\\
Project of the Month winner for June 2009
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. 

**
Rep: +0/-0Level 84
The sigil of ice keeps me at bay...
Never even thought of doing it that way, actually. Much neater than my solution.
Why does nobody ever stab somebody with a gunblade, and then pull the trigger?


Which Final Fantasy Character Are You?
Final Fantasy 8

****
When the dawn breaks...
Rep:
Level 88
...tonight will be just another memory.
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!