.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars > Scenarios, Maps & Mods

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old December 18th, 2004, 10:20 PM
Verjigorm's Avatar

Verjigorm Verjigorm is offline
Second Lieutenant
 
Join Date: Dec 2004
Location: BF Illinois
Posts: 445
Thanks: 13
Thanked 27 Times in 21 Posts
Verjigorm is on a distinguished road
Default Re: Modding command questions

What is the number for the 4th hand slot?
This is what the modding manual says, but it doesn't say why....
Value Item Slots
1 Nothing
2 1 hand
6 2 hands
14 3 hands
256 1 head
768 2 heads
1024 1 body
2048 1 feet
4096 1 misc
12288 2 miscs
28672 3 miscs
61440 4 miscs
3334 2 hands, head, body, feet
13574 2 hands, head, body, 2 misc

The system uses binary flags to set the slots--by ORing them together, you get the full inventory (just add the values below)
1st hand slot: 2 (2^1)
2nd hand slot: 4 (2^2)
3rd hand slot: 8 (2^3)
4th hand slot: 16 (2^4)
5th hand slot: 32 (2^5)
6th hand slot: 64 (2^6)
1st head: 128 (2^7)
2nd head: 256 (2^8)
3rd head: 512 (2^9)
Body: 1024 (2^10)
Feet: 2048 (2^11)
1st Misc: 4096 (2^12)
2nd Misc: 8192 (2^13)
3rd Misc: 16384 (2^14)
4th Misc: 32768 (2^15)
5th Misc: 65536 (2^16)
6th Misc: 131072 (2^17)

As you can see by the powers of two, there is no space for a second body or foot slot, or a 3rd head. If the value is stored in a 16-bit integer (unlikely, it's probably a 32-bit value) then 4 Misc is the max. One could reasonably assume that 2^5 through 2^7 have been reserved for more hands, but I have to check that (it would allow for 7 hands). I haven't tested the 4th hand yet, but I'll do it in just a few minutes and post back--I assume it works since the nataraja has 4 hand slots.

>>>>>>>>> UPDATE <<<<<<<<<

The limit appears to be 8 total slots, with up to 6 hands or miscellaneous items AND slot 128 is a head for a maximum of 3 heads.

--Verjigorm
__________________
"Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt." -- Sun Tzu
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:27 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.