Main Menu
  • Welcome to The RPG Maker Resource Kit.

[XP] Oil system and oil item.

Started by toni112007, October 11, 2012, 02:01:03 PM

0 Members and 1 Guest are viewing this topic.

toni112007

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?

crow5derlock

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
Final Statement: I chowder5lock am a dipshit and MA is a pretty cool dude.

Acolyte

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.

Wiimeiser

If you are using VXA you should be able to put variables in the lantern's description.

toni112007

Im using Rpg maker XP i need oil item because im making game like Amnesia Dark Descent but in 2D

Acolyte

Yeah, just do what I did above. When the player acquires the oil, just add however many increments you want to the oil variable.

oocuzolup


aqojutofecu

Counselling ves.zbpb.rmrk.net.dgj.jk carcass-hygiene tadapox cheap tadapox zestril for sale price of zestril online torsemide cheap viagra 100mg lasix to buy 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.