40 lines
1017 B
Plaintext
40 lines
1017 B
Plaintext
|
location lTarget;
|
||
|
int nInt;
|
||
|
object oTarget;
|
||
|
effect eEffect;
|
||
|
|
||
|
//Put this on action taken in the conversation editor
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
if (GetItemPossessedBy(oPC, "QUEST_BLUGRNMOSS")!= OBJECT_INVALID)
|
||
|
{
|
||
|
SendMessageToPC(oPC, "You already have blue green moss, to remove more would be a waste!");
|
||
|
|
||
|
}
|
||
|
else if (GetItemPossessedBy(oPC, "GnomishTweezers")!= OBJECT_INVALID)
|
||
|
{
|
||
|
CreateItemOnObject("quest_blugrnmoss", oPC);
|
||
|
|
||
|
SendMessageToPC(oPC, "You have successfully gathered some moss!");
|
||
|
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
|
||
|
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_NATURE), oPC);
|
||
|
|
||
|
SendMessageToPC(oPC, "As you pull the moss from the rock it disintegrates in your hands. Perhaps manhandling the moss wasn't such a bright idea?");
|
||
|
|
||
|
if (GetIsSkillSuccessful(oPC, SKILL_LISTEN, 30))
|
||
|
{
|
||
|
SendMessageToPC(oPC, "You hear a faint voice coming from what seems to be the moss, as you listen closer you can hear the words 'Talk to the Gnomes'.");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|