void main(){ object oPC = GetEnteringObject(); //Gets the object that just entered the area if(!GetIsPC(oPC)) return;
if(GetIsSkillSuccessful(oPC, SKILL_SEARCH, 15)) { object oCabinet = GetObjectByTag("ShrineOfPelorWall"); location lCabinet = GetLocation(oCabinet); SetLocalLocation( oWall, location lWall = GetLocation(oCabinet), string sWall = "sWall", ); DestroyObject(oCabinet); }}
Lines 16 and 17 return with "unknown state in compiler" errors...
I'm trying to destroy an object, but before it's destroyed save its location to a local variable that can be called by another script to recreate the object.
What am I doing wrong with it?
Basically i put a wall in front of a secret door that will disappear when a search check is made, but make the wall reappear when the door is closed (to keep the door hidden).
Any thoughts?
Modifié par MammonTheViscount, 24 juillet 2010 - 12:35 .





Retour en haut






