Jump to content

Need help with inserting created items to campaign play


dragonagefun

Recommended Posts

Hey guys,

 

I need a quick walk-through on how to insert an item I created into campaign play. For example, I created an item with the toolset, lets call it Sword_of_Awesome. I don't want to just import this item into my party inventory... which is the only thing I know how to do at this moment. I want this Sword_of_Awesome to drop from the High Dragon. Essentially, I need to modify the High Dragon's loot table in the original campaign to add this item I created, and to drop it during regular game play.

 

Anyone care to elaborate how I can do this? I browsed around and I coudn't find any answers. The only thing people mention are scripts that import items to your inventory, which I already know how to do... but do not wish to do.

Link to comment
Share on other sites

well, have you tried loading up the dragon creature itself, adding your custom item into its inventory and selecting it as "droppable?" im guessing since there isnt a lot of dragon encounters, you wouldnt have to edit any sort of loot table/treasure type since you dont want other enemies dropping it randomly

 

thats what i've done to a handful of ambient life npcs, putting a "steak bone" gift on dogs if you steal, or a sword as loot for an enemy lt. rank, etc

 

perhaps what you seek is more complicated, but its all i could think of as im new as well

Link to comment
Share on other sites

well, have you tried loading up the dragon creature itself, adding your custom item into its inventory and selecting it as "droppable?" im guessing since there isnt a lot of dragon encounters, you wouldnt have to edit any sort of loot table/treasure type since you dont want other enemies dropping it randomly

 

I would try to avoid doing it that way since it will conflict with any other mod that modifies that same creature's file.

 

If you want it to drop from a specific creature in a specific zone, then use the PRCSCR functionality to run a script that fires when entering the zone that contains the creature. Then use GetObjectByTag to get the creature and CreateItemOnObject to add your item to that creature's inventory. Use a plot flag to make sure this only happens once.

 

The benefit of doing it this way is that the item will still be added even if another mod directly overrides that creature's UTC file, and any number of mods can add inventory to the same creature in this same manner without conflicting.

Link to comment
Share on other sites

thank you so much for that, any form of knowledge is so very extremely welcome in this stage, really it is :]

 

im going to read links, and try applying my stealing dog-treats from animals concept. i knew modifying each individual loadout was "butchery", taking up extra resources and of course asking to clash with other mods etc.... but you take results anyway you can when you start, ya know? it keeps you motivated to improve

 

crap, didnt mean to derail thread - its just exciting for me at this stage, shhhhhh no rants

 

p.s. i will let you know when i get it working as a sign of appreciation & confirmation you didnt waste your time, thanks again friend!! ;D

Link to comment
Share on other sites

well, have you tried loading up the dragon creature itself, adding your custom item into its inventory and selecting it as "droppable?" im guessing since there isnt a lot of dragon encounters, you wouldnt have to edit any sort of loot table/treasure type since you dont want other enemies dropping it randomly

 

I would try to avoid doing it that way since it will conflict with any other mod that modifies that same creature's file.

 

If you want it to drop from a specific creature in a specific zone, then use the PRCSCR functionality to run a script that fires when entering the zone that contains the creature. Then use GetObjectByTag to get the creature and CreateItemOnObject to add your item to that creature's inventory. Use a plot flag to make sure this only happens once.

 

The benefit of doing it this way is that the item will still be added even if another mod directly overrides that creature's UTC file, and any number of mods can add inventory to the same creature in this same manner without conflicting.

 

 

Ahhh, i knew i should've stuided computer science instead of business in college. I have spent the last week trying to piece together this foreign language, and it's giving me a headache. I spent about 5 hours trying to understand the script in the Campaign Play that makes the High Dragon fly around and pounce. No dice, have no clue what i'm reading after 5 hours of cut and paste bits and pieces -> try to export.

 

i will try to decifer the read above and see if i can understand it. on a brighter note, i did it the "cheap" way, but going to single-player module, creating the item there, and importing it directly to the dragon's loot table as the previous poster mentioned. it works, of course, with the same exact problem you mentioned... which is when there was an override file, the item doesn't drop.

Link to comment
Share on other sites

 

it is in fact intimidating for newcomers or people with syntax deficit disorder (lol) such as myself, just try to look at this way..at least this is how i see it

if we accomplish getting the PRCSCR to work we will have broken through the barrier of mystery and i honestly believe it'll open a Lot of doors from there, and make other "tutorials" or templates 10x more easy to comprehend and apply

 

i havent looked at this particular area for more than a few hours, the rest of the toolset has swept my life away, but i promise when i get around to doing this, i will post my findings and method as user friendly as i can (the wikis can be a bit....robotic with explanations), coders and seasoned scripters do this as 2nd nature, the way we may do other things like 2nd nature that may seem difficult to them, and of course you can do the same if you achieve this first

 

if you get burned out, you can always take a break for a few days and continue doing something else you are familiar with for overall progress, and come back these shark infested waters when you're ready to take another stab at it

i hate to sound like an dr.phil knock-off motivational speaker but im sincere and i believe in what i said

 

damn it, i believe in YOU dragonagefun!

"we're gonna get you excited about your life - dr phil intro theme"

 

lol!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...