HBModdingGuy Posted May 29 Posted May 29 Hey guys, I'm trying to figure out how to properly use EvaluatePackage and ResetAI within a dialogue's fragment. I have my property added successfully: TestCharacterA When I used the following: pTestCharacterA.evp(), pTestCharacterA.EvaluatePackage(), or pTestCharacterA.ResetAI() the error log states that none of the above are functions. I am aware F4 and Skyrim are slightly different with some of these types of things but there is no clear documentation regarding this. I am reading the offline version of the Creation Kit Wiki while waiting for a response.
NeinGaming Posted May 29 Posted May 29 (edited) Do you have the reference of the NPC added as property, or the NPC base form? Because you can only call that on an Actor (i.e. a reference), not an Actorbase. edit: oh, and ResetAI is a console command, not a Papyrus function. So without using a script extender function to run console commands, you can't use that from within Papyrus anyway. Edited May 29 by NeinGaming
RaidersClamoring Posted June 7 Posted June 7 Insights into stuff like this will emerge naturally if you use vs code with the Papyrus extension (by Joel Day). As with most syntax highlighters, class members or script functions in this case will reveal themselves by just typing a dot after the script name, optionally with some characters you suspect are in the function name.
Recommended Posts