Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-09-21 21:20:34 -04:00
parent d3f23f8b3c
commit 94990edc60
5734 changed files with 6324648 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
//:: Activate Item script
//:: Created by: Helge "DarkFame" Ingvoldstad
//::
//:: Purpose: Checks if the portal scroll is casted.
//::
//:: Installation: In the Toolset select Edit->Module Properties->Events. And add this code to the "OnActivateItem" event.
void main()
{
ExecuteScript("dmfi_activate", GetItemActivator());
// variable init
object oItem = GetItemActivated(); // gets which item activated
object oPC = GetItemActivator(); // gets item activator
string sItemTag = GetTag(oItem); // gets tag of activated item
if (sItemTag == "magicalportal") { // checks if it's the town portal scroll that was used
location lLoc = GetItemActivatedTargetLocation(); // sets the location the scroll was casted at
// Effects start
effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_UNDEAD, FALSE);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis, lLoc, 6.0);
// Effects stop
CreateObject(OBJECT_TYPE_PLACEABLE,"magicalportal",lLoc,TRUE); // creates the actual portal
SetLocalLocation(oPC, "Owner", GetItemActivatedTargetLocation()); // stores the location variable in the PC itself
}
}