Cormyr and the Dalelands

General Category => Suggestions & Ideas => Suggestions Archive => Topic started by: dagesh on Apr 18, 2014, 12:34 AM

Title: Blank Scrolls[Pending Haks]
Post by: dagesh on Apr 18, 2014, 12:34 AM
Can we stack these bad boys?

I'll scrap up a stack check script for x2_inc_craft if necessary.
Title: Blank Scrolls[Pending Haks]
Post by: Not Batman on Apr 18, 2014, 04:21 AM
The problem with stacking them, is that sometimes they will then take every scroll and make it into a scroll that you're trying to scribe.
Title: Blank Scrolls[Pending Haks]
Post by: dagesh on Apr 18, 2014, 10:18 AM
The following has been tested and works as desired:



in "x2_inc_craft" replace line 554 [[DestroyObject (oSpellTarget);]] with this:



    int nStack = GetItemStackSize( oSpellTarget );

    if( nStack > 1 )
        SetItemStackSize( oSpellTarget, --nStack );
    else
        DestroyObject( oSpellTarget );





You could also use the same exact code at line 468 for potions and 647 for wands.



Important Note: x2_inc_spellhook & x2_pc_craft must both be compiled and included in the module's list of compiled scripts.
Title: Blank Scrolls[Pending Haks]
Post by: Vincent07 on Apr 18, 2014, 04:12 PM
Cool.  I'll make the Baseitem.2da changes for the update then.
Title: Blank Scrolls[Pending Haks]
Post by: dagesh on Apr 19, 2014, 02:02 AM
Woot!
Title: Blank Scrolls[Pending Haks]
Post by: The Red Mage on Apr 19, 2014, 01:45 PM
Nice work.
Title: Blank Scrolls[Pending Haks]
Post by: Garage Trashcan on Apr 19, 2014, 03:09 PM
Thanks, dagesh, for joining CD.

No, really, you keep throwing things at us that were like, "This'll NEVER work!"

And then you're like, "Nope, it totally does. Here."