I recently bought rpgmaker xp off steam so i could edit an old game i bought ages ago (for my own purposes, and to learn more about rpgmaker xp, wouldnt be surprised if some of the things i learn transfer to later rpgmakers either) and i was trying to implement a quest where if you get 10 egg pieces you can put together an egg. but i cant quite figure out how to do that. im still learning and so far im better at altering scripts than making them. i feel like it would be a script that involves variables but im not quite sure how to go about it.
script to check for multiples of an item in rpgmakerxp
RPG Maker XP SupportMoved to: XP Support
Please do not ask for help to edit someone else's game, unless they have provided an unencrypted project with the intention that other people can open, edit and learn from it. Otherwise that is hacking and we don't support that here.
However I don't see what your question has to do with anyone else's game, so won't close this.
You don't need a script. Use Control Variables to put the quantity into a variable, then Conditional Branch to see if the player has the required number of that item.
Please do not ask for help to edit someone else's game, unless they have provided an unencrypted project with the intention that other people can open, edit and learn from it. Otherwise that is hacking and we don't support that here.
However I don't see what your question has to do with anyone else's game, so won't close this.
You don't need a script. Use Control Variables to put the quantity into a variable, then Conditional Branch to see if the player has the required number of that item.
Alright thankyou very much!
what about if its an item? like if you select the egg piece and you have 10 of them it puts them together? ive tried attaching a common event to the egg piece which does the same thing,
with control variable [egg piece] =10
then conditional branch [egg piece]
Text you put together the egg pieces and get an egg
Eggpiece -10
Egg +1
but it automatically goes through withit whether i havethe right ammount or not. i guess i have to teach it that the item shouldnt do anything if i dont have all the pieces?
nevermind figured it out lol
For others looking at this in future:
Thread closed
Code:
Control Variables [0015: Egg Pieces] = Egg Pieces in Inventory
Conditional Branch: Variable [0015: Egg Pieces] = 10
Change Items: Egg Pieces - 10
Change Items: Egg +1
End
Thread closed
Original thread: https://forums.rpgmakerweb.com/threads/script-to-check-for-multiples-of-an-item-in-rpgmakerxp.142068/