![]() |
Question about Item Types - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Question about Item Types (/showthread.php?tid=2275) |
Question about Item Types - deathknight - 20-10-2008 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 Re: Question about Item Types - William - 20-10-2008 It won't make it faster. But it would make things more organized. Re: Question about Item Types - deathknight - 20-10-2008 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. Re: Question about Item Types - William - 20-10-2008 Thats a good idea since apparently a module shouldn't exceed 67kb of size or something like that. Re: Question about Item Types - deathknight - 20-10-2008 Is this one of those things that is a predefined limit, or just you CAN exceed it, but you start getting wierd RTEs ? |