Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Smelting Event (No Script)

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:

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
 

Darok

Member

Cool...!Dont surprise if u see your name in my game credits!!!!lol
I cant wait untill smithing so im making it myself...then i will compare!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top