Hi i'm new to this but I cannot get one thing working. The script I am
using works wonders... It adds items to newly created chars or ones
that I load. Except 1 problem. If I equip my items on a character
besides my Main, it will give me the items the other char is using
again (For instance the angelicshield and swordoftheangelic on
Alistair, I will get those again when I load, but not the ones my character is
wearing.) I would like to stop this from happening. I have tried Plot
flags but always get a constant_h.nss error... Or when they do not have
errors it keeps giving me the items anyhow.
So can anyone help me modify the script to check all party members, not just my main? (Maybe even those in Party Camp? If Possible?) Can I get a Bioware dude to help maybe? Anyone?
Also for those of u
whose items are not showing up, export without dependents, for both the
script and items then go to Documents/Bioware/Dragon
Age/packages/core/override/toolsetexport > Delete all in this
folder. Load the game and should work from there.
Here is a copy of the code I use, what do I need to add to get it to not add items if another party member is using them???
Another
note for plot... I have tried it but for some reason it doesn't change
to TRUE; and it just adds the items every load.
I Do not take credit for this script for it is a little bit of everything I have found useful from others work...
// ---------- Script Starts Here ----------
#include "utility_h"
#include "wrappers_h"
#include "events_h"
void main()
{
event ev = GetCurrentEvent();
int nEventType = GetEventType(ev);
object oPC = GetHero();
int nDoOnce = GetLocalInt(OBJECT_SELF, "QUICKITEMADDED");
if ( nDoOnce != 1 )
{
switch(nEventType)
{
case EVENT_TYPE_CHARGEN_END:
case EVENT_TYPE_MODULE_LOAD:
{
int nHas1 = CountItemsByTag(oPC, "ancestralamulet");
int nHas2 = CountItemsByTag(oPC, "ancestralmirror");
int nHas3 = CountItemsByTag(oPC, "ancestralrobe");
int nHas4 = CountItemsByTag(oPC, "ancestralwrap");
int nHas5 = CountItemsByTag(oPC, "daggeroftheangelic");
int nHas6 = CountItemsByTag(oPC, "ringoftheancients");
int nHas7 = CountItemsByTag(oPC, "ringofthemagi");
int nHas8 = CountItemsByTag(oPC, "swordoftheangelic");
int nHas9 = CountItemsByTag(oPC, "swordofthedamned");
int nHas10 = CountItemsByTag(oPC, "swordofthedemented");
int nHas11 = CountItemsByTag(oPC, "shieldoftheangelic");
// If we do not, then we add it to the inventory
if ( nHas1 == 0 )
UT_AddItemToInventory(R"ancestralamulet2.uti");
if ( nHas2 == 0 )
UT_AddItemToInventory(R"ancestralmirror2.uti");
if ( nHas3 == 0 )
UT_AddItemToInventory(R"ancestralrobe2.uti");
if ( nHas4 == 0 )
UT_AddItemToInventory(R"ancestralwrap2.uti");
if ( nHas5 == 0 )
UT_AddItemToInventory(R"daggeroftheangelic2.uti");
if ( nHas6 == 0 )
UT_AddItemToInventory(R"ringoftheancients2.uti");
if ( nHas7 == 0 )
UT_AddItemToInventory(R"ringofthemagi2.uti");
if ( nHas8 == 0 )
UT_AddItemToInventory(R"swordoftheangelic2.uti");
if ( nHas9 == 0 )
UT_AddItemToInventory(R"swordofthedamned2.uti");
if ( nHas10 == 0 )
UT_AddItemToInventory(R"swordofthedemented2.uti");
if ( nHas11 == 0 )
UT_AddItemToInventory(R"shieldoftheangelic.uti");
break;
}
}
SetLocalInt(OBJECT_SELF,"QUICKITEMADDED", 1);
}
}
// ---------- Script Ends Here ----------





Retour en haut






