|
Post by lorrmaster on Nov 6, 2016 18:46:04 GMT 1
I've been trying to learn how to use packages to create different NPCs. During this project, I'm trying to create a combat override package where the dwarven spider will look for a lever when it enters combat. If it finds a lever it will run over to activate it and will then return to combat (the only way I could figure out how to do that is to make it so the package only runs once per day, otherwise the spider would just continuously pull the lever back and forth). The problem I've run into is that the spider doesn't do anything if there is no lever nearby, it just stands there idly. I think it is because of how the procedure tree is sent up, but I haven't been able to complete the package without a lever nearby. Anyone know how I can fix this?
|
|
|
Post by rhodeidra on Nov 6, 2016 21:51:43 GMT 1
I only know packages in the context of scenes, but I would think it requires a bit of sandbox-package somewhere.
|
|
|
Post by lorrmaster on Nov 6, 2016 22:20:25 GMT 1
This package only plays to interrupt combat and it works fine when there is a lever within the radius (It just runs over to the lever, pulls it, and then returns to combat). When there is no lever though, the spider is stuck in that package. I need it to complete the package immediately if it can't find a lever so that the spider just goes straight to combat.
|
|
Hannes821
Traveler to Atmora
soon done!
Posts: 4,663
|
Post by Hannes821 on Nov 6, 2016 23:20:59 GMT 1
scriptname extended combatleverpackage ....the standard stuff EVENT ONGetCombatState IF lever is in reach <- needed, new -> go and pull the lever (like vanilla script) ELSE ENDEVENT
just an idea, i have no clue about the details of the syntax, but logically it should be somewhat like this. if "not having a lever makes the spider stuck" it means, it simply has no other option to act if not detecting /existing lever anywhere.
|
|
|
Post by rhodeidra on Nov 7, 2016 8:18:17 GMT 1
as far as I know, that would require a script with hasLOS or an SKSE script that does something similar. I'm not experienced with this but if you get me a decent description of what you need I can certainly make the scripts.
|
|