moorleiche2k Posted June 10, 2012 Share Posted June 10, 2012 (edited) Hey guys, Basically I want to modify the majority of the spell casting behaviour. Since the function (remote)cast just casts your spell without checking for manacosts and many other things like animation etc., I stumbled across AI-Packages. The packages are responsible for all the things running in the brackground while doing sth/casting (manacost-calculation etc).They are normally used for already AI-driven actors. But they work also on players if you deactivate the player-input and activate the AI for them and maybe one or two more things (saw it once but wasn't able to reproduce this). Since I have experience with scripting but not with the ck I would like to ask you how to achieve a player beeing controlled by an AI-Package temporarily (e.g. for the duration of the casting-animation). In other words, what do I have to do precisely, what commands, what to (de)activate, etc?Anyones experience who ever used the UseMagic-Procedure successfully is also welcomed as well as basic knowledge about the packages. Thanks in advance Edited June 10, 2012 by moorleiche2k Link to comment Share on other sites More sharing options...
fg109 Posted June 10, 2012 Share Posted June 10, 2012 There's a scripting function: SetPlayerAIDriven. I was the one who wrote the info for the UseMagic package but that was back in March. There have been updates since then, and in my current game that's version 1.6.87.0.6, the NPC no longer uses magicka to cast the spells. Link to comment Share on other sites More sharing options...
moorleiche2k Posted June 11, 2012 Author Share Posted June 11, 2012 (edited) I used the CMD already, but there are too many parameters kicking in to find my failure, so first a precise description and then my questions: Goal: When I hit my opponent I want immediatly to stop the attack animation and start using the package (either self-defined if necessary, otherwise use-magic) and if possible accelerate the packages casting-animation if possible. Ways i have heard of but never was able to verify (by far too many parameters and a lack of knowledge of CK):1) Quests2) Scenes3) Stand-Alone Packages which are "started" by 'evaluatepackage' Questions:Generally, is it better to use AI-Packages for my Goal or shall I emulate the whole manacost-casting-system by hand?How to make the Package run on the player?What CMD's in which context do i have to use (e.g. disable player controls? using scenes?)? What route to take, quests, stand-alone packages? I recognized at the beginning of a scene that the player sheathes his weapons. As said in "Goals", sth like this sheathing shouldnt happen.I used "disableplayercontrols" and "setplayeraidriven" and started the corresponding quest and scene, still the package didn't run. FG109: If you have time, I would be extremly happy if you could help me via (voice) chat since I am searching now for weeks for a package-experienced modder. You can find me also as Moorleiche2k in Steam. This problem simply drives me nuts.. Edited June 11, 2012 by moorleiche2k Link to comment Share on other sites More sharing options...
Recommended Posts