Indestructable ship script

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Lanora
Posts: 77
Joined: Sun, 9. Apr 06, 15:12
x3

Indestructable ship script

Post by Lanora » Fri, 21. Apr 06, 06:20

I am having trouble finding info on how to make this script.

I'm sure it has been done before and is probley very simple but I cant figure it out on my own.

So far I am using the code that says

Code: Select all

  [PLAYERSHIP] -> set hull to 999999999


I am sure that's not right becuase I have tryed the same thing afew different ways and I still blow up on impact.

Am I any where near the right track?

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow » Fri, 21. Apr 06, 15:07

u cant do anything about impact hits

its handled internally by the game engine, so you cant effect the collisition detection.

you can only make it invinvible from attack fire

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Fri, 21. Apr 06, 17:59

here is the code of GOD MODE by nuclear_eclipse
NOTE: this script was made for X³

although it may work for X² afaik all of these commands are in the X² script editor {i am not sure i didn't do any scripts for X²}
if not you will have to find a way around it,

Code: Select all

nuke.cheat.godmode.xml

001   while [TRUE]
002    $hull.max = [THIS] -> get max hull
003    $hull.current = [THIS] -> get hull
004    [THIS] -> set hull to $hull.max
005    
006    $shield.max = [THIS] -> get maximum shield strength
007    [THIS] -> set current shield strength to $shield.max
008    
009 @  = wait 100 ms
010   end
011   
012   return null

Code: Select all

setup.nuke.cheat.godmode.xml

001   load text: id=7890
002   set script command upgrade: command=COMMAND_TYPE_SHIP_63  upgrade=[TRUE]
003   global script map: set: key=COMMAND_TYPE_SHIP_63, class=Ship, race=Player, script='nuke.cheat.godmode', prio=0
004   return null
cheers stevio

michael240261
Posts: 4
Joined: Sat, 29. Apr 06, 12:51

Post by michael240261 » Sat, 13. May 06, 15:42

God Mode Script does work in X2, but you have to activate it every time you go into the game

DeCook
Posts: 2
Joined: Thu, 2. Dec 10, 19:46

Post by DeCook » Mon, 6. Dec 10, 00:14

I can assure you it doesn’t, having just installed it all it dose is lock up all movement controls.

In fact if you look at the script after installing you will see the lines that do the business have been removed as X2 has no idea how to interpret them.

spacedude007
Posts: 1
Joined: Wed, 20. Apr 11, 03:26

Post by spacedude007 » Wed, 20. Apr 11, 03:30

wait, where is the set hull command on x2 the threat? plz i really need the godmode so i can complete the story and unlock the khaak weaponry

User avatar
SpaceTycoon
Posts: 1190
Joined: Wed, 6. Nov 02, 20:31
x4

Post by SpaceTycoon » Wed, 20. Apr 11, 09:53

spacedude007 wrote:wait, where is the set hull command on x2 the threat? plz i really need the godmode so i can complete the story and unlock the khaak weaponry
For X2 you may try my Camouflage Device http://www.egosoft.com/x2/forum/viewtopic.php?p=955462
Its similar to a god mode.

Post Reply

Return to “X²: The Threat - Scripts and Modding”