generated from Jaysyn/ModuleTemplate
22 lines
951 B
Plaintext
22 lines
951 B
Plaintext
void main()
|
|
{
|
|
object oSelf = OBJECT_SELF;
|
|
object oUser = GetLastUsedBy();
|
|
int iRanger = GetLevelByClass(CLASS_TYPE_RANGER, oUser);
|
|
string sName = GetLocalString(oSelf, "name");
|
|
string sDist = GetLocalString(oSelf, "dist");
|
|
string sLevel = GetLocalString(oSelf, "level");
|
|
string sNotRanger = "Only a ranger can make sense of such markings..."; //This string is what non rangers get when they use a tracking arrow...
|
|
float fDelay = 2.0; //This is the delay between comments
|
|
if (iRanger >= 1){
|
|
AssignCommand(oUser, ActionSpeakString("Name: "+sName, TALKVOLUME_WHISPER));
|
|
ActionWait(fDelay);
|
|
AssignCommand(oUser, ActionSpeakString("Distance:"+sDist, TALKVOLUME_WHISPER));
|
|
ActionWait(fDelay);
|
|
AssignCommand(oUser, ActionSpeakString("Strength: "+sLevel, TALKVOLUME_WHISPER));
|
|
}
|
|
else{
|
|
AssignCommand(oUser, ActionSpeakString(sNotRanger, TALKVOLUME_WHISPER));
|
|
}
|
|
}
|