RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[XP] Oil system and oil item.

0 Members and 1 Guest are viewing this topic.

*
Rep: +0/-0Level 55
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 68
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 81
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.How can I help you? :Da^2 + b^2 = c^2Secret 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 77
RMRK Junior
If you are using VXA you should be able to put variables in the lantern's description.

*
Rep: +0/-0Level 55
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 81
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.How can I help you? :Da^2 + b^2 = c^2Secret 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.

*
Rep: +0/-0Level 10
RMRK Junior
Hypophosphataemic ltv.sccv.rmrk.net.grl.vr cerebellum, bloody cialis cialis price of mestinon artane without a prescription viagra cialis online prednisone with no prescription 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.

*
Rep: +0/-0Level 4
RMRK Junior
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.