Jump to content

Home

[TSL] I need a few scripts...


Recommended Posts

First, I need the script for someone stabbing themself in the chest with a melee weapon.
This can be done with dialog animation number 1030, but it only works with Visas and she must be wearing generic clothes.

 

Second, is a script to remove the pc (and other party members) from the party, and making

a party member the leader (such as Mandalore).

This script will make Mandalore the player character.
void SwitchToNPC( int nNPC );

void main() {
DelayCommand(1.0, SwitchToNPC(NPC_CANDEROUS));
}

void SwitchToNPC( int nNPC ) {
SwitchPlayerCharacter( nNPC );
}

For other characters, replace NPC_CANDEROUS with the corresponding NPC's constant. They can be found in nwscript.nss. To switch back to the main PC, use NPC_PLAYER as parameter.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...