Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about Item Types
#1
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
Reply
#2
It won't make it faster. But it would make things more organized.
Reply
#3
Yeah, I wasn't sure if it would make it faster, but it would sure help keep it organized. I'm almost finished with my enchanting skill, I just need to add in a stat for it and update the sub to use that stat, but I expect my fishing code to be alot bigger. I move all of the larger codes to subs, and start modTileTypes, modAttributes, etc. Just a little thought I had while programming this in.
Reply
#4
Thats a good idea since apparently a module shouldn't exceed 67kb of size or something like that.
Reply
#5
Is this one of those things that is a predefined limit, or just you CAN exceed it, but you start getting wierd RTEs ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)