Aller au contenu

Photo

need help with this script


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
archer4217

archer4217
  • Members
  • 105 messages
Hi all,

It's been a while since I've pestered you guys for help. :)

I have this conditional script that checks for the right number of items and it works fine. I was hoping someone could add in a line that tells the player if they don't have enough of the item.

thank you much. :innocent:

#include "nw_i0_plot"
int StartingConditional()
{
object oPC = GetPCSpeaker();

if (GetNumItems(oPC, "WildTulip") >= 10) return TRUE;

else return FALSE;
}

#2
PurpleProse

PurpleProse
  • Members
  • 23 messages
#include "nw_i0_plot"
int StartingConditional()
{
object oPC = GetPCSpeaker();

if (GetNumItems(oPC, "WildTulip") >= 10) return TRUE;

else{
SendMessageToPC(oPC, "Sorry! You don't have enough wild tulips!");
return FALSE;
}
}

#3
archer4217

archer4217
  • Members
  • 105 messages
Awesome! thanks so much sweetie :) *hugs*