MadApplez Posted March 4, 2013 Share Posted March 4, 2013 Hello everyone, im not sure if this is the right place to pose this question. I am Creating a Scripted event between an NPC and a player - and i need some assistance! This is what i want to happen (Theoretically) 1.Player Trips a tripwire (or some sort of trigger) 2. This alerts a nearby NPC 3. The NPC runs to a location to "Release the hounds" So in order to make myself clear. I want the Player to Trigger the NPC to move to the cage with the animal in it (The NPC has the KEY in inventory) and when the NPC moves "Through" the cage he should unlock the door. releasing the animal. Link to comment Share on other sites More sharing options...
unuroboros Posted March 5, 2013 Share Posted March 5, 2013 This won't be a particularly trivial way to break into scripting. :) Start by reading up on Packages. The Papyrus language itself can also be a little awkward to get used to (particularly if you do already have programming experience), the crucial elements to understand are how Properties are used, and how each "Form" in the game has a script with its own functions and events; e.g., the Actor script. Post back if reading those two topics makes sense, or just raises more questions? Link to comment Share on other sites More sharing options...
MadApplez Posted March 5, 2013 Author Share Posted March 5, 2013 Well unfortunately i do have programming experience. :( 5 languages to be exact. So i feel particularly at a disadvantage. Lol It does make sense... Link to comment Share on other sites More sharing options...
unuroboros Posted March 5, 2013 Share Posted March 5, 2013 You do have a head start then, you just need to wrap your head around Properties, which is a pretty useful way to apply variables to a gaming script engine really. :) I think most of the work you need to do is just building the Package itself, but it should be easy to find a similar example in-game, find that setup in the CK, and dissect it. You may then need a script on the trigger (its OnTriggerEnter event) that first sets a variable then forces the Actor (a Property so you can point at your NPC) to EvaluatePackage and react immediately (based on your Package having a condition of the variable the OnTrigerEnter has set). Link to comment Share on other sites More sharing options...
Recommended Posts