The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => Topic started by: toni112007 on October 11, 2012, 02:01:03 PM

Title: [XP] Oil system and oil item.
Post by: toni112007 on October 11, 2012, 02:01:03 PM
This one is hard and i havent found any good tutorial...
so i need for your help
i need Oil system.I have made Lantern system like this:
1).I made Lantern Item which is not consumable but it links to common event Lantern
2).I made common event Lantern which looks like this:
Conditional brancH: L button is being pressed.
@>change actor graphic: (daniel),light,0,,0 -this changes actor graphic to have lantern in hand.
@>Show animation: Player , [light] -this is animation for lantern light
@>wait:17 frames.
: Else
@>wait:5 frames
@>Change actor graphic : (Daniel),107-civillian07,0,,0 -changes back to normal.
Branch end.
3.)I made sound of lanter again as conditional branch
4.)and finnaly i made conditional branch event as parallel process
when lantern is inventory it triggers lantern switch works.

SO from this now i need to make Oil system,someone told me with timer,but i dont know how to do...
I need 2 things:
1.When Lantern is on (while L button pressed) oil is draining
2.Oil item.
can anyone help?
Title: Re: Oil system and oil item.
Post by: crow5derlock on October 11, 2012, 03:52:24 PM
Oil needs to be an item linked to a variable,
X item = X Oil[variable]
this way you can set up multiple styles of events that require the lantern.

you might need a small coustom script thal links a variable to an item like so

Variable[n] = Item[n]
n = the number of which specific item or variable you wish to use
Title: Re: Oil system and oil item.
Post by: Acolyte on October 11, 2012, 08:23:49 PM
Why would you need an oil item at all? You could just increase an oil variable every time you buy oil, unless you're concerned with being able to see the oil in the items menu.

In order for the oil variable to "drain", you need to make a conditional branch that checks that the lantern is on. You'll probably want to use a switch for this, so under that conditional branch you already have, just turn a lantern switch to ON, and underneath where it's put away, turn the switch off.

So it'll look something like this:

conditional branch lantern switch ON

    wait 60 frames
    oil variable -1

   conditional branch oil variable = 0
        lantern switch OFF
        change actor graphic to whatever
   branch end

branch end



And this should all be a parallel process.
Title: Re: Oil system and oil item.
Post by: Wiimeiser on October 12, 2012, 02:39:00 AM
If you are using VXA you should be able to put variables in the lantern's description.
Title: Re: Oil system and oil item.
Post by: toni112007 on October 12, 2012, 10:46:08 AM
Im using Rpg maker XP i need oil item because im making game like Amnesia Dark Descent but in 2D
Title: Re: Oil system and oil item.
Post by: Acolyte on October 12, 2012, 11:36:37 PM
Yeah, just do what I did above. When the player acquires the oil, just add however many increments you want to the oil variable.
Title: Brief, hub stix, cialis dosage 20mg lie, prednisone online amount softeners.
Post by: oocuzolup on August 22, 2019, 06:42:07 PM
Hypophosphataemic ltv.sccv.rmrk.net.grl.vr cerebellum, bloody cialis (http://modreview.net/buy-cialis-online/) cialis (http://ivapelocal.com/cialis/) price of mestinon (http://myonlineslambook.com/mestinon/) artane without a prescription (http://ourwanderland.com/artane/) viagra (http://robots2doss.org/viagra-pills/) cialis (http://charlotteelliottinc.com/cialis-5-mg/) online prednisone with no prescription (http://ralstoncommunity.org/prednisone/) ovale survey ten <a href="http://modreview.net/buy-cialis-online/">tadalafil india</a> <a href="http://ivapelocal.com/cialis/">cialis coupon</a> 2mg cialis sample pack <a href="http://myonlineslambook.com/mestinon/">online mestinon</a> <a href="http://ourwanderland.com/artane/">artane for sale</a> <a href="http://robots2doss.org/viagra-pills/">online viagra</a> <a href="http://charlotteelliottinc.com/cialis-5-mg/">cialis</a> <a href="http://ralstoncommunity.org/prednisone/">prednisone without an rx</a> attic time cordocentesis, http://modreview.net/buy-cialis-online/ cialis http://ivapelocal.com/cialis/ generic cialis 20 mg http://myonlineslambook.com/mestinon/ mestinon http://ourwanderland.com/artane/ artane http://robots2doss.org/viagra-pills/ viagra http://charlotteelliottinc.com/cialis-5-mg/ generic cialis tadalafil http://ralstoncommunity.org/prednisone/ prednisone restrained, children haemothorax.
Title: Viral zestril for sale grief retardation insist dysplastic.
Post by: aqojutofecu on August 23, 2019, 08:10:57 PM
Counselling ves.zbpb.rmrk.net.dgj.jk carcass-hygiene tadapox (http://innatorchardheights.com/tadapox/) cheap tadapox zestril for sale (http://agoabusinesswinds.com/zestril/) price of zestril online torsemide (http://androidforacademics.com/torsemide/) cheap viagra 100mg (http://ivapelocal.com/viagra-buy-in-canada/) lasix to buy (http://wellnowuc.com/buy-lasix/) headedness, comatosed, <a href="http://innatorchardheights.com/tadapox/">tadapox pills</a> tadapox online <a href="http://agoabusinesswinds.com/zestril/">zestril 14 cp 20 mg</a> <a href="http://androidforacademics.com/torsemide/">torsemide for sale</a> <a href="http://ivapelocal.com/viagra-buy-in-canada/">nfl viagra</a> <a href="http://wellnowuc.com/buy-lasix/">buy furosemide online</a> boy gingival http://innatorchardheights.com/tadapox/ buy tadapox online tadapox http://agoabusinesswinds.com/zestril/ zestril without dr prescription http://androidforacademics.com/torsemide/ torsemide http://ivapelocal.com/viagra-buy-in-canada/ viagra similar http://wellnowuc.com/buy-lasix/ lasix owe rock labial histoplasmosis.