Jump to content


Photo

Trouble making new unit abilities function


  • Please log in to reply
4 replies to this topic

#1 Saichalmzar

Saichalmzar
  • New Members
  • 3 posts

Posted 11 February 2012 - 04:00 AM

I've figured out most of it on my own, but I sometimes have trouble adding certain special abilities to units. The button for the unit's ability is there, but when I click it, I hear a short tone that indicates it's unavailable and nothing happens. The three cases I'm unable to solve are adding the Concentrate Fire ability to a certain starfighter, adding the Proximity Mine ability to Rebel Plex soldiers, and adding the Stimpack ability to Rebel soldiers.

I've looked pretty thoroughly to make sure they should work based on what the code for other unit abilities looks like, but I'm stumped on these three.

#2 Darthbyron56

Darthbyron56
  • Petrolution Staff
  • 82 posts
  • Location:Wales, Cardigan
  • Projects:BSG at War
  •  Mod Leader - BSG at War
  • Division:Petrolution
  • Job:Community Leader

Posted 13 February 2012 - 10:14 PM

Got any code I can have a look at to see if i can help.

Paste the stuff on Unit Abilities for the xml file your trying to create.

Petrolution Community Leader

Life would never be the same without.... Battlestar Galactica


#3 Saichalmzar

Saichalmzar
  • New Members
  • 3 posts

Posted 14 February 2012 - 07:14 PM

This is for the TIE/fc, I have these abilities under both the individual fighter and the squadron.

<Unit_Abilities_Data SubObjectList="Yes">
<Unit_Ability>
<Type>CONCENTRATE_FIRE</Type>
<Effective_Radius>6000</Effective_Radius>
<Recharge_Seconds>60</Recharge_Seconds>
<Expiration_Seconds>15</Expiration_Seconds>
<Particle_Effect>Home_One_Target_Particles</Particle_Effect>
<GUI_Activated_Ability_Name>TIE_FC_Concentrate_Fire</GUI_Activated_Ability_Name>
<SFXEvent_Target_Ability>Unit_Attack_TIE_Fighter</SFXEvent_Target_Ability>
</Unit_Ability>
<Unit_Ability>
<Type>FOW_REVEAL_PING</Type>
<Recharge_Seconds> 30.0 </Recharge_Seconds>
<Spawned_Object_Type> Proj_Special_Space_FOW_Reveal_Ping_Blast </Spawned_Object_Type>
<Effective_Radius> 6000.0 </Effective_Radius>
<Area_Effect_Decal_Distance> 1800.0 </Area_Effect_Decal_Distance>
<GUI_Activated_Ability_Name> </GUI_Activated_Ability_Name>
</Unit_Ability>
</Unit_Abilities_Data>

<Abilities SubObjectList="Yes">
<Concentrate_Fire_Attack_Ability Name="TIE_FC_Concentrate_Fire">
<Activation_Style> User_Input </Activation_Style>
<Applicable_Unit_Categories>Corvette | Frigate | Capital | Super</Applicable_Unit_Categories>
<Applicable_Unit_Types />
<Target_Damage_Increase_Percent>0.5</Target_Damage_Increase_Percent>
<Target_Speed_Decrease_Percent>0.0</Target_Speed_Decrease_Percent>
<Stacking_Category>0</Stacking_Category>
</Concentrate_Fire_Attack_Ability>
</Abilities>

And this for the plex soldiers:

<Unit_Abilities_Data SubObjectList="Yes">
<Unit_Ability>
<Type>ROCKET_ATTACK</Type>
<Targeting_Max_Attack_Distance>250.0</Targeting_Max_Attack_Distance>
<Alternate_Icon_Name>i_sa_swap_weapons.tga</Alternate_Icon_Name>
</Unit_Ability>

<Unit_Ability>
<Type>PROXIMITY_MINES</Type>
<Recharge_Seconds>80.0</Recharge_Seconds>
<GUI_Activated_Ability_Name> Vanguard_Mines </GUI_Activated_Ability_Name>
<Effective_Radius> 500.0 </Effective_Radius>
<SFXEvent_Target_Ability />
<Area_Effect_Decal_Distance> 50.0 </Area_Effect_Decal_Distance>
<!-- <Must_Be_Bought_On_Black_Market>Yes</Must_Be_Bought_On_Black_Market> -->
</Unit_Ability>
</Unit_Abilities_Data>

<Abilities SubObjectList="Yes">

<Proximity_Mines_Ability Name="Vanguard_Mines">
<Activation_Style> User_Input </Activation_Style>
<Activation_Min_Range>0.0</Activation_Min_Range>
<Activation_Max_Range>70.0</Activation_Max_Range>
<Mine_Type>Proximity_Mine</Mine_Type>
<Trigger_Radius>30</Trigger_Radius>
<Number_Of_Mines>6</Number_Of_Mines>
<Activation_Time_In_Seconds>3</Activation_Time_In_Seconds>
<Activate_SFX>Unit_Lightsaber_Projectile_Block</Activate_SFX>
<!-- <Must_Be_Bought_On_Black_Market>Yes</Must_Be_Bought_On_Black_Market> -->
</Proximity_Mines_Ability>

</Abilities>

And this for the regular soldiers:

<Unit_Abilities_Data SubObjectList="Yes">
<Unit_Ability>
<Type>SPREAD_OUT</Type>
<Mod_Multiplier>SPEED_MULTIPLIER, 0.5f</Mod_Multiplier>
<Mod_Multiplier>TAKE_DAMAGE_MULTIPLIER, 0.5f</Mod_Multiplier>
<SFXEvent_GUI_Unit_Ability_Activated>Unit_Take_Cover_Rebel_Soldier</SFXEvent_GUI_Unit_Ability_Activated>
</Unit_Ability>
<Unit_Ability>
<Type>STIM_PACK</Type>
<GUI_Activated_Ability_Name> Rebel_Stimpack </GUI_Activated_Ability_Name>
<Expiration_Seconds> 10.0 </Expiration_Seconds>
<Recharge_Seconds> 45.0 </Recharge_Seconds>
<Mod_Multiplier>SPEED_MULTIPLIER, 1.5f</Mod_Multiplier>
<Mod_Multiplier>WEAPON_DELAY_MULTIPLIER, 0.75f</Mod_Multiplier>
<Must_Be_Bought_On_Black_Market>Yes</Must_Be_Bought_On_Black_Market>
</Unit_Ability>

</Unit_Abilities_Data>

<Abilities SubObjectList="Yes">

<Stim_Pack_Ability Name="Rebel_Stimpack">
<Activation_Style> User_Input </Activation_Style>
<Must_Be_Bought_On_Black_Market>Yes</Must_Be_Bought_On_Black_Market>
</Stim_Pack_Ability>

</Abilities>

#4 Darthbyron56

Darthbyron56
  • Petrolution Staff
  • 82 posts
  • Location:Wales, Cardigan
  • Projects:BSG at War
  •  Mod Leader - BSG at War
  • Division:Petrolution
  • Job:Community Leader

Posted 15 February 2012 - 02:37 PM

Right ok, i've had a look over your code and i cannot see anything wrong with it. Do the units appear in game with the ability on them?

Could you send me an attached ZIP with all the related xml files?

Petrolution Community Leader

Life would never be the same without.... Battlestar Galactica


#5 Saichalmzar

Saichalmzar
  • New Members
  • 3 posts

Posted 15 February 2012 - 05:08 PM

Sure, but remember, I can't really release this stuff as content for other people to use, because it's a mixing of other mods along with my own stuff, for my own personal use. But just for the sake of helping me out I guess it's okay, should I email it?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users