20-10-2008, 10:08 AM
Even though in the title I put question about item types, this really could be applied to everything, tile attributes, etc.
So I was writing the first little bit of my fishing system into a vanilla MS4 engine, and here is my case Item_Type_Pole
[spoiler][code]
Case ITEM_TYPE_POLE
Randomize Timer
Dice1 = (Int((100 - 1 + 1) * Rnd + 1))
Slevel = Int(GetPlayerStat(Index, Stats.Defense))
chance = (Int(((Slevel) * 100) / (32000)))
If Dice1
So I was writing the first little bit of my fishing system into a vanilla MS4 engine, and here is my case Item_Type_Pole
[spoiler][code]
Case ITEM_TYPE_POLE
Randomize Timer
Dice1 = (Int((100 - 1 + 1) * Rnd + 1))
Slevel = Int(GetPlayerStat(Index, Stats.Defense))
chance = (Int(((Slevel) * 100) / (32000)))
If Dice1