mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-29 23:15:55 -04:00
35 lines
711 B
Plaintext
35 lines
711 B
Plaintext
/**
|
|
* myscript.script
|
|
*/
|
|
//include steve.mylib;
|
|
include library.pclib;
|
|
include library.factions;
|
|
include library.player_structure;
|
|
include library.skill;
|
|
|
|
|
|
trigger OnSpeaking(string strText)
|
|
{
|
|
string[] strCommands = split(strText, ' ' );
|
|
|
|
if(strCommands[0]=="setupImperialFaction")
|
|
{
|
|
factions.addFactionStanding(self, factions.FACTION_IMPERIAL, 3000);
|
|
sendSystemMessageTestingOnly(self, "Done");
|
|
}
|
|
|
|
if(strCommands[0]=="makeInteresting")
|
|
{
|
|
setCondition(getLookAtTarget(self), CONDITION_INTERESTING);
|
|
sendSystemMessageTestingOnly(self, "Set condition");
|
|
}
|
|
|
|
if(strCommands[0]=="setYaw")
|
|
{
|
|
setYaw(self, 90);
|
|
sendSystemMessageTestingOnly(self, "Set condition");
|
|
}
|
|
|
|
return SCRIPT_CONTINUE;
|
|
}
|