Hello, I need some help with a script, during a dialog I'd like to check if the player has an item in his inventory, if TRUE then destroy it and reward the player. With the script wizard I have created the simple conditional script:
![:) :)]()
PS: Is there an active community or forum about scripting help for newbies like me?
#include "nw_i0_tool"
int StartingConditional()
{
// Make sure the PC speaker has these items in their inventory
if(!HasItem(GetPCSpeaker(), "teteproprio"))
return FALSE;
return TRUE;
}
I don't know how to add the fact that if the player has the item, it will destroy it and give him reward. Is it possible? Thanks for your help 
PS: Is there an active community or forum about scripting help for newbies like me?