Sign in to follow this  
Salk

[KotOR] "Item gained" trigger

Recommended Posts

I thought so too but I used GiveItem in a script to give the Sith Armor to the player in Taris and the "Item Gained" does not pop up.

Share this post


Link to post
Share on other sites

I thought so too but I used GiveItem in a script to give the Sith Armor to the player in Taris and the "Item Gained" does not pop up.

Because there's nothing in the script that gives you that item. You manually put it in your inventory rather than the game itself forcibly putting it in there, such as getting Bendak's blaster

Share this post


Link to post
Share on other sites

Because there's nothing in the script that gives you that item. You manually put it in your inventory rather than the game itself forcibly putting it in there, such as getting Bendak's blaster

 

I created a script that does it:

 

void main(){


object oPC=GetFirstPC();


GiveItem(GetObjectByTag("ptar_sitharmor"), oPC);


}

and I do not get the "Item Gained" pop up...

Share this post


Link to post
Share on other sites

I think you need to use CreateItem scripts for it to work. If I understand it correctly, GiveItem does not actually create the item and so there's no pop up.

Share this post


Link to post
Share on other sites

Try this

 

void main() {

    object oPC = GetFirstPC();
    CreateItemOnObject("asd", oPC);
}
 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this