Main Menu
  • Welcome to The RPG Maker Resource Kit.

is there a script of some way of doing this...

Started by Joey_Noob, October 11, 2006, 08:20:37 PM

0 Members and 1 Guest are viewing this topic.

Joey_Noob

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?"
I thought i was being attacked by ninjas yesterday but then i realised it was angry muslim protestors so i stole there veils and strapped myself to a C4 and gave them a taste of there own curry flavoured medicine

thingy

wrong part of the forum (ur clearly not asking for or submitting a resource)
and try searching in Script and Script Database
Zypher, Veltonvelton, and Dalton are secretly having a homosexual affair in hidden messages just like this one
research shows Fu is also involved, but not in a gross and creepy way

Arrow

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.

Joey_Noob

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"
I thought i was being attacked by ninjas yesterday but then i realised it was angry muslim protestors so i stole there veils and strapped myself to a C4 and gave them a taste of there own curry flavoured medicine

Arrow

I'll make an example, that should be cool with you, right?

Joey_Noob

I thought i was being attacked by ninjas yesterday but then i realised it was angry muslim protestors so i stole there veils and strapped myself to a C4 and gave them a taste of there own curry flavoured medicine

Arrow

Say, Joey, what if I used this style for the graphics in your example?


Joey_Noob

thats fine or if u like u can get the car from the page 28 topic i posted of the purple covertible
;D
I thought i was being attacked by ninjas yesterday but then i realised it was angry muslim protestors so i stole there veils and strapped myself to a C4 and gave them a taste of there own curry flavoured medicine

Naphe

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"
~Banned~

Joey_Noob

is there a way to add a guage in the corner of the screen to this set of events
I thought i was being attacked by ninjas yesterday but then i realised it was angry muslim protestors so i stole there veils and strapped myself to a C4 and gave them a taste of there own curry flavoured medicine

Naphe

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.
~Banned~

Joey_Noob

I thought i was being attacked by ninjas yesterday but then i realised it was angry muslim protestors so i stole there veils and strapped myself to a C4 and gave them a taste of there own curry flavoured medicine

Naphe

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.
~Banned~

Joey_Noob

I thought i was being attacked by ninjas yesterday but then i realised it was angry muslim protestors so i stole there veils and strapped myself to a C4 and gave them a taste of there own curry flavoured medicine