If you find yourself having a hard time understanding all the script, I have a suggestion. Instead of using Lilac's generator to write all the script you need at once, just have it generate each part one at a time.
For example if you want a script that: gives XP, checks for an item and spawns an object. Don't tell the program to generate all these scripts at once:
First generate the
give XP script. Copy and paste it into the editor, look over it and try and understand what each line actually does. When you think you've got an idea, write a comment over that line explaining what it does so you're constantly reminded. Delete each line of code and rewrite it using your own variables instead of the default
oPC or
oTarget.
When you've finally got a grasp of the first part of code, tell the program to
add more to the script you already have. Generate the second part and compare it to what you already have. See the additions/modifications and mark them down using comments.
PC has an item (item_A) to give to an NPC (item_A) and i want the npc to
check to see if the PC has the item in there inventory, then runs
either one of two conversations:
Look around the conversation editor and you should find a
text appears when... tab. This means that the line of dialogue you've highlighted will only appear when the condition you script returns
TRUE. Start your experiementing here.
Click here for the tutorial that I used to get acquainted with NWScriptGood luck!