Please bear with me, I'm trying to learn the basics.
I'm making a "Go kill and fetch" quest.
Sorry, for being cliche, but a tavern keeper wants rats killed in the cellar (I know, I know... I'm a sucker for cliche's as long as its done well, and done with some humor.)
I want the Tavern keeper to demand 10 rat tails, but I do not know how to script (I'm trying to learn). I'm testing the script only using 3 tails. The script I placed into the "Text Appears When" looks like this:
int StartingConditional()
{
// Make sure the PC speaker has these items in their inventory
if(!HasItem(GetPCSpeaker(), "RatsTail01"))
if(!HasItem(GetPCSpeaker(), "RatsTail02"))
if(!HasItem(GetPCSpeaker(), "RatsTail03"))
return FALSE;
return TRUE;
}
Obviously I didn't do it right. The inn keeper only checks for 1 of the tails, not all 3, and the completion dialog fires. My question is, how do I make him check for all 3 tails? I assume it would by placing a + in an appropriate place?
Honestly, I would prefer it if there is a way I can just have the inn keeper check for a quantity of x10 "RatsTail01" so I don't clutter up my plot items list with 10 rat's tails with separate tags.
Sorry, I haven't really gotten familiar with the scripting language yet. Sifting through the lexicon is like reading gibberish sometimes. I think once I get it, it should make sense to me.





Retour en haut






