36 lines
759 B
Plaintext
36 lines
759 B
Plaintext
void main()
|
|
{
|
|
object oPlayer = GetItemActivator();
|
|
object oItem = GetItemActivated();
|
|
|
|
|
|
{
|
|
if(GetTag (oItem) == "leadercrystal")
|
|
AssignCommand (oPlayer, ActionStartConversation (oPlayer, "master_port2", TRUE, FALSE));
|
|
}
|
|
|
|
// {
|
|
// if(GetTag (oItem) == "EmoteWand")
|
|
// AssignCommand (oPlayer, ActionStartConversation (oPlayer, "emotewand", TRUE, FALSE));
|
|
// }
|
|
|
|
|
|
|
|
|
|
{
|
|
if(GetTag (oItem) == "FoodRations")
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectHeal(50), oPlayer);
|
|
}
|
|
|
|
{
|
|
if(GetTag (oItem) == "Milk")
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectHeal(30), oPlayer);
|
|
}
|
|
|
|
{
|
|
if(GetTag (oItem) == "Water")
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectHeal(10), oPlayer);
|
|
}
|
|
|
|
}
|