Ok, here is, a working smelting system that i got the bugs out just 5 minutes ago. So please enjoy! Smelting is where you stick a certain amount of ores together to produce a bar of a certain type, i will soon produce a Smithing system, just gotta fix a few things, until there heres this:
This also shows you that if you are not level enough what happens there. EXP given can always be changed, comments and critiques appreciated hope you can find use of it, smithign system coming soon! Sorry if there are any typos
Code:
Show Choices: Bronze, Iron, Nothing *nothing could be other bar types
: When [Bronze]
@>Conditional Branch:[Copper Ore] in inventory
@>Conditional Branch:[Tin Ore] in inventory
@>Control Variables:[0051: Copper Ore]=[Copper Ore] in inventory
@>Conditional Branch: Variable [0051: Copper Ore] >=2
@>Control Variables:[0003: Smithing Exp] +=5
@>Control Variables:[0051: Copper Ore] -=2
@>Change Items: [Copper Ore], -2
@>Change Items: [Tin Ore], -1
@>Change Items: [Bronze Bar], +1
@>Text: You recieve a Bronze Bar.
@>
: Else
@>Text: You do not have enough Copper Ore.
@>
: Branch End
@>
: End
@>Text: You ran out of Tin Ore.
: Branch End
@>
: Else
@>Text: You are missing some ore.
@>
: Branch End
@>
: When [Iron]
@>Conditional Branch: Varaible [0003: Smithing Exp] >=100
@>Conditional Branch: [Iron Ore] in inventory
@>Control Variables:[0003: Smithing Exp] +=5
@>Control Variables:[0051: Copper Ore] -=2
@>Change Items: [Iron Ore], -1
@>Change Items: [Iron Bar], +1
@>Text: You recieve a Iron Bar.
@>
: Else
@>Text: You ran out of Iron Ore.
@>
: Branch End
@>
: End
@>Text: You are not skilled enough to smelt Iron Ore yet.
@>
: Branch End
@>
: When [Nothing]
@>
: Branch End
@>
This also shows you that if you are not level enough what happens there. EXP given can always be changed, comments and critiques appreciated hope you can find use of it, smithign system coming soon! Sorry if there are any typos