Jump to content

Not Sure Where To Put This: I Need Help With A Script!


GMac2021

Recommended Posts

Posted

I am working on a mod that I had hoped would be a surprise to a "specific someone" on this board. For this mod, I need to figure out creature packages - specifically, horses.

 

Google - as always - is useless. As is the UESP, their "Wiki", and The Nexus. I did get SOME information from a German language site, but I don't speak German :(

 

For this mod, I NEED to figure out how horse packages work. Example: http://cs.elderscrolls.com/index.php/IsPlayersLastRiddenHorse . A typically useless page... Not even a proper syntax example.

 

Useless. Bah!

 

What I need help with is this: A female who is at least lvl twenty (and has over $25K septims in her possesion) buys a horse. To actually RIDE that horse, she needs to remove her pants. [see pics below]. I made it that far, no problem. What I need to do is have her put her pants back ON after she dismounts.

 

Here's the script, followed by an illustrated list of my failures (just for shites and gaggles...)

 

The script:

 

 

She buys the horse, her pants come off when she mounts it. Her pants don't get reequipped when she dismounts. If I equip a new outfit manually, she drops her pants when she re-mounts the horse. I KNOW I'm over-thinking this. Tunnelvision is a bitch...

 

scn kkkPlayerKillerHorseScript

Short TellPC
Short Mounted
Short kkkDoOnce

Ref kkkBottom

Begin OnPackageEnd kkkHorseReturnOlive
If TellPC == 0 && Mounted == 1
	If ( GetInCell kkkOlivesKimonoStore == 1 ) || ( GetInCell IC == 1 )
		Message "Player Killer has returned to Olive's Kimono Store."
		Set TellPC to 1
	EndIf
EndIf
End

Begin OnActivate
if ( kkkOliveStoreQuest.BuyHorse == 1 )
if ( kkkDoOnce == 0 )
	Set Mounted to 1
	Set TellPC to 0
	Set kkkBottom to Player.GetEquipmentSlotMask 8
	Set kkkDoOnce to 1
	Player.UnequipItemNS kkkBottom
EndIf
EndIf
Activate
EvaluatePackage
End


Begin Gamemode
if ( kkkDoOnce == 1 )
if ( PlayerRef.IsRidingHorse == 0 )
;Player.EquipItemNS kkkBottom - THIS BREAKS IT! Everything else works fine...
Set kkkDoOnce to 0
endif
endif	
End

 

I've tried to EquipItemNS kkkBottom a thousand (ok, maybe eight...) different ways. Its time for me to back away and ask the experts. You folks.

 

 

 

The pictures:

 

 

 

 

I can take my pants off, but I can't put them back on! I am REALLY overthinking this... There was a young Cowgirl who lived on the range,,, Her horse and her saddle were her only companions... (All apologies to James Taylor...)

 

Please help.

 

 

Guest ThatOne
Posted

Well, you can always check how they do it in the Lovers modes... Easiest way to learn something new is studying how someone else did it.

 

Also, I don't know if this will work, but you can try making kkkBottom a quest script variable and using .kkkBottom in your script.

Posted

I have no problem getting them to take their clothes off - and put them back on - any other time, the horse seems to be messing things up, though.

 

I'll come back to it in a bit. I'm most likely thinking too hard about something simple.

 

Thanks for the reply :)

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...