So, I want to make a transforming creature NPC.

Post » Sun Jan 22, 2017 10:15 am

My plan is to create an NPC companion creature that transforms when prompted in dialogue. I'm assuming that the best way to go about it is to create two different creatures for the different forms, and then use GetPos and enable/ disable. Maybe even use some fancy vfx nonsense. I've never done a script like this before, though, and I don't have a reference. Am I heading in the right direction here? Or is there a better way?

User avatar
Bellismydesi
 
Posts: 3360
Joined: Sun Jun 18, 2006 7:25 am

Post » Sun Jan 22, 2017 6:03 pm

if you wanrt it to work in interiors you probably would need placeitem/placeatme and setdelete instead of position/positioncell/setpos, as you can't get/use the current interior cell name with standard scripting (you could use MWSE, but if you are not experienced with standard scripting it may be even more difficult)

User avatar
Ludivine Dupuy
 
Posts: 3418
Joined: Tue Mar 27, 2007 6:51 pm

Post » Sun Jan 22, 2017 2:42 pm

Yeah, MWSE is probably beyond me right now lol. How do you use items to control NPCs? Is it similar to how mods allow the player to pick up and place mannequins?

User avatar
Cat Haines
 
Posts: 3385
Joined: Fri Oct 27, 2006 9:27 am

Post » Sun Jan 22, 2017 5:23 am

*okay*



So I'm looking at these commands here http://www.uesp.net/morrow/editor/mw_cscommands.shtml#placeatme and here http://www.uesp.net/morrow/editor/mw_cscommands.shtml#setdelete , and I think that I pretty much get these two. I really like this page; it even gives tips for how to make them work well. I looked at the placeitem page as well, but I'm still not really sure how that one applies to this situation.

User avatar
Suzie Dalziel
 
Posts: 3443
Joined: Thu Jun 15, 2006 8:19 pm

Post » Sun Jan 22, 2017 8:58 pm

placeitem may be more precise than placeatme if destination is not "safe" (e.g. on the air), it needs some support variables/extra code to get object coordinates though e.g.


float x1
float y1
float z1
float a1
set x1 to GetPos X
set y1 to GetPos Y
set z1 to GetPos Z
set a1 to GetAngle Z
PlaceItem itemId x1 y1 z1 a1
User avatar
Rhysa Hughes
 
Posts: 3438
Joined: Thu Nov 23, 2006 3:00 pm


Return to III - Morrowind