You think maybe you could place this in here... so many if statements gets on my nerves...
(using psudocode)
Code: ags
So much nicer IMO... many if statements work the same, just not as easy to maintain... (would be nice if it would work for strings also)
(using psudocode)
switch (inventory_Number){
case 1: {Witty remark}
case 2: {Smartass remark}
case 3: {Correct item do stuff}
case 4: {Make fun of the player for thinking that}
case 5: {Kill the player (never use a fork on an electrical outlet)
default: {Throw random gibberish on the screen}
}
So much nicer IMO... many if statements work the same, just not as easy to maintain... (would be nice if it would work for strings also)