2025/07/18 Update
Added PEPS. Full compile.
This commit is contained in:
25
_module/nss/0c_get_henchman.nss
Normal file
25
_module/nss/0c_get_henchman.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
/*//////////////////////////////////////////////////////////////////////////////
|
||||
Script: 0e_get_henchman
|
||||
Programmer: Philos
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Action taken script that adds oCreature to oPC's party as a henchman
|
||||
while giving a random message.
|
||||
*///////////////////////////////////////////////////////////////////////////////
|
||||
#include "0i_associates"
|
||||
void main()
|
||||
{
|
||||
object oCreature = OBJECT_SELF;
|
||||
object oPC = GetPCSpeaker();
|
||||
AddHenchman(oPC, oCreature);
|
||||
int nVoice;
|
||||
switch(d4())
|
||||
{
|
||||
case 1: nVoice = VOICE_CHAT_CANDO; break;
|
||||
case 2: nVoice = VOICE_CHAT_CHEER; break;
|
||||
case 3: nVoice = VOICE_CHAT_GOODIDEA; break;
|
||||
case 4: nVoice = VOICE_CHAT_LAUGH; break;
|
||||
}
|
||||
PlayVoiceChat(nVoice, oCreature);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user