Hi guys,
I just got back into NWN2 SCRIPTING, I was good at one time; but i cant remember crap! I found a mod with extreme potential. It is a teleport script like Soul reaver where you can teleport to a duplicat spirit realm, and Then back again! The mod author vanished after the vault site was taken down! Their is only one script to fix! three files readme, modual, and the erf script! The copy is located here on my server.
http://colubragens.o...AULT/readme.zip
The error shows up when i try to compile the erf script in the toolset. If any advanced scripter can help me out it would be super cool. If you know some one who can help please pass the zip around!
//This script is the base script that is used to deal with the spirit walker abilities.
//Players with this tool will be able to travel between the realms as a spirit walker,
//for generally pure awesomeness reasons. Nothing more.
#include "x3_inc_string"
void main()
{
object oPC = GetItemActivator();
if(!GetIsPC(oPC)) return;
//So lets run this script based on the current location of the player. If the local int is set to 1. Then they are in
//the spirit realm. If it is set to 0 they are in the normal human realm. Simples.
if(GetLocalInt(oPC,"SPIRIT_WALKER") == 0) { // Human Realm.
object oArea = GetArea(oPC);
object oTag = GetObjectByTag("SP_"+GetTag(oArea)); //All Spirit realms simply have SP_ added to the front of the tags.
vector vTest = GetPosition(oPC); //This gets the current locaton by vector points of the player.
location lLoc = Location(oTag, vTest, 90.0); //This creates a new location at the specified position.
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_DEATH_L),oPC);
AssignCommand(oPC,ActionJumpToLocation(lLoc));
SetLocalInt(oPC,"SPIRIT_WALKER",1); //Set the local so it knows the player is in the spirit realm.
}
else if(GetLocalInt(oPC,"SPIRIT_WALKER") == 1) { //Spirit Realm.
object oArea = GetArea(oPC);
object oTag = GetObjectByTag(StringRemoveParsed(GetTag(oArea),"SP_"));
vector vTest = GetPosition(oPC); //This gets the current locaton by vector points of the player.
location lLoc = Location(oTag, vTest, 90.0); //This creates a new location at the specified position.
ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_IMP_DEATH_L),oPC);
AssignCommand(oPC,ActionJumpToLocation(lLoc));
SetLocalInt(oPC,"SPIRIT_WALKER",0); //Set the local so it knows the player is in the spirit realm.
}
}
Thanks so much!





Retour en haut







