The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Rezistik on October 22, 2006, 02:47:35 AM

Title: Hospital
Post by: Rezistik on October 22, 2006, 02:47:35 AM
How can I make a hospital? I tried many different ways and i cant figure it out
Title: Re: Hospital
Post by: thingy on October 22, 2006, 03:46:06 AM
you mean an event that heals you?
Title: Re: Hospital
Post by: Rezistik on October 22, 2006, 03:55:13 AM
sort of, an event like a shop where you pay the npc to heal you, like in final fantasy and like everyother rpg where you go to an "Inn" stay a night and are magiccly healed but i dont want an inn i want a hospital
Title: Re: Hospital
Post by: thingy on October 22, 2006, 03:57:20 AM
whats the difference?
Title: Re: Hospital
Post by: Rezistik on October 22, 2006, 03:58:34 AM
one you have to pay gold for the other one just heals you for free
Title: Re: Hospital
Post by: Red Eye Dragoon on October 22, 2006, 04:01:16 AM
okay,this is easy.

If you want free healing it would be something like this.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg120.imageshack.us%2Fimg120%2F1207%2Funtitledlv9.jpg&hash=3ca86e5433cdb369e82ca84f466676327a35b61e)

If you want it to cost it would be like this- Though you can change the amount of gold to whatever.
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg214.imageshack.us%2Fimg214%2F390%2Funtitled2ui5.jpg&hash=302c91e161adedec50632bd0ef0b5fd54b6991d5)
Title: Re: Hospital
Post by: thingy on October 22, 2006, 04:08:36 AM
^you forgot to include a conditional branch so somebody with 0 gold could get healed for free

top one for costing money, bottom one is free
you might wanna also include a move event to where the bed or whatever you're getting healed in is and maybe a fade out and fade in along with some sound effects
Title: Re: Hospital
Post by: Rezistik on October 22, 2006, 04:15:39 AM
okay thanx
Title: Re: Hospital
Post by: Red Eye Dragoon on October 22, 2006, 04:18:04 AM
^you forgot to include a conditional branch so somebody with 0 gold could get healed for free

top one for costing money, bottom one is free
you might wanna also include a move event to where the bed or whatever you're getting healed in is and maybe a fade out and fade in along with some sound effects
eh,no,the one on the top is free,teh one on the bottom isnt...
Title: Re: Hospital
Post by: thingy on October 22, 2006, 04:26:58 AM
no, the one that takes away money is not the free one
go get your eyes checked....
Title: Re: Hospital
Post by: Arrow on October 22, 2006, 04:30:10 AM
However, it does not prevent someone without 50 gold from using the service. At the beggining of the page, set a variable (gold) to be equal to the current amount of money held by the player. When the player selects the "stay" option, create ANOTHER conditional branch. Make it so that if 'gold' is greater than or equal to 50, then it goes on to complete the inn process. Also, make it so that another branch is created when the 'gold' variable is less than fifty. In THAT branch, make it say something like "you can't stay, you lack the proper funds" or something.
Title: Re: Hospital
Post by: thingy on October 22, 2006, 04:35:20 AM
arrow check my attachment up above
Title: Re: Hospital
Post by: Arrow on October 22, 2006, 04:36:42 AM
Is 'money' a variable? You didn't initialize it...
Title: Re: Hospital
Post by: thingy on October 22, 2006, 04:37:49 AM
doesn't need a variable, it checks the actual currency the character is carrying
Title: Re: Hospital
Post by: Arrow on October 22, 2006, 04:42:34 AM
OH YEAH it's XP.