[REQ] Interactable butterfly/moth statics

Post » Fri Sep 10, 2010 4:34 pm

Hey guys, I've had an idea for a sidequest in a mod I'm making, where the player has to catch certain insects for an Alchemist, so he can grind them up into alchemy ingredients or whatever.
My basic plan is to have it so when the player activates a butterfly (which as they move around pretty quickly, would probably require some good reflexes!) it adds a "butterfly" item to their inventory (provided they have an empty bottle to hold them in, Zelda-style), and then the bug itself is deactivated for a certain amount of time, then respawns.

The thing is, the butterflies (Landscape\MiscButterfly01.nif and so on) are static items, and therefore can't really be activated. And even if it was an activator, I have a feeling it wouldn't work quite the way I need it to!

Is anyone able to modify the meshes for me? :)
User avatar
Veronica Flores
 
Posts: 3308
Joined: Mon Sep 11, 2006 5:26 pm

Post » Sat Sep 11, 2010 4:33 am

phitt proved me way wrong.
User avatar
Joanne
 
Posts: 3357
Joined: Fri Oct 27, 2006 1:25 pm

Post » Sat Sep 11, 2010 3:43 am

You can use non_collidable collision (same collision plants have) to prevent the butterflies from pushing anything around. I've added collision to the butterflies, download is http://www.mediafire.com/?omygyqliudy. Tested in game and it works, but it is really hard to catch them.

The only way to make your idea work for all butterflies is to replace all butterfly instances in the game with your activator type butterflies. That is very simple to do, just use the search and replace function to replace all butterflies in the Tamriel worldspace and any other worldspaces that may have butterflies in them.

Ideas for a script:

scn ButterflyScriptbegin OnActivateplayer.additem DeadButterflydisableendbegin OnResetif getdisabledenableendifend


That way the butterflies will reset just like any other 'ingredient' when the cell is reset.
User avatar
Ann Church
 
Posts: 3450
Joined: Sat Jul 29, 2006 7:41 pm

Post » Fri Sep 10, 2010 5:46 pm




i did not know you could do that, but after you saying that i realise that its done often in the game....

Ill remeber that now.
User avatar
Jenna Fields
 
Posts: 3396
Joined: Mon Dec 11, 2006 11:36 am

Post » Sat Sep 11, 2010 3:19 am

You can use non_collidable collision (same collision plants have) to prevent the butterflies from pushing anything around. I've added collision to the butterflies, download is http://www.mediafire.com/?omygyqliudy. Tested in game and it works, but it is really hard to catch them.

The only way to make your idea work for all butterflies is to replace all butterfly instances in the game with your activator type butterflies. That is very simple to do, just use the search and replace function to replace all butterflies in the Tamriel worldspace and any other worldspaces that may have butterflies in them.

Ideas for a script:

scn ButterflyScriptbegin OnActivateplayer.additem DeadButterflydisableendbegin OnResetif getdisabledenableendifend


That way the butterflies will reset just like any other 'ingredient' when the cell is reset.


If I was a woman, I'd totally bear your children right now. That is awesome. :D
User avatar
Ash
 
Posts: 3392
Joined: Tue Jun 13, 2006 8:59 am


Return to IV - Oblivion