Quantcast
Channel: Recent Discussions — Beamdog Forums
Viewing all articles
Browse latest Browse all 105449

[Help] Script StartingConditional, if TRUE then..

$
0
0
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:
#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?

Viewing all articles
Browse latest Browse all 105449

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>