Home » MODDING HQ 1.13 » v1.13 Coding Talk » Item choices (question on xml files in TableData/Inventory)
Item choices[message #352642] Thu, 08 March 2018 06:59 Go to next message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
Two questions on inventory specification
1) Is there a way to specify item choices progression (like gun choices in GunChoices_Enemy_...), or options from ItemChoices_Enemy_... will appear during whole campaign and I will meet flak- and BDU-wearing elites in Meduna (if I use ItemChoices_Enemy distributed with ja2 1.13)?
2) What's the purpose of file EnemyItemChoices.xml - if we have enemy inventory set up in ItemChoices_Enemy_Admin,Regular,Elite?

Report message to a moderator

Private 1st Class
Re: Item choices[message #352643 is a reply to message #352642] Thu, 08 March 2018 09:43 Go to previous messageGo to next message
silversurfer

 
Messages:2791
Registered:May 2009
1) Item distribution is randomized although it tries to favor better coolness items. Max coolness depends on game progress.

2) Check SOLDIERCLASS_SPECIFIC_ITEM_TABLES in Ja2_Options.ini. It defines if the class specific tables are used or not.



Wildfire Maps Mod 6.07 on SVN: https://ja2svn.mooo.com/source/ja2/branches/Wanne/JA2%201.13%20Wildfire%206.06%20-%20Maps%20MOD

Report message to a moderator

Lieutenant
Re: Item choices[message #352644 is a reply to message #352643] Thu, 08 March 2018 11:35 Go to previous message
UBAH is currently offline UBAH

 
Messages:28
Registered:October 2007
Thanks for the replies

More questions:
-- how does the game deal with duplicated entries in gun lists (like '<bItemNo2>4681</bItemNo2> <bItemNo3>4681</bItemNo3>' )? will this gun appear twice as often as if it is mentioned once?
-- since there are sections for grenade launchers and mortars in files ItemChoicesEnemy_... , this items will appear even if they aren't mentioned in gun lists? Is it correct?
-- if I leave in ItemChoicesEnemy_Elite.xml only cool armour, it will appear at early stages of the game, or may be elites will be completely stripped of armour due to coolness cap you mentioned?
-- does weapon attachments allso picked on random basis? I made an experiment, using AFS-mod. I created gun lists, containing for all enemy classes onlly one weapon - sniper rifle M40. Addded to the section 'scopes' of ItemChoicesEnemy scopes 6x and 9x. During battle in the sector H13 (game progress 22) I managed to steal guns of 4 enemys - each time it was M40 with 6x scope. 9x scope didn't appear. Was this due to coolness cap, or, may be, because in ItemChoicesEnemy 6x scope predated 9x scope and game gust picked first suitable scope it found?
-- is there any mean to put commentaries in items and gun lists - remarks for my own use, which will be ignored during load process?

Report message to a moderator

Private 1st Class
Previous Topic: Roof climbing problem in 1.13
Next Topic: 7609+AI: Merges.xml and advanced crafting
Goto Forum:
  


Current Time: Tue Feb 18 22:20:44 GMT+2 2025

Total time taken to generate the page: 0.01331 seconds