The RPG Maker Resource Kit

RMRK RPG Maker Creation => Resources => Topic started by: Joey_Noob on October 11, 2006, 08:20:37 PM

Title: is there a script of some way of doing this...
Post by: Joey_Noob on October 11, 2006, 08:20:37 PM
is there a way to make is so when you are playing my game and are a certain graphic a bar shows in the corner and while your this graphic it slowly goes down and when it is empty a message appears and you have to pay to get it refilled E.G a Car when your the car graphic when the bars empty a message:
"You are out of Fuel Refill for 60£?"-or- "tow back to garage?"
Title: Re: is there a script of some way of doing this...
Post by: thingy on October 11, 2006, 08:43:05 PM
wrong part of the forum (ur clearly not asking for or submitting a resource)
and try searching in Script and Script Database
Title: Re: is there a script of some way of doing this...
Post by: Arrow on October 11, 2006, 08:48:45 PM
Make it use a script tht shows HP/SP bars. Use SP for fuel. Make an event that checks SP, and if the SP value is greater than 0, steadily drains fuel as you move. If it hits 0, display the message and choices.
Title: Re: is there a script of some way of doing this...
Post by: Joey_Noob on October 11, 2006, 09:00:16 PM
i know youve just told me what to do but can you tell me how to make each thing so what you just said E.G
"1)make an event"
"2)Blah Blah Blah"
Title: Re: is there a script of some way of doing this...
Post by: Arrow on October 11, 2006, 09:19:18 PM
I'll make an example, that should be cool with you, right?
Title: Re: is there a script of some way of doing this...
Post by: Joey_Noob on October 11, 2006, 09:21:52 PM
yes thats fine
Title: Re: is there a script of some way of doing this...
Post by: Arrow on October 12, 2006, 03:34:56 PM
Say, Joey, what if I used this style for the graphics in your example?

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg242.imageshack.us%2Fimg242%2F2160%2Fcarsetsmallru8.png&hash=5b450f240613418b8448271772e275f563f5d06a)
Title: Re: is there a script of some way of doing this...
Post by: Joey_Noob on October 12, 2006, 03:45:41 PM
thats fine or if u like u can get the car from the page 28 topic i posted of the purple covertible
;D
Title: Re: is there a script of some way of doing this...
Post by: Naphe on October 12, 2006, 08:10:18 PM
Do this:

Create An Event
Create The Action,"Variable Operation"
Create A New Variable And Name It, "Fuel"
Set it To = 500
Press Okay

Create The Action, "Variable Operation"
Create A New Variable And Name It, "Distance"
Set It To The Number Of Steps
Press Okay

Create The Action, "Conditional Branch"
Set It To Check If The Variable, "Fuel" = 0
Under Met Condition, Create The Action, "Message"
Set The Message To Say, "Your Out Of Fuel!"
Create The Action Show Choice
Set Them To Say, "Fuel Up For 60$, Be Towed Away"

Under Fuel Up Case Handler, Create The Action, "Change Money"
Set It To "Money" - "60"
Create The Action, "Teleport"
Set It To Teleport To The Gas Station
Create The Action, "End Event Processing"

Under Be Towed Away Handler, Create The Action, "Teleport"
Set It To Teleport To The Junk Yard
Create The Action, "End Event Processing"

Under Else Case Handler, Create The Action, "Condition Branch"
Set It To Check If The Variable, "Distance" = "1"
Under Met Condition, Create The Action, "Variable Operation"
Set It To Do The Equation, "Fuel" - "Distance"
Then Create The Action, "Variable Operation"
Set The Variable, "Distance" = "0"
Create The Action, "End Event Processing"

Under Else Case Handler, Create The Action, "End Event Processing"
Title: Re: is there a script of some way of doing this...
Post by: Joey_Noob on October 14, 2006, 09:47:16 PM
is there a way to add a guage in the corner of the screen to this set of events
Title: Re: is there a script of some way of doing this...
Post by: Naphe on October 14, 2006, 10:11:22 PM
Yes, your going to have to make a graphic bar though, unless you want to use the pre-set SP bar, and change it to fuel.
Title: Re: is there a script of some way of doing this...
Post by: Joey_Noob on October 14, 2006, 10:24:47 PM
how would i go about using the bar
Title: Re: is there a script of some way of doing this...
Post by: Naphe on October 14, 2006, 10:49:45 PM
I'm not sure how to display the image on the screen, but the rest of the event would be like this:

QuoteCreate A Variable Operation, "Variable Operation"
Set "Fuel Gage" = "Hero SP"

That would be inserted here:

QuoteUnder Else Case Handler, Create The Action, "Condition Branch"
Set It To Check If The Variable, "Distance" = "1"
Under Met Condition, Create The Action, "Variable Operation"
Set It To Do The Equation, "Fuel" - "Distance"
Then Create The Action, "Variable Operation"
Set The Variable, "Distance" = "0"
*Here*
Create The Action, "End Event Processing"

Though to get it to display, you would have to do a call script action, and I don't know all the commands quite yet. So you might have to ask someone else.
Title: Re: is there a script of some way of doing this...
Post by: Joey_Noob on October 15, 2006, 08:14:53 AM
ok thank for all your help