PDA

View Full Version : [TSL] I need a few scripts...


Miles Edgeworth
07-22-2007, 11:59 AM
First, I need the script for someone stabbing themself in the chest with a melee weapon.
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).

Tupac Amaru
07-22-2007, 12:33 PM
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.

Miles Edgeworth
07-22-2007, 08:24 PM
Thanks, Tupac Amaru. But, wait are you sure that it's animation 1030? Because, that's labeled as listen.

Tupac Amaru
07-23-2007, 05:08 AM
Listen is animation 10030. Visas' sacrifice is 1030.The labels in DLGEditor aren't correct in a few cases.