Charas-Project

  • Home
  • Help
  • Search
  • Calendar
  • Login
  • Register
*
Please login or register.

Login with username, password and session length
 

News:

Click here to join us on IRC (#charas on irc.freenode.net)!



  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • recipies/ingredients
« previous next »
  • Print
Pages: [1]

Author Topic: recipies/ingredients  (Read 1960 times)

Offline Madwithstaples

  • Member
  • Initiate
  • *
  • Posts: 3
  • blah blah blah
recipies/ingredients
« on: August 09, 2006, 09:41:53 PM »
hey im starting to do a thing with making recipies. The first idea i had was to talk to an NPC and get a certian recipie when i aquired the necissary ingredients. But just realized theres only one slot for items to do a switch ON.

So an alternative way im thinking is to just automatically make a certian recipie when you get the requirments in your menu. Not sure how to do that either.

Anyone know  how i could make this work?
Logged

Offline WarxePB

  • Action Sue
  • Royal
  • *
  • Posts: 3,601
  • What killed the dinosaurs?
    • The Gigaverse
(No subject)
« Reply #1 on: August 10, 2006, 12:11:58 AM »
To do that, you can use a little thing called Conditional Branches (Fork Conditions in some translations). Basically, you use multiple branches, one inside another, to check if the hero possesses Item A, Item B, etc. If he does, remove those items with the Change Inventory/Item command, and add another (the result).

Branches are located in the third page of the Event Commands window (that window that pops up when you click <> in an event), on the right side. The Branch window has two pages - go to the second page, and choose Item, choose "Possessed" from the first box, and select the item from the second box. In the first branch, create another branch with the same options, except that the item is the next item required. Do that until you have all of the items checked, and put the result code (remove all of the ingredients and add the result) into the last branch. In the Else Handlers (what it does if the branch's conditions are false) just put a message like "You don't have the right ingredients".
Logged
Blog: The Gigaverse
Twitter: Initial Chaos

Offline Madwithstaples

  • Member
  • Initiate
  • *
  • Posts: 3
  • blah blah blah
(No subject)
« Reply #2 on: August 11, 2006, 01:43:00 AM »
cool, thanks dude

I forgot about those :P
Logged

  • Print
Pages: [1]
« previous next »
  • Charas-Project »
  • Game Creation »
  • Requests »
  • RPG Maker Programming »
  • recipies/ingredients
 

  • SMF 2.0.10 | SMF © 2015, Simple Machines
  • XHTML
  • 2O11
  • RSS
  • WAP2
  • Simple Machines Forum