structs question
Posted: Thu Jun 15, 2017 3:55 am
in the following struct( the ---xx are just numberss i added here to reference the line
as you will see in the analizer the set_bonus_stats count(line 5) above has a 1, 1, 0 in the array which i take to mean in th first there is 1 stat to display, the scend 1 stat to display and in the third 0 stats to display(second attachment,, i would expect line 6 the bonus_stats_array to only be used when line 5 is not 0, is that correct see first atttachemnt pic, i would have expected the third element since it had a count of 0 circleed in blue to not be used in bunos_stat_array but for the 02 to be the bonus_effect_count
Code: Select all
<Data ElementName="set_name" Type="EQ2_8Bit_String" Size="1" /> ---1
<Data ElementName="set_bonus_list_count" Type="int8" IfVariableSet="footer_set_name_0" />---2
<Data ElementName="set_bonus_list_array" Type="Array" ArraySizeVariable="set_bonus_list_count">---3
<Data ElementName="set_bonus_items_needed" Type="int8" Size="1" />---4
<Data ElementName="set_bonus_stats_count" Type="int8" />---5
<Data ElementName="set_bonus_stats_array" Type="Array" ArraySizeVariable="set_bonus_stats_count">---6
<Data ElementName="set_stat_type" Type="int16" OversizedValue="127" OversizedByte="127" Size="1" />---7
<Data ElementName="set_stat_subtype" Type="int16" OversizedValue="127" OversizedByte="127" IfVariableNotEquals="set_stat_type_%i" Size="1" />---8
<Data ElementName="set_value" Type="float" Type2="sint32" Type2Criteria="set_stat_type!=6" />---9
<Data ElementName="set_stat_name" Type="EQ2_8Bit_String" Size="1" />---10
<Data ElementName="set_stat_unknown" Type="int8" Size="6" />---11
</Data>---12
<Data ElementName="set_bonus_effects_count" Type="int8" />---13
<Data ElementName="set_bonus_effects_array" Type="Array" ArraySizeVariable="set_bonus_effects_count">---14
<Data ElementName="set_bonus_effect_subbulletflag" Type="int8" Size = "1" />---15
<Data ElementName="set_bonus_effect_text" Type="EQ2_16Bit_String" Size="1" />---16
<Data ElementName="set_bonus_effect_percentage" Type="int8" Size = "1" />---17
</Data>---18
</Data>---19