Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
void main()
|
|
{
|
|
// Display info about the target
|
|
object oUser = GetItemActivator();
|
|
object oTarget = GetItemActivatedTarget();
|
|
string sInfo = "[INFO] [Of: " + GetName(oTarget);
|
|
|
|
// Get effects
|
|
if(GetIsObjectValid(oTarget))
|
|
{
|
|
sInfo += "] [Tag: " + GetTag(oTarget);
|
|
sInfo += "] [CurHP: " + IntToString(GetCurrentHitPoints(oTarget));
|
|
sInfo += "] [MaxHP: " + IntToString(GetMaxHitPoints(oTarget));
|
|
sInfo += "] [Reputation: " + IntToString(GetReputation(oTarget, oUser));
|
|
sInfo += "] [Effects: ";
|
|
|
|
// Effects
|
|
int nAmount = 0;
|
|
effect eCheck = GetFirstEffect(oTarget);
|
|
while(GetIsEffectValid(eCheck))
|
|
{
|
|
nAmount++;
|
|
// Name creator, spell name and id, duration type, subtype and effect type.
|
|
sInfo += "[" + IntToString(nAmount) + ". [Type:" + IntToString(GetEffectType(eCheck)) +
|
|
"] [Id:" + IntToString(GetEffectSpellId(eCheck)) +
|
|
"] [Name:" + GetStringByStrRef(StringToInt(Get2DAString("Spells", "Name", GetEffectSpellId(eCheck)))) +
|
|
"] [Subtype:" + IntToString(GetEffectSubType(eCheck)) +
|
|
"] [Duration:" + IntToString(GetEffectDurationType(eCheck)) + "]";
|
|
eCheck = GetNextEffect(oTarget);
|
|
}
|
|
|
|
sInfo += "]";
|
|
}
|
|
|
|
// Say it
|
|
AssignCommand(oUser, SpeakString(sInfo));
|
|
|
|
}
|