void main() { if(GetItemActivated()==GetObjectByTag("RecallAmulet", 0)) { location LastRecallUsed; //Set the location variable LastRecallUsed = GetLocation(GetItemActivator()); //Get the location, fill up the variable SetLocalLocation(GetItemActivator(),"LastRecallUsed",LastRecallUsed); // Set where the portal jump the player to SetLocalInt(GetItemActivator(),"HasRecalled",1); // To make the recall poretal tells the player if he want to go back AssignCommand(GetItemActivator(),JumpToLocation(GetLocation(GetObjectByTag("recallmehere")))); // Get the player to the temple ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_3),GetItemActivator() ); } }