| Tutorial: | Inns and Clinics |
| Difficulty: | Intermediate |
| RPG Maker: | 2000/2003 |
| Author: | Thejackyl |
Inns? RM2k and RM2k3 have those built in, why use this?
The inn event in RM2k/RM2k3 heal all ailments, Including Death.
By making a custom inn, you can have an RPG that requires a little more money management.
Okay, that's good, but what's a clinic?
A clinic is where you would bring your characters if they have a status ailment.
What do I need to know?
This process is simple, but it can be somewhat time consuming. Anyways, you need to have knowledge of:
- Choices
- Condition Branches
- Change Conditon
- Change Money
Okay, get on with the code
Alright. Here is just a bare-bones idea of what you'll need.
<>Would you like to stay here? The cost is...
<>Show Choice: Yes/No
<>[Yes] case
<>Conditional Branch: If money =>[Amount]
<>Change HP:All members HP 999 increase
<>Change MP: All members MP 999 increase
<>Remove Condition(If you want):All but death
<>Change Money: Subtract amount
<>Else
<>Not Enough Money
<>End
<>[No] case
<>Have a nice day...
<>End
<>End
Now we need to make a way to revive fallen, or ailing allies.
The code below only covers dead allies.
You can add to it if you want to add choices for what conditions you want removed.
<>Do you need help?
<>Show Choice:Yes/No
<>[Yes]
<>Show Choice: hero1/hero2/hero3/hero4
<>[hero1] case
<>Condition Branch: hero1 Dead
<>Reviving hero1 will cost x money?
<>Show Choice: Yes/No
<>[Yes]
<>Conditional Branch: If money => amount
<>Change Money: Subtract amount
<>Remove Condition: Death
<>[ELSE] case
<>Not Enough Money
<>End
<>[No]
<>Okay then
<>End
<>[ELSE] Case
<>hero1 is not dead
<>End
<>End
<>;;Repeat for all allies;;
<>[No] Case
<>Have a nice day
<>End
<>End
And there you have it.
Just make sure you put in the code for all 4 allies, and you should be set.
Click to Return to the Tutorials Page