Jump to content

Funny Nude Spell


MrSly

Recommended Posts

Once you use OBSE’s to know what is in the inventory, you can do whatever you want (well . . .kink of)

 

In this case, spawning seems the most appropriate. You may create an algorithm to spawn the items in a circle around the NPC (in the video, I spread them as a ‘carpet’).

 

But the items will just fall to the ground around the NPC. I am not familiar with spells, so I don’t know if there would be some kind of spell that would push the items away from the NPC and give you the explosion effect you want.

Link to comment
Share on other sites

Once you use OBSE’s to know what is in the inventory, you can do whatever you want (well . . .kink of)

 

In this case, spawning seems the most appropriate. You may create an algorithm to spawn the items in a circle around the NPC (in the video, I spread them as a ‘carpet’).

 

But the items will just fall to the ground around the NPC. I am not familiar with spells, so I don’t know if there would be some kind of spell that would push the items away from the NPC and give you the explosion effect you want.

Well, if the OBSE is required for the neat effect, then I presume there can be no choice :(

 

Well, actually,it'd only have to create an invisible heavy blast that deals no damage just after spawning the items, but that would probably turn the spell hostile. However this should work, as I remember using destruction spells to move things around by blast (Ayleid stones, books etc.) Although, the shrapnels of the oblivion-trigger-bomb thingies seem to appear as moveable items, so could this still be used?

 

...and the image of a NPC rising from the ground, spinning wildly, until exploding it's inventory around, is created in my mind o_O

Link to comment
Share on other sites

Your right, this sounds funny! Cant wait to shoot all the mage babes with this!!

 

Did you ever get the code you asked for to loop thru the inventory? I thought I saw that in some mod about changing clothes. Can't remember which one it was tho. Maybe I could look htrough all the clothes mods. or that might be a bit of overkill for me now. Maybe you could look through them. I'm pretty sure its in there somewhere.

 

Looking forward to hearing you have this one done!

 

:thumbsup:

Link to comment
Share on other sites

No, I haven't. But I think you're right, I'm sure it's out there somewhere. I'll probably have to go look at some companion mods where they repair armor or some such thing to find the code to loop through the inventory. I just used the command UnequipAll to make the target nude. So I haven't used code to loop an inventory before. I might have some time this week to see what I can find. And as I recall, it wasn't very difficult, but I also can't remember where I saw it.

 

I'm thinking that if I just drop all of the target's items in front of them, I can use an area of effect spell to scatter them randomly. I think if I "created" the items outside of the target, then somehow "remove" them from their inventory, it would create save game bloat. I believe I read somewhere that using PlaceAtMe or the like actually adds something like 64bytes to the saved game. If a target has 10 items on them, it could increase the savegame size by 640bytes. I know, not a big deal, but do it to 500 targets with 10 items each, not you're talking 320K. Again, I'm not sure about any of this, just something I read somewhere. I think it's mentioned on the CS wiki page.

Link to comment
Share on other sites

In post #9 I gave you a link to the code.

 

You are right about the bloating: every item placed in the world uses ~70 bytes of savegame space.

And it does not matter if you use PlaceAtMe or Drop, as the bloating that is usually mentioned is related to the engine not removing those bytes after the item is removed from the game.

 

OBSE 16 will have a function to remove the items AND remove the record.

 

In your case, you should figure out a way to remove the items in such a way that those bytes are also removed.

I cant imagine how to do it without some fancy scripting and Pluggy.

 

I am not familiar with spells. Maybe you can cast a spell on each item that removes it after a few minutes, if the player does not ´pick it up.

Link to comment
Share on other sites

Wow, QQuix, I totally missed that link. I just saw the other ones! Thanks for the link. I'm sure I'll probably have to use OBSE for this. Not a big problem, just one more thing I'll have to learn. But I'll have to learn it at some point anyway... :)

 

That's an interesting idea, casting an individual spell on each item. Otherwise, I don't have any idea how I'd get rid of each item. I guess I was thinking they would just disappear after 3 days. Maybe not.

 

Well, first steps first. I'll see what I can do to at least have the target drop each item first. Might be able to get to that this week.

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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