Skip to content
View in the app

A better way to browse. Learn more.

SW:Rebellion Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Self Destruct Ability

Featured Replies

So I added this to one of my larger Imperial ships so that when it loses most of its hardpoints you can suicide the enemy for massive damage. I this for my code:

 

	<UniqueUnit Name="Imperial_Devestator">
	<Text_ID>TEXT_UNIT_IMPERIAL_DEVESTATOR</Text_ID>
	<Encyclopedia_Good_Against> Corellian_Corvette Corellian_Gunboat Marauder_Missile_Cruiser </Encyclopedia_Good_Against>
	<Encyclopedia_Vulnerable_To> Y-wing </Encyclopedia_Vulnerable_To>
	<Space_Model_Name>NV_JEDICRUISER.ALO</Space_Model_Name>
	<Mass>0.999</Mass>
	<Scale_Factor>1.2</Scale_Factor>
            <GUI_Row> 1 </GUI_Row>

	<Damage>30</Damage>
	<Autoresolve_Health>3200</Autoresolve_Health>
	<Shield_Points>650</Shield_Points>
	<Tactical_Health>3200</Tactical_Health>
	<Shield_Refresh_Rate>40</Shield_Refresh_Rate>
	<Energy_Capacity>3000</Energy_Capacity>
	<Energy_Refresh_Rate>500</Energy_Refresh_Rate>

	<MovementClass> Space </MovementClass>
	<Space_Layer> Frigate </Space_Layer>
	<Max_Speed>2.2</Max_Speed>
	<Max_Rate_Of_Turn>0.7</Max_Rate_Of_Turn>
	<Max_Rate_Of_Roll>0.2</Max_Rate_Of_Roll>
	<Bank_Turn_Angle>5</Bank_Turn_Angle>
	<Hyperspace>Yes</Hyperspace>
	<Hyperspace_Speed>2.0</Hyperspace_Speed>
	<OverrideAcceleration> .1 </OverrideAcceleration>
	<OverrideDeceleration> .1 </OverrideDeceleration>
	<Layer_Z_Adjust> -90 </Layer_Z_Adjust>

	<Armor_Type> Armor_Nebulon_B </Armor_Type>

	<Max_Thrust>1.6</Max_Thrust>
	<Select_Box_Scale>400</Select_Box_Scale>
	<Select_Box_Z_Adjust>-30</Select_Box_Z_Adjust>
	<Ranged_Target_Z_Adjust>35.0</Ranged_Target_Z_Adjust>
	<Affiliation>Empire</Affiliation>
	<Build_Initially_Locked>No</Build_Initially_Locked>
	<Build_Can_Be_Unlocked_By_Slicer>No</Build_Can_Be_Unlocked_By_Slicer>
	<Ship_Class>frigate</Ship_Class>
            <Tech_Level>1</Tech_Level>
	<Required_Timeline>0</Required_Timeline>
	<Required_Ground_Base_Level>0</Required_Ground_Base_Level>
	<Required_Star_Base_Level>2</Required_Star_Base_Level>
	<Required_Special_Structures />
	<Required_Planets />
	<Formation_Priority>3</Formation_Priority>
	<Is_Escort>yes</Is_Escort>
	<Is_Bomber>no</Is_Bomber>
	<Political_Control>0</Political_Control>
	<Squadron_Capacity>10</Squadron_Capacity>
	<Transport_Capacity>8</Transport_Capacity>
	<Number_per_Squadron>1</Number_per_Squadron>
	<AI_Combat_Power>2200</AI_Combat_Power>
            <Build_Time_Seconds>45</Build_Time_Seconds>
	<Build_Cost_Credits>2500</Build_Cost_Credits>
	<Build_Tab_Space_Units>Yes</Build_Tab_Space_Units>
	<Size_Value>8</Size_Value>

	<!-- Set to spawn all units once and then not continue - no reserves -->
	<Starting_Spawned_Units_Tech_0>TIE_Fighter_Squadron, 4</Starting_Spawned_Units_Tech_0>
	<Starting_Spawned_Units_Tech_0>TIE_Bomber_Squadron, 2</Starting_Spawned_Units_Tech_0>
	<Spawned_Squadron_Delay_Seconds>5</Spawned_Squadron_Delay_Seconds>
	<Reserve_Spawned_Units_Tech_0>TIE_Fighter_Squadron, 16</Reserve_Spawned_Units_Tech_0> 
	<Reserve_Spawned_Units_Tech_0>TIE_Bomber_Squadron, 8</Reserve_Spawned_Units_Tech_0>

	<Behavior> SELECTABLE, DUMMY_STARSHIP </Behavior>
	<SpaceBehavior>ABILITY_COUNTDOWN, SIMPLE_SPACE_LOCOMOTOR, POWERED, SHIELDED, HIDE_WHEN_FOGGED, REVEAL, TARGETING, UNIT_AI, ASTEROID_FIELD_DAMAGE, DAMAGE_TRACKING, SPAWN_SQUADRON, SELF_DESTRUCT, ION_STUN_EFFECT, NEBULA </SpaceBehavior>
	<Lua_Script>Mauler</Lua_Script>

	<Space_FOW_Reveal_Range>1200.0</Space_FOW_Reveal_Range>
	<Dense_FOW_Reveal_Range_Multiplier>0.24</Dense_FOW_Reveal_Range_Multiplier>
	<Targeting_Max_Attack_Distance>1000.0</Targeting_Max_Attack_Distance>
	<Collidable_By_Projectile_Living>Yes</Collidable_By_Projectile_Living>
	<Death_Explosions>Large_Explosion_Space</Death_Explosions>

	<Asteroid_Damage_Hit_Particles>Small_Damage_Space</Asteroid_Damage_Hit_Particles>
	<Death_Clone />

	<HardPoints>
		HP_Imperial_Devestator_Shield_Gen, HP_Imperial_Devestator_Engines, HP_Imperial_Devestator_FL, HP_Imperial_Devestator_FR, HP_Imperial_Devestator_ML, HP_Imperial_Devestator_MR, HP_Imperial_Devestator_BL, HP_Imperial_Devestator_BR, HP_Imperial_Devestator_FLA_R_00, HP_Imperial_Devestator_FLA_L_00, HP_Imperial_Devestator_Fighter_Bay
	</HardPoints>

	<CategoryMask> Frigate | AntiCorvette </CategoryMask>
	<Icon_Name>i_button_jedi_cruiser.tga</Icon_Name>

	<Victory_Relevant>yes</Victory_Relevant>
	<Has_Space_Evaluator>True</Has_Space_Evaluator>


	<SFXEvent_Build_Cancelled>RHD_Unit_Canceled</SFXEvent_Build_Cancelled>
	<SFXEvent_Ambient_Loop>Unit_Acclamator_Moving_Engine_Loop</SFXEvent_Ambient_Loop>

	<SFXEvent_Select>Unit_Select_Jedi_Cruiser</SFXEvent_Select>
	<SFXEvent_Move>Unit_Move_Jedi_Cruiser</SFXEvent_Move>
	<SFXEvent_Fleet_Move>Unit_Fleet_Move_Jedi_Cruiser</SFXEvent_Fleet_Move>
	<SFXEvent_Attack>Unit_Attack_Jedi_Cruiser</SFXEvent_Attack>
	<SFXEvent_Guard>Unit_Guard_Jedi_Cruiser</SFXEvent_Guard>
	<SFXEvent_Stop>Unit_Stop_Jedi_Cruiser</SFXEvent_Stop>
	<SFXEvent_Barrage>Unit_Barrage_Jedi_Cruiser</SFXEvent_Barrage>
	<SFXEvent_Move_Into_Asteroid_Field> Unit_Asteroids_Jedi_Cruiser </SFXEvent_Move_Into_Asteroid_Field>
	<SFXEvent_Move_Into_Nebula> Unit_Nebula_Jedi_Cruiser </SFXEvent_Move_Into_Nebula>

	<SFXEvent_Attack_Hardpoint> HARD_POINT_WEAPON_LASER, Unit_HP_LASER_Jedi_Cruiser </SFXEvent_Attack_Hardpoint>
	<SFXEvent_Attack_Hardpoint> HARD_POINT_WEAPON_MISSILE, Unit_HP_MISSILE_Jedi_Cruiser </SFXEvent_Attack_Hardpoint>
	<SFXEvent_Attack_Hardpoint> HARD_POINT_WEAPON_TORPEDO, Unit_HP_TORP_Jedi_Cruiser </SFXEvent_Attack_Hardpoint>
	<SFXEvent_Attack_Hardpoint> HARD_POINT_WEAPON_ION_CANNON, Unit_HP_ION_Jedi_Cruiser </SFXEvent_Attack_Hardpoint>
	<SFXEvent_Attack_Hardpoint> HARD_POINT_SHIELD_GENERATOR, Unit_HP_SHIELDS_Jedi_Cruiser </SFXEvent_Attack_Hardpoint>
	<SFXEvent_Attack_Hardpoint> HARD_POINT_ENGINE, Unit_HP_ENGINES_Jedi_Cruiser </SFXEvent_Attack_Hardpoint>
	<SFXEvent_Attack_Hardpoint> HARD_POINT_GRAVITY_WELL, Unit_HP_GRAV_Jedi_Cruiser </SFXEvent_Attack_Hardpoint>

	<SFXEvent_Engine_Idle_Loop> Unit_Acclamator_Idle_Engine_Loop </SFXEvent_Engine_Idle_Loop>
	<SFXEvent_Engine_Moving_Loop> Unit_Acclamator_Moving_Engine_Loop </SFXEvent_Engine_Moving_Loop>
	<SFXEvent_Engine_Cinematic_Focus_Loop> Unit_Acclamator_Cinematic_Engine_Loop </SFXEvent_Engine_Cinematic_Focus_Loop>

	<Death_SFXEvent_Start_Die>Unit_Cruiser_Death_SFX</Death_SFXEvent_Start_Die>
	<Selt_Destruct_SFXEvent_Start_Die> Unit_TIE_Mauler_Self_Destruct </Selt_Destruct_SFXEvent_Start_Die>

	<Space_Full_Stop_Command> Yes </Space_Full_Stop_Command>
	<Is_Visible_On_Radar>Yes</Is_Visible_On_Radar>
	<Radar_Icon_Scale_Land>1.0</Radar_Icon_Scale_Land>
	<Radar_Icon_Scale_Space>1.0</Radar_Icon_Scale_Space>

	<Guard_Chase_Range>1000.0</Guard_Chase_Range>
	<Idle_Chase_Range>0.0</Idle_Chase_Range>
	<Attack_Move_Response_Range>400.0</Attack_Move_Response_Range>
	<Targeting_Stickiness_Time_Threshold>5.0</Targeting_Stickiness_Time_Threshold>
	<Targeting_Priority_Set>Frigate</Targeting_Priority_Set>

	<Death_Clone>Damage_Normal, Imperial_Devestator_Death_Clone</Death_Clone>

	<Defend_Mode_Weapon_Delay_Multiplier>3.0</Defend_Mode_Weapon_Delay_Multiplier>
	<Defend_Mode_Shield_Regen_Multiplier>5.0</Defend_Mode_Shield_Regen_Multiplier>
	<Defend_Mode_Energy_Regen_Multiplier>5.0</Defend_Mode_Energy_Regen_Multiplier>
	<Defend_Mode_Speed_Multiplier>0.5</Defend_Mode_Speed_Multiplier>

	<Encyclopedia_Text> TEXT_TOOLTIP_IMPERIAL_DEVESTATOR </Encyclopedia_Text>
	<Encyclopedia_Unit_Class> TEXT_ENCYCLOPEDIA_CLASS_FRIGATE </Encyclopedia_Unit_Class>
	<Score_Cost_Credits> 12000 </Score_Cost_Credits>

	<Unit_Abilities_Data SubObjectList="Yes">
		<!-- Primary ability -->
		<Unit_Ability>
			<Type>SELF_DESTRUCT</Type>
			<Expiration_Seconds>2</Expiration_Seconds>
			<Recharge_Seconds>10</Recharge_Seconds> 
			<Spawned_Object_Type> Self_Destruct_Area_Blast_Effect </Spawned_Object_Type>
		</Unit_Ability>

                                  <!-- Secondary ability -->
	<Unit_Ability>
			<Type>DEFEND</Type>
			<Expiration_Seconds>25</Expiration_Seconds>
			<Recharge_Seconds>60</Recharge_Seconds>
			<Mod_Multiplier>WEAPON_DELAY_MULTIPLIER,	1.0f</Mod_Multiplier>
			<Mod_Multiplier>SHIELD_REGEN_MULTIPLIER,	1.0f</Mod_Multiplier>
			<Mod_Multiplier>SHIELD_REGEN_INTERVAL_MULTIPLIER,	0.10f</Mod_Multiplier> <!-- make it faster to recharge -->
			<Mod_Multiplier>ENERGY_REGEN_INTERVAL_MULTIPLIER,	0.10f</Mod_Multiplier> <!-- make it faster to recharge -->
			<Mod_Multiplier>ENERGY_REGEN_MULTIPLIER,	3.0f</Mod_Multiplier>
			<Mod_Multiplier>SPEED_MULTIPLIER,		0.8f</Mod_Multiplier>

			<SFXEvent_GUI_Unit_Ability_Activated>Unit_Defend_Assault_Frigate</SFXEvent_GUI_Unit_Ability_Activated>
	</Unit_Ability>

</Unit_Abilities_Data>

	<!--<MULTIPLAYER SKIRMISH VALUES BEGIN>-->
	<Tactical_Build_Cost_Multiplayer>2000</Tactical_Build_Cost_Multiplayer>
	<Tactical_Build_Time_Seconds>30</Tactical_Build_Time_Seconds>
	<Tactical_Build_Prerequisites />
	<Tactical_Production_Queue>Tactical_Units</Tactical_Production_Queue>
	<Population_Value>3</Population_Value>
	<!--<Build_Limit_Current_Per_Player>0</Build_Limit_Current_Per_Player>-->
	<!--<Build_Limit_Lifetime_Per_Player>0</Build_Limit_Lifetime_Per_Player>-->  
	<!--<MULTIPLAYER SKIRMISH VALUES END>-->
</UniqueUnit>

<UniqueUnit Name="Imperial_Devestator_Death_Clone">
	<Text_ID>TEXT_UNIT_JEDI_CRUISER</Text_ID>
	<Space_Model_Name>NV_JediCruiser_D.alo</Space_Model_Name>
	<Death_SFXEvent_Start_Die>Unit_Star_Destroyer_Death_SFX</Death_SFXEvent_Start_Die>
	<Scale_Factor>1.2</Scale_Factor>
	<Layer_Z_Adjust>-330.0</Layer_Z_Adjust>
	<Max_Speed>0.25</Max_Speed>
	<Max_Rate_Of_Turn>0.02</Max_Rate_Of_Turn>
	<Max_Thrust>0.05</Max_Thrust>
	<Max_Rate_Of_Roll>0.02</Max_Rate_Of_Roll>
	<Bank_Turn_Angle>5</Bank_Turn_Angle>
	<Remove_Upon_Death>true</Remove_Upon_Death>

</UniqueUnit>

 

My problem isn't that it wont deal the damage or that the game crashes, but the fact that the ship after causing the explosion is still alive, and can still be told to move around and attack stuff. I even tried adding the Lua script from the Tie Mauler to no avail. Any help would be much appreciated.

  • Author
They have a lua tool, but I didn't open it, the Lua script from the mauler is already in the maulers unit code. I just copied the Mauler to my new ship. I didn't edit it, Lua's a pain, even for me....

I'm sorry to tell you this but it seems that abilities are dpendent on vehicule class.

 

It means that you can't give hero ability to infantry as well as the self destruction ability won't work for ship. Unitl LUA script can be rearanged there is no way to bypass this limitation.

 

However I'm not sure that they will give us access to encrypted lua files since it will be almost same thing as giving us access to the source code.

http://goranmost78.free.fr/orao1.jpg

Empire at War: Total Realism v2.0 mod.... 1200 downloads in 5 days and counting...

  • Author

Ehhh, you can access it with any Lua editor. Finding a free one is the problem.

 

http://eaw.swrebellion.com/wiki/LUAEDITING

 

There's a "tutorial," if you can call it one, I have absolutely no idea what the writer is saying, but there's a Lua program there. So basically you're saying that I can't make it kill the Frigate?

I thought EAw LUA's used some like weird version of those files and thus coulnt be opened until they gave us tools to do so?

http://www.swgbex.com/sig.jpg

Hehe IA 2 venator :P

thats what i meant.. they are encrypted with something weird.. ..

 

guess we have to wait

http://www.swgbex.com/sig.jpg

Hehe IA 2 venator :P

  • Author
I bet it's something really simple like a .zip renamed to .lua :P. I just know we're gonna hate ourselves if and when we get the editor for this lol.
I dont know if i could hate myself for not trying it.. but.. eh.. maybe ;P

http://www.swgbex.com/sig.jpg

Hehe IA 2 venator :P

Lua can be compiled into bytecode - this speeds things up,  but makes it unreadable and almost impossible to edit.

 

If petroglyph is really really cool, they'll throw those source files (with comments) in with the mod tools.

 

Here's hoping...

 

Phez

Have you looked at the behavior tag for the mauler, their may be a specific behavior you have to add to your ship.  I'll actually have a look myself since I've been thinking about adding something similar to ROR.  Exploding Freighters that spawn a starfighter squadron on death.

 

EDIT: Well, I see you did add the Self Destruct Behavior. hmm... Maybe the problem is caused by the destructable hardpoints.  If you make it so that the hardpoints aren't destructable and lower the tactical health it might.  If that doesn't I don't know what to tell you.

Forum and RPG Membership:

http://img.photobucket.com/albums/v436/StellarMagic01/RaporaWarsTC.jpghttp://img.photobucket.com/albums/v436/StellarMagic01/RaporaWarsRPG2.jpg

 

Signature:

Sufficiently advanced technology would be indistinguishable from Magic. -Arthur C. Clarke

If frendly fire was on it would have worked

http://www.swgbex.com/sig.jpg

Hehe IA 2 venator :P

  • 5 months later...

If petroglyph is really really cool, they'll throw those source files (with comments) in with the mod tools.

 

Here's hoping...

 

Phez

 

Ha! Months later, the database gets sent back in time, and I read this. I think petroglyph read this post! They did include the Source code!

"I feel fantastic and I'm

Still Alive

and when you're dying I will be

Still Alive

and when you're dead I will be

Still Alive

STILL ALIVE"~GLaDOS

Anybody who thinks Palpatine is a sepratist knows NOTHING about star Wars

When in doubt- rocket it.

Dowload The Underworld's Might beta from Filefront!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.