Aller au contenu

Photo

plot item - can't move the item (solved - needed END DIALOGUE)


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

#1
Sonmeister

Sonmeister
  • Members
  • 167 messages
I'm trying to move a plot item to a quest giver (or destroy it, or get rid of it - so it isn't in the Hero's inventory).  I've used all of the commands below (at different times) to no avail.  The script always compiles and seems to fire because the journal updates.  Do I need to set the plot item to FALSE, and if so, what is the command, I can't seem to locate it but thought I read about it somewhere.  Thanks.

                    RemoveItemsByTag(GetHero(), SILVER_SWORD_TAG);
                    Safe_Destroy_Object(oSilver);
                    UT_DestroyTag(SILVER_SWORD_TAG);
                    UT_RemoveItemFromInventory(ALRIC_SWORD_RES, 1, oAlric);
                    MoveItem(GetHero(),oAlric, oSilver);
 

Modifié par Sonmeister, 18 juin 2010 - 12:10 .


#2
Nursek

Nursek
  • Members
  • 1 messages
I have just always used this. It has work so far for me. This is from one of my plot scripts.


case REWARD_RECIEVED_PROFESSOR:
            {
               //// this is from consts script//// const resource PROF_FIRECRYSTAL_R = R"trs102it_firecrystal.uti";
               UT_RemoveItemFromInventory(PROF_FIRECRYSTAL_R);
               UT_RemoveItemFromInventory(PROF_FROSTROCK_R);
               UT_RemoveItemFromInventory(PROF_GLAMOURCHARM_R);
               break;
            }

#3
Sonmeister

Sonmeister
  • Members
  • 167 messages
I hadn't added an END DIALOGUE and missed it on export. Once I added it the MoveItem command worked fine. Thanks though!