Guest Slaad-io Posted January 11, 2009 Share Posted January 11, 2009 Hi. I realized again the weird dice damage values of the melf's meteors and sol's searing orb (like 2561d4654) magical created weapons. Anyone know how it is works? Are these missile weapons hardcoded or there is a limit in the maximum amount of dice damage? Thanks. Link to comment
Icendoan Posted January 11, 2009 Share Posted January 11, 2009 Technically, the most damage you can ever do per hit is 65535. There is a limit, but the spell creates weapons, and all weapons use that damage system, and all items have the possibility of doing damage. For example, your arrows do damage, but your bow is your weapon. I would use a tool such as Near Infinity, and take a closer look. For the more technically minded person, there is a dissection of the file format (.itm and .spl) in the IESDP (which is here) Icen Link to comment
devSin Posted January 11, 2009 Share Posted January 11, 2009 There is some case where these values are much larger for no apparent reason, but I don't remember the details. Anyway, the 2561d4654 in your example is correct and will yield whatever damage the spell description says it does (just can't remember why). I'm sure there's some post or other around here talking about it, but you'd probably have to do a fair bit of searching (Taimon could figure out exactly why and Avenger may recall offhand, but I don't.) Link to comment
Taimon Posted January 12, 2009 Share Posted January 12, 2009 Not sure why they used these large values, but both of them are mod 256. (i.e. only one byte) So 2561d1540 = 1d4 (mod 256). Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.