by following various tutorials, to create some new weapons and armor
using standard items in Dragon Age Origins from the toolset. I am
merely adding properties and such, not changing textures and so on. I
wrote a script which puts the stuff in the game into my inventory. My
items showed up in the game, and I can use them from almost the
beginning, through Ostagar, and on into Lothering until I get to the
tavern there. I can enter the tavern, kill Logain's minions there,
trade with the merchant in the tavern and get his quest for poison and
so on. Then things go badly! I cannot leave the tavern without
crashing the game. If I remove my items from myself and my companions
(I spawn several of each item and give them to various of my companions
as well), then I can leave the tavern... though I am naked and so are
some of my companions. Once outside I can re-equip my items and
proceed, even doing battle and so on. If I try to enter the Chantry in
Lothering, the same thing occurs. I must un-equip all items created
from myself and my companions to enter the building (go through a
transition) whereupon I can complete a quest, ask the Rev. Mother to
free Sten etc. I can then leave, re-equip, kill the darkspawn on the
road out of town, talk to Bohden and so on, only to crash again when
transitioning to the next scene, which would be the first party camp I
believe.
My question is WHY IS THIS HAPPENING? I played though
several levels previous to Lothering with no problem, and indeed had
equipped myself and Alaister and even Morrigan with some of my items...
but then WHAM! NO JOY once I enter the tavern at Lothering and get
Lilliana in the party instead of the hound. What gives? True... they
are relatively powerful items... but still, I have played the game
through perhaps 8-9 timese before, and a couple of those times with "God
Items" developed by someone else and they didnt crash the game. So
it's not that. What makes Lothering so touchy and why was I able to use
everything before that? What can I do to fix this... I really like my
items. Please give me some hints.
I am using Vista64, the 1.01
release of the toolset, and have vers. 1.03 of the game from Steam. The
folder is the main folder (\\\\). The items are created in the "core
game resources" module using my module name as the "owner", and the
script as my script name as the "Script" and the extended Module as
"Single Player" as the most recent tutorials I could find suggest. If
any other information is needed that I can provide I would certainly do
so to help me solve this vexing problem. Oh... and I played Awakening
once but my items never did show up in there... so I dont understand
that either... but then... a lot of things dont show up in Awakening,
and in fact I got robbed of the armor I did have in the Silverite mine,
never to see it again, though my companions regained their stuff. But I
digress... Please tell me what is happening in Origins and I will deal
with Awakening later!
Here is the script I am using...
// All Module Events
#include "utility_h"
#include "wrappers_h"
#include "events_h"
void main()
{
event ev = GetCurrentEvent();
int nEvent = GetEventType(ev);
Log_Events("",ev);
switch (nEvent)
{
case EVENT_TYPE_MODULE_LOAD:
{
// get the object which contains the player.
object oPlayer = GetHero();
int iItemCount = CountItemsByTag(oPlayer,"rdr_trigger_ring_01");
if(iItemCount == 1)
break;
object oTrigger = GetObjectByTag("rdr_trigger_ring_01");
if(!IsObjectValid(oTrigger))
UT_AddItemToInventory(R"rdr_amulet_01.uti",4);
UT_AddItemToInventory(R"rdr_armor_01.uti",2);
UT_AddItemToInventory(R"rdr_belt_01.uti",4);
UT_AddItemToInventory(R"rdr_boots_01.uti",2);
UT_AddItemToInventory(R"rdr_bow_01.uti",2);
UT_AddItemToInventory(R"rdr_gloves_01.uti",2);
UT_AddItemToInventory(R"rdr_helm_01.uti",2);
UT_AddItemToInventory(R"rdr_magestaff_01.uti",2);
UT_AddItemToInventory(R"rdr_ring_01.uti",4);
UT_AddItemToInventory(R"rdr_ring_02.uti",4);
UT_AddItemToInventory(R"rdr_sword_01.uti",2);
UT_AddItemToInventory(R"rdr_sword_02.uti",2);
UT_AddItemToInventory(R"rdr_trigger_ring_01.uti",1);
//object oAttribbook = GetObjectByTag("cdon_book_attrib");
//if(!IsObjectValid(oAttribbook))
//UT_AddItemToInventory(R"cdon_book_attrib.uti",99);
//object oSkillbook = GetObjectByTag("cdon_book_skill");
//if(!IsObjectValid(oSkillbook))
//UT_AddItemToInventory(R"cdon_book_skill.uti",99);
//object oTalentmbook = GetObjectByTag("cdon_book_talentm");
//if(!IsObjectValid(oTalentmbook))
//UT_AddItemToInventory(R"cdon_book_talentm.uti",99);
//object oTalentwbook = GetObjectByTag("cdon_book_talentw");
//if(!IsObjectValid(oTalentwbook))
//UT_AddItemToInventory(R"cdon_book_talentw.uti",99);
break;
}
default:
{
break;
}
}
}
The items that are commented out have never been loaded as I commented them out before I ever used this script in the game, but wanted to see if later I could use them. I first wanted to make sure the rest was working properly before complicating things this way.





Retour en haut






