Not Used: Take back those missiles!
2 posters
Page 1 of 1
Not Used: Take back those missiles!
Hello, all!
Came across this Recoverable Missile hak, while crawling through the Vault - I think it could be interesting, if could be done. Any thoughts?
Not the stack size alterations, just teh ability to recover missiles.
Came across this Recoverable Missile hak, while crawling through the Vault - I think it could be interesting, if could be done. Any thoughts?
Not the stack size alterations, just teh ability to recover missiles.
Eric of Atrophy- Ludicrous Level
- . :
Number of posts : 4113
Age : 51
Location : Kea'au, HI, USA
Main Character : The Vault of Atrophy
NWN Username : atrophied_eric
DM Name : Dungeon Mistress Anaurra Lide
Time Zone : GMT - 10:00 EST (We have our own time zone!)
Registration date : 2008-06-06
Re: Not Used: Take back those missiles!
Yeah, recoverable ammo would be sweet... I think it's been looked into before... but the bits from the scripts that this adds is listed below..
By the description it needs to be added to the default OnDamaged script (nwn_c2_default6).... it looks like it should work, but for some reason I think that scripts had/have a problem with getting the "ammo" inventory slots (there was a thing a while~aka some time~ as "wildshape bullets".. they didn't work because the scripts couldn't find the bullet)... ... .... ...
Would be awesome to see this, especially for ammo users that modify a stack of ammo using the dwarf.. maybe using a CopyItem route instead of a CreateItem route ?... ... ... ..
- Spoiler:
//recoverable missile
object oDamager=GetLastDamager();
object oAmmo;
object oItem=GetItemInSlot(INVENTORY_SLOT_RIGHTHAND,oDamager);
if (GetWeaponRanged(oItem))
{
if (GetBaseItemType(oItem)==BASE_ITEM_LONGBOW || GetBaseItemType(oItem)==BASE_ITEM_SHORTBOW)
{
oAmmo=GetItemInSlot(INVENTORY_SLOT_ARROWS,oDamager);
// if (d4()==1) // here put your saving throw
SetDroppableFlag(CreateItemOnObject(GetResRef(oAmmo)),TRUE);
return;
}
if (GetBaseItemType(oItem)==BASE_ITEM_LIGHTCROSSBOW || GetBaseItemType(oItem)==BASE_ITEM_HEAVYCROSSBOW)
{
oAmmo=GetItemInSlot(INVENTORY_SLOT_BOLTS,oDamager);
//if (d4()==1) // here put your saving throw
SetDroppableFlag(CreateItemOnObject(GetResRef(oAmmo)),TRUE);
return;
}
if (GetBaseItemType(oItem)==BASE_ITEM_SLING)
{
oAmmo=GetItemInSlot(INVENTORY_SLOT_BULLETS,oDamager);
// if (d4()==1) // here put your saving throw
SetDroppableFlag(CreateItemOnObject(GetResRef(oAmmo)),TRUE);
return;
}
// if (d4()==1) // here put your saving throw
SetDroppableFlag(CreateItemOnObject(GetResRef(oItem)),TRUE);
}
}
By the description it needs to be added to the default OnDamaged script (nwn_c2_default6).... it looks like it should work, but for some reason I think that scripts had/have a problem with getting the "ammo" inventory slots (there was a thing a while~aka some time~ as "wildshape bullets".. they didn't work because the scripts couldn't find the bullet)... ... .... ...
Would be awesome to see this, especially for ammo users that modify a stack of ammo using the dwarf.. maybe using a CopyItem route instead of a CreateItem route ?... ... ... ..
RustyDios- High Epic Level
- Number of posts : 2271
Age : 40
Location : England // Getting lost in Aenea
Main Character : Jay Braysin, The Wandering Shadow, Protector of Nektaria, Talon's Eternal Foe
Other Character : Shouri Braysin, The Shimmerstar's Moonlight Sorceress
Other Character. : Grace Fularras, Walking Library , Cleric of Mystara
Other Character.. : See my sig ... And here too ...
NWN Username : RustyDios
Time Zone : GMT (England, DST)
. :
Registration date : 2008-07-28
Re: Not Used: Take back those missiles!
I dunno how the mechanics would work, it's been ages since I've scripted anything ... but I figure if anyone can figure it out, it's !
Eric of Atrophy- Ludicrous Level
- . :
Number of posts : 4113
Age : 51
Location : Kea'au, HI, USA
Main Character : The Vault of Atrophy
NWN Username : atrophied_eric
DM Name : Dungeon Mistress Anaurra Lide
Time Zone : GMT - 10:00 EST (We have our own time zone!)
Registration date : 2008-06-06
Similar topics
» Used: Improvement Idea: Rod of Missiles
» hi all ! im back.
» Hello all im back! :)
» Offline Status / Back Online
» I'll be back soon...
» hi all ! im back.
» Hello all im back! :)
» Offline Status / Back Online
» I'll be back soon...
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum