Help with encounter tables

3 posts / 0 new
Last post
#1
Help with encounter tables

There's a problem I haven't been able to solve for a while now. We all know encounters can have lots of nodes that can be followed by choosing one of the options presented by icons and a tooltip or short info attached to them. For some reason, I can only add one node to encounters. Every time I add a second one, this will not show up. I have been unable to find what I'm doing wrong so I will post an example:

<table name="encounters"> <column name="id">848</column> <column name="strName">Haggerty Health Clinic</column> <column name="strDesc">&quot;What services do you require today?&quot;</column> <column name="strImg">EncHaggertyHealthClinic.png</column> <column name="nTreasureID">3</column> <column name="nRemoveTreasureID">3</column> <column name="aConditions">1</column> <column name="aPreConditions"></column> <column name="fPrice">0</column> <column name="aResponses">90.76x1=856x1x0x0x0,90.75x1=855x1x0x0x0,90.2x1=854x1x0x0x0,90.78x1=849x1x0x0x0,90.69x1=850x1x0x0x0,90.80x1=851x1x0x0x0,90.77x1=858x1x0x0x0,90.79x1=853x1x0x0x0,90.74x1=857x1x0x0x0,90.10x1=845x1x0x0x0,90.8x1=877x1x0x0x0,90.8x1=861x1x0x0x0,90.8x1=878x1x0x0x0,=848x1x0x0x0,NSE:90.20x1=NSE:10x1x0x0x0[color=red],NSE:90.27x1=NSE:32x1x0x0x0[/color]</column> <column name="aMinimapHexes"></column> <column name="bRemoveCreatures">0</column> <column name="bRemoveUsed">0</column> <column name="nItemsID">329</column> <column name="nCreatureID">0</column> <column name="ptCreatureHex">0,0</column> <column name="ptTeleport">0,0</column> <column name="ptEditor">9594,-19960</column> <column name="nType">0</column> <column name="fLootChance">0</column> <column name="fAccidentChance">0</column> <column name="fCreatureChance">0</column> <column name="vAccidents">0</column> <column name="vLoot">0</column> </table>

As you can see, there are two new entries in this vanilla encounter. One to order an inhaler and one to order bandages, marked in red. The first one works as expected but the marked one doesn't show up for some reason.

Here's the node that should follow, in case this is the one causing the issue. This one is in the mod's xml:

<table name="encounters"> <column name="id">32</column> <column name="strName">PharmaCon Emergency Bandages: $100</column> <column name="strDesc">Patient will receive a stack of 10 sealed bandages. Cost: $100</column> <column name="strImg">0:EncHaggertyHealthClinic.png</column> <column name="nTreasureID">0:3</column> <column name="nRemoveTreasureID">0:3</column> <column name="aConditions">0:1</column> <column name="aPreConditions"></column> <column name="fPrice">0</column> <column name="aResponses">0:90.6x1=0:860x1x0x0x0,0:90.7x1=33x1x0x0x0,=32x1x0x0x0</column> <column name="aMinimapHexes"></column> <column name="bRemoveCreatures">0</column> <column name="bRemoveUsed">0</column> <column name="nItemsID">0:79</column> <column name="nCreatureID">0</column> <column name="ptCreatureHex">0,0</column> <column name="ptTeleport">0,0</column> <column name="ptEditor">11028,-17468</column> <column name="nType">0</column> <column name="fLootChance">0</column> <column name="fAccidentChance">0</column> <column name="fCreatureChance">0</column> <column name="vAccidents">0</column> <column name="vLoot">0:0</column> </table>

I have no idea what could be causing the issue but I don't think it's the itemtype, since It's just an edited copy of the one for the inhaler... I will post it anyways:

<table name="itemtypes"> <column name="id">200</column> <column name="nGroupID">90</column> <column name="nSubgroupID">27</column> <column name="strName">bandages</column> <column name="strDesc">PharmaCon &quot;FAEB&quot; emergency bandages (encounter)</column> <column name="strDescAlt"></column> <column name="nCondID">0:1</column> <column name="vImageList">ItmBandagesPack.png</column> <column name="vSpriteList"></column> <column name="vImageUsage">0,0,0,0,0,0</column> <column name="fWeight">50</column> <column name="fMonetaryValue">0</column> <column name="fMonetaryValueAlt">0</column> <column name="fDurability">1</column> <column name="fDegradePerHour">0</column> <column name="fEquipDegradePerHour">0</column> <column name="fDegradePerUse">0</column> <column name="vDegradeTreasureIDs">0:3,0:3</column> <column name="aEquipConditions"></column> <column name="aPossessConditions"></column> <column name="aUseConditions"></column> <column name="aCapacities"></column> <column name="vEquipSlots">-1</column> <column name="vUseSlots"></column> <column name="bSocketLocked">0</column> <column name="vProperties">0:86</column> <column name="aContentIDs"></column> <column name="nFormatID">0:4</column> <column name="nTreasureID">0:0</column> <column name="nComponentID">0:3</column> <column name="bMirrored">0</column> <column name="nSlotDepth">0</column> <column name="strChargeProfiles"></column> <column name="aAttackModes"></column> <column name="nStackLimit">1</column> <column name="aSwitchIDs"></column> <column name="aSounds">0:cueNewsPaperPickUpShort,0:cueNewsPaperPutDown</column> </table>

As I mentioned before, it's not the first time I get stuck with this issue. It's actually why there's a missing option in the metal locker encounters. It was not showing up.

Pew pew pew!

From the top of my head - did you put the new icon for the new option into the treasure table 329? The one that holds all the items for the answer icons in that encounter?


<--Mighty (mini)Mod of Doom-->
DeviantArt Gallery of MoD Sprites

Wow... that was the problem. It seems I completely forgot about that since I found the icon for the inhaler in there. Thanks a lot, Kaaven! This will also help me fix similar issues with other encounters.

Pew pew pew!