Jump to content

DA2 item delivery scripts


Sunnie

Recommended Posts

Hello DA2 modders, those that haven't completely lost interest yet at any rate.

 

Since DA2 seems to have a lot of issues with conflicts in the easier delivery methods for item delivery (vaddi, merchants, rewards), and creating addin setups for DA2 is a huge nightmare that once installed cant be removed from a game in progress, the best way to deliver items is through a script that drops stand alone items into Hawkes inventory. Unfortunately, we don't have access to DA2s source for scripts, and at this point, only a couple coders have figured out the big changes from Origins > DA2 scripts. I am no coder, but would prefer to use a script to drop items into the game.

 

So, the big question... Does someone have a script source that works in DA2 for dropping items into inventory or the delivery chest, and would be willing to post said source for the rest of the modders to use? It would greatly help make everyone's mods more compatible with everyone elses mods.

 

Thanks!

Link to comment
Share on other sites

This is the kind of conversation that belongs in the public "DA2 Mod Talk" forum. Many, many new and would-be modders who don't happen to have 1000 D/Ls yet would like this sort of info so they can get better.

 

If the Sunnie gives permission, I'll move this thread to the other location.

Link to comment
Share on other sites

And what makes you think you need only Sunnies permission?

I may not want n00bs to read my answers, or questions!

Feel free to edit your post(s) to remove anything you believe isn't safe for the eyes of less competent/successful modders or the general public. :facepalm:

 

So far, as noted in my post, there has only been exactly the kind of info that is of very high value in the more general modding forums. This forum was not created to restrict that kind of thing from being shared. And in fact, the fear that it would become so is the most frequently expressed concern by those not able to view it. Had there been even a hint of a more... 'opinionated' discussion, I would never have made the suggestion.

 

And one of the tasks of a Moderator is to recognize when a topic happens to have been started in the wrong place and get it where it belongs...

 

[Edit: I would remove these last few posts if/when moved to the "DA2 Mod Talk" forum, so as not to confuse the readers.]

Edited by Thandal
added further info.
Link to comment
Share on other sites

There's nothing here that I have a problem with sharing.

Indeed I wan't everything worth sharing to be shared with everyone, so you have my permission.

 

But you do understand why I was taken aback and asked the question?

Just requiring permission from the OP, is not good enough. (IMHO) .... < Thor tryimg to act humble, and probably failing. :D

Link to comment
Share on other sites

np. [/trying to act non chalant and definitely failing :teehee: ]

 

I would never want to share a thread from this forum in which someone had posted a controversial, venting, ranting, or "imo" type of comment. After all. that kind of thing is why this forum was started: a safe place to do that without sparking a flamefest with the very ones who engender many of those feelings. :thumbsup:

 

But an "additem" script that doesn't depend on vaddi? That is DA2 modder gold! And it doesn't have any of the above attributes for being placed here as opposed to a more "public" location.

 

The reason I asked for Sunnie's permission is because, as the OP, if s/he had intentions of taking the topic in a more... personal direction I didn't want to throw a spanner in the works. :happy:

Link to comment
Share on other sites

Since I'm in a good mood cos I have 69 Kudos points to cuddle upto at night, heres a little tutorial:

 

TO ADD ITEMS TO PLAYERS INVENTORY BY USING SCRIPTS FOR DA2

================================================

 

There's probably a scripting program that you can use, but since I have Toolset installed ....

 

1. Open Toolset (Yes, DA-O toolset)

 

2. File > New > Script (Create new resource box appears)

 

Edit the Box:

 

Resource Name: (Write name of script). example 'TnT'

Module: Core Game Resources

Owner Module: Single Player

 

Press OK

 

TnT.nss Script opens for editing.

 

Copy and paste your script

 

EXAMPLE SCRIPT:

 

  void main() {
 CreateItemOnObject(R"gen_im_arm_glv_lgt_mera.uti", OBJECT_SELF, 1, "", TRUE);
 CreateItemOnObject(R"gen_im_arm_glv_lgt_merb.uti", OBJECT_SELF, 1, "", TRUE);
 CreateItemOnObject(R"gen_im_arm_glv_lgt_merc.uti", OBJECT_SELF, 1, "", TRUE);
 CreateItemOnObject(R"gen_im_arm_glv_lgt_merd.uti", OBJECT_SELF, 1, "", TRUE);
 CreateItemOnObject(R"gen_im_arm_glv_lgt_mere.uti", OBJECT_SELF, 1, "", TRUE);
}

 

Once pasted, compile script by:

 

Tools > Compile Script (or use Shortcut F7)

 

Check for displayed errors in lower window.

 

If all is good, you will find both TnT.nss and TnT.ncs files at:

BioWare\Dragon Age\packages\core\override\toolsetexport\

 

Only the ncs file is needed for your mod.

It's upto you if you want to share your source script as well.

A nss file is a source script file. (You can view nss files with notepad,etc)

 

Console command for mod users to get items:

 

"runscript tnt" (without the quotes).

 

If someone wants to edit the above to better grammer etc, please do so.

 

Thor925

Edited by Thor925
Link to comment
Share on other sites

 

EXAMPLE SCRIPT:

 

  void main() {
 CreateItemOnObject(R"gen_im_arm_glv_lgt_mera.uti", OBJECT_SELF, 1, "", TRUE);
 CreateItemOnObject(R"gen_im_arm_glv_lgt_merb.uti", OBJECT_SELF, 1, "", TRUE);
 CreateItemOnObject(R"gen_im_arm_glv_lgt_merc.uti", OBJECT_SELF, 1, "", TRUE);
 CreateItemOnObject(R"gen_im_arm_glv_lgt_merd.uti", OBJECT_SELF, 1, "", TRUE);
 CreateItemOnObject(R"gen_im_arm_glv_lgt_mere.uti", OBJECT_SELF, 1, "", TRUE);
}

 

Once pasted, compile script by:

 

Tools > Compile Script (or use Shortcut F7)

 

Check for displayed errors in lower window.

 

If all is good, you will find both TnT.nss and TnT.ncs files at:

BioWare\Dragon Age\packages\core\override\toolsetexport\

 

Only the ncs file is needed for your mod.

It's upto you if you want to share your source script as well.

A nss file is a source script file. (You can view nss files with notepad,etc)

 

Console command for mod users to get items:

 

"runscript tnt" (without the quotes).

 

If someone wants to edit the above to better grammer etc, please do so.

 

Thor925

 

Interesting! Thats a lil bit different than the additem console scripts for DAO.

There's no notation for utility handler (#include "utility_h") and it uses commas instead of semi-colons for the item amount. 1);

Really nice share tho! :thumbsup:

 

Pshhhhh 70 kudos :rolleyes:

that AP rank of yours is something to drool over bud! ;P

Link to comment
Share on other sites

  • Recently Browsing   0 members

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