Aller au contenu

Photo

Items Created in Dragon age toolset don't appear in game


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
StOrmZ Is oN ItZ WaY

StOrmZ Is oN ItZ WaY
  • Members
  • 6 messages
Ok so I downloaded the toolset a few days ago to try my hand at making custom Items and since I'm not that great at it I sought instructions from a guide located here social.bioware.com/5339/blog/576/ after following the instructions (except for the make a folder to put your items in part) I mangaed to export 2 custom greatswords into the game. After this I tried to export custom armor that I made so I edited the script a little and tried to export them. After a successful export I started my game to be disappointed that there was no armor there. I tried again and again numerous times to no avail. There are no errors in the log and according to it the export went fine the only thing there that's out of the ordinary is an alert saying "W: 13:35:30 - No starting area specified for campaign." What does this mean? Could someone please help me out. Did I miss something or forget to export something?

Here is the Script I used (I changed to colour to blue because I couldn't find the quote box)

#include "utility_h"      
#include "plt_my_custom_plot"
void main()
{
    // If our plot flag is set to TRUE, that means we have already
    // given the items to the player, there is no need to continue
    // running this script.
    if ( WR_GetPlotFlag( PLT_MY_CUSTOM_PLOT, MY_ITEM_CHECK_FLAG ) == TRUE )
        return;
    event ev = GetCurrentEvent();
    int nEventType = GetEventType(ev);
    // We will watch for every event type and if the one we need
    // appears we will handle it as a special case. We will ignore the rest
    // of the events
    switch ( nEventType )
    {
        // This event happenes every time the module loads
        // This usually happenes when creating a new game
        // or loading a savegame
        case EVENT_TYPE_MODULE_LOAD:
        {
            // The UT_AddItemToInventory function adds various resources to a
            // creature's inventory. Here we add one weapon and one weapon.
            UT_AddItemToInventory(R"my_custom_armor.uti", 1);
            UT_AddItemToInventory(R"my_custom_armor2.uti", 1);
            UT_AddItemToInventory(R"my_custom_armor3.uti", 1);
            // Set our plot flag to TRUE, so the next time this script tries
            // to run it will not add extra items to the player's inventory
            WR_SetPlotFlag( PLT_MY_CUSTOM_PLOT, MY_ITEM_CHECK_FLAG, TRUE );
            // We have dealt with the event we were waiting for.
            // At this point we can stop looking for other events
            break;
        }
        default:
            break;
    }
}

Thanks in advance

#2
DarthParametric

DarthParametric
  • Members
  • 1 414 messages
The problem is the plot flag. It already triggered once, so using the same script in a save a second time wont work as it has already fired previously. Test it with a different save.

#3
StOrmZ Is oN ItZ WaY

StOrmZ Is oN ItZ WaY
  • Members
  • 6 messages
I'm assuming that by different save you mean to switch characters right? because it doesn't work otherwise. Also I was wondering how I could add the custom armor to the character that already has the custom swords. Would deleting the plot flag work? or is it just not possible?



Thanks

#4
DarthParametric

DarthParametric
  • Members
  • 1 414 messages
You'd need a new plot if you wanted to use the same script, or you could use the other script everyone used in the beginning that gives you items every time you load the save. Another approach would be to add the items to an existing or custom merchant.

#5
StOrmZ Is oN ItZ WaY

StOrmZ Is oN ItZ WaY
  • Members
  • 6 messages
Ok so since I suck at this and I don't know how to add custom items to a npc inventory (one thats already in game) and I don't know the other script you're talking about :( I'm going to try the first thing you suggested and make a new plot. I mean all I would have to do is change this part of the script (#include "plt_my_custom_plot") to the name of the new plot right? I'm going to try it later tonight hopefully it will work. Will update in a few hours.

Thanks

#6
StOrmZ Is oN ItZ WaY

StOrmZ Is oN ItZ WaY
  • Members
  • 6 messages
After some script editing I got it to work and I now have my custom armor ingame Thanks a lot DarthParametric =D