First time modder, wonder if I could get help with a script.

Post » Wed May 11, 2016 6:33 pm

I'm working on a big housemod and I had an idea for something I could use in my "robing/disrobing room" which is basically the antechamber before the pool, sauna and hot tub. When I was browsing modders' resources at Great House Fliggerty I stumbled onto Stuporstar's Wearable Towels mod, and I was wondering if there was a way to script a piece of furniture like a dresser or something so that when you activate it, a menu comes up that lets you change clothes into either a towel, a bathrobe, underwear, or back to the gear you had equipped, automatically swapping it out and storing what you're not wearing in the container. This way you could simulate actually disrobing for getting in the pool, sauna and hot tub, and then simulate drying off after you're done and getting back into your clothes.



I have very limited modding experience in general (though I've learned a lot in the process of making this mod) and no scripting experience whatsoever. It'd be great if someone knew how to do this, or at least gave me a few pointers or scripting how-to resources. Thanks!



I have found and am currently trying to read GhanBuriGhan's Morrowind Scripting for Dummies guide, hopefully I'll eventually be able to make heads or tails of the wisdom it is trying to impart, but just upon a cursory glance-over for someone like me with literally no experience in any form of code whatsoever, it seems pretty daunting.

User avatar
Claudia Cook
 
Posts: 3450
Joined: Mon Oct 30, 2006 10:22 am

Post » Wed May 11, 2016 10:06 am

You can swap out clothes pretty easily with just the "additem" and "equip" functions.


I wouldn't recommend trying to stash the players equipment into a container though, it would need MWSE and you still wouldn't be able to preserve the current conditions/charges/etc.

User avatar
Harry Hearing
 
Posts: 3366
Joined: Sun Jul 22, 2007 6:19 am

Post » Wed May 11, 2016 8:47 pm

Alright, I'll look into those functions in the scripting guide and see what I can figure out. I have literally no experience with scripting though.



Also, so the container should still be good for storing the towels in though, right? And being able to move them back and forth in your inventory? Would that need MWSE as well?



Edit: Wait, I do have MGE XE installed. Doesn't that come with MWSE?

User avatar
flora
 
Posts: 3479
Joined: Fri Jun 23, 2006 1:48 am

Post » Wed May 11, 2016 11:28 am

Yea, MGEXE includes MWSE. But you may not want to force MWSE requirement in your mod unless absolutely necessary. OpenMW is currently not compatible with MWSE.


Storing and moving the towel between the player and the container should be straightforward enough using Additem, RemoveItem, and Equip functions.

User avatar
Robert Devlin
 
Posts: 3521
Joined: Mon Jul 23, 2007 2:19 pm

Post » Wed May 11, 2016 5:46 pm

How do I tell if a script requires MWSE or not? I've already taken stuff from about a dozen different modders' resources, some of which have come with their own scripts. Pretty sure none of them said that MWSE was required in their descriptions or readmes, but I still wouldn't know the difference if I came across one.

User avatar
KU Fint
 
Posts: 3402
Joined: Mon Dec 04, 2006 4:00 pm

Post » Wed May 11, 2016 9:40 pm

If you do "recompile all" in the TESCS script window it'll spew out errors on MWSE scripts. Be sure NOT to save your mod after clicking that option though.

User avatar
Chloe Mayo
 
Posts: 3404
Joined: Wed Jun 21, 2006 11:59 pm

Post » Wed May 11, 2016 6:31 am

Duly noted. And thanks for all the info! You've been a great help.

User avatar
Taylor Bakos
 
Posts: 3408
Joined: Mon Jan 15, 2007 12:05 am


Return to III - Morrowind