Now we have to create an actual blacksmith. Create a new event and make it look something like a blacksmith.
Have the first thing it does is call the common event that you just created (This is so it sets all of your variables to the correct values aka the correct number of items currently held in your inventory)
Next you can add in a message from the blacksmith, something like "This swords can be made from 2 Iron and it'll cost ya 20 Gold" (because blacksmiths don't work for free ya know) and give the player a choice to choose Yes or No.
Now under the Yes line, we are going to start using conditional branches to check if the player actually does have the materials require to make the item. Create a Conditional Statement. You're going to want to click the Variable bubble and make it be the # of Iron Variable. Then in the dropdown box below it select Greater than or equal to, and select a constant of 2. What this does is checks to see if your variable # of iron has a value of 2 or greater. Leave the box that says set handling when conditions don't apply, because this is going to allow us to have event processing for when the player does not have 2 or more Iron (we can leave a message like "You do not have 2 Iron").
http://i292.photobucket.com/albums/mm4/ ... smith4.jpg[/img]
Now if all we needed was for the player to have 2 Iron, we'd not need any more Conditional branches, but since we also need 20 gold, we have to check for that as well! Most of the time you're going to be checking for many things, and you'll need additional Conditional branches inside of each branch for each additional thing that you need to check for. Basically think of it in this grammar: "If player has 2 or more iron, then -> If player has 20 or mole gold, then -> Sucess! Add 1 sword, take 2 iron away, take 20 gold away."
So between the conditional branch you just made and the Else line, make a new conditional branch. This time go to the 4th tab and select the "Gold" bubble, and check to see if the player has 20 or more gold. Leave the ELSE handling conditions box checked this time as well.
Now between your newly created branch within a branch and your new Else created from that branch, you can create your processing for a succesful smelting and payment! Have a message telling the user it was a succes, then change your inventory accordingly. For the else condition here you might want to let the player know that they did have enough Iron, just not enough Gold.
http://i292.photobucket.com/albums/mm4/ ... ksmith.jpg[/img]