nehaberlan Posted July 2, 2016 Posted July 2, 2016 Hi, I would like to create an activator cube around a pool/jacuzzi with a script to give the command undress-get naked when the PC/NPCs go in the pool/jacuzzi by default. And, when they live the pool/jacuzzi, they should be redress again. For do that, I think I need a script, a spell, and an effect, but I don't know how to make it. In some mods, there are this FX, but I couldn't figure it out. If you can help me, I'll really appreciate... Sincerely Yours,
ijakor Posted July 2, 2016 Posted July 2, 2016 Have a look https://forums.nexusmods.com/index.php?/topic/1989959-how-do-you-program-pools-to-strip-npcs-on-entry/
nehaberlan Posted July 2, 2016 Author Posted July 2, 2016 Have a look https://forums.nexusmods.com/index.php?/topic/1989959-how-do-you-program-pools-to-strip-npcs-on-entry/ Thanks a lot...
nehaberlan Posted July 16, 2016 Author Posted July 16, 2016 Have a look https://forums.nexusmods.com/index.php?/topic/1989959-how-do-you-program-pools-to-strip-npcs-on-entry/ Hi again, I tried "Tutorial by "subtanker" on how to make npcs go skinny-dipping. https://forums.nexusmods.com/index.php?/topic/1081510-tutorial-by-subtanker-on-how-to-make-npcs-go-skinny-dipping/ I did everything step by step, but I was not successful. Or, is it tutorial just for NPC's not for PC? Another question: Are the Scripts in that tutorial completely correct? Here it is all tutorial: This is the tutorial "subtanker" created for me so I could make npcs take off/on clothing when entering/exiting the pool. here is a step by step process: 1 - Create a new magic effect and call it LVENakedEffect change the following: Effect Archetype: Script Casting Type: Constant Effect Assoc. Item 1: None FX Persist: (check this box) Hide in UI: (check this box) Now when those are right hit ok, Then edit the object to pull up the same window you just hit ok on. You should now be able to add scripts so click "add" at the bottom right and create a new script called "LVEnakedeffectscript" and add the following as its source __________________________________________________________________ Scriptname LVEnakedeffectscript extends activemagiceffect armor property JewelryRingGold auto Event OnEffectStart(Actor akTarget, Actor akCaster) ;debug.notification("effect script: adding effect") akTarget.unequipall() endEvent Event OnEffectFinish(Actor akTarget, Actor akCaster) ;debug.notification("effect script: removing effect") akTarget.additem(jewelryringgold,1,true) akTarget.equipitem(jewelryringgold,false,true) akTarget.removeitem(jewelryringgold,1,true) endEvent __________________________________________________________________ Make sure you auto-fill it's properties as well.(edit the script source and save it again, this should enable you to use auto-fill.) 2 - Go to spells and make a new spell called "LVENakedSpell" then change the following: Casting: Constant Effect Ignore resistance: (check this box) Auto-Calculate: (uncheck this box) then add a new effect and make that effect "LVENakedEffect" and set it's duration to a very long time, like 10000 seconds. Hit ok on this window and on the spell window. 3 - add a "defaultActivateSelfTRIG" object to each location you want people to take off their clothes. Edit each instance and remove the default script. Then create a new script, call it LVENakedActivator then add this code as it's source. __________________________________________________________________ Scriptname LVENakedActivator extends ObjectReference spell property LVENakedSpell auto Event OnTriggerEnter(ObjectReference triggerRef) ;debug.notification("found something!") Actor akactionRef = triggerRef as Actor if (akActionRef != game.getplayer() && !akActionRef.isincombat()) ;debug.notification("effect applied") LVENakedSpell.cast(akactionref,akactionref) endif endEvent Event OnTriggerLeave(ObjectReference triggerRef) Actor akactionRef = triggerRef as Actor if (akActionRef != game.getplayer()) ;debug.notification("effect removed") akActionRef.dispelspell(LVENakedSpell) endif endEvent __________________________________________________________________ make sure to auto fill the properties of each instance. Also those smileys arn't supposed to be there, whenever I type " ) this forum makes a smiley out of it so just replace each smiley with ) and it should be fine.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.