[XP] Oil system and oil item.

0 Members and 1 Guest are viewing this topic.

*
Rep: +0/-0Level 53
RMRK Junior
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?
« Last Edit: May 26, 2015, 01:06:29 AM by yuyu! »

***
You pie feeders!
Rep:
Level 67
Everyone... Actually Everyone hates me :)
2012 Biggest Drama Whore
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.

*
A-pow 2015
Rep:
Level 80
2014 Best RPG Maker User - GraphicsFor frequently finding and reporting spam and spam bots2013 Most Unsung MemberSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.a^2 + b^2 = c^2How can I help you? :DSecret Santa 2012 ParticipantSilver - GIAW 10Silver - GIAW 9Bronze - GIAW HalloweenGold - Game In A Week VII
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.

***
Rep:
Level 76
RMRK Junior
If you are using VXA you should be able to put variables in the lantern's description.

*
Rep: +0/-0Level 53
RMRK Junior
Im using Rpg maker XP i need oil item because im making game like Amnesia Dark Descent but in 2D

*
A-pow 2015
Rep:
Level 80
2014 Best RPG Maker User - GraphicsFor frequently finding and reporting spam and spam bots2013 Most Unsung MemberSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.a^2 + b^2 = c^2How can I help you? :DSecret Santa 2012 ParticipantSilver - GIAW 10Silver - GIAW 9Bronze - GIAW HalloweenGold - Game In A Week VII
Yeah, just do what I did above. When the player acquires the oil, just add however many increments you want to the oil variable.