Jump to content

Home

Vulnerability on/off


Allronix

Recommended Posts

I noticed that, on the opening module of the game, your character is set to minimum one hit point, thus rendering you unable to be killed until you get to the Starboard section.

 

Honestly, I'd like to change that. Since we're all veteran players here, I think there ought to be a little bit of difficulty here. Being able to turn the min 1 HP on and off could also help modders who would like to incapacitate, but not kill the PC in a scenario.

 

So, how would you go about turning that on and off?

 

EDIT: I know you can switch that on/off with KSE, I was just looking for a way to do that without interrupting the game.

Link to comment
Share on other sites

I noticed that, on the opening module of the game, your character is set to minimum one hit point, thus rendering you unable to be killed until you get to the Starboard section.

 

So, how would you go about turning that on and off?

 

You can toggle invulnerability on a creature via scripting, using the SetMinOneHP() function. Like:

 

void main() {
   // Turn off invulnerability on the main character.
   SetMinOneHP(GetFirstPC(), FALSE);   
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...