Aller au contenu

Photo

Send message to pc and custom token


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

#1
Pattycake1

Pattycake1
  • Members
  • 49 messages
Why doesnt this work?

int nMatAmount1 = nAmount1 - GetAllStacks( "CopperIgnot", oPC );
SetCustomToken(8100,IntToString(nMatAmount1));
SendMessageToPC(oPC, "You need <CUSTOM8100> more Copper Ignots to make this.");

Can custom tokens be used this way? or is there another way to get this info to a player?

#2
Failed.Bard

Failed.Bard
  • Members
  • 774 messages
SendMessageToPC(oPC, "You need " + IntToString(nMatAmount1) + " more Copper Ignots to make this.");

Tokens are used for passing variable data into conversations. You don't need them if you're just sending the message as a string directly.

#3
Pattycake1

Pattycake1
  • Members
  • 49 messages
Duh.... lol ty for the answer. That sad part is I use that in other parts of the script I just got way ahead of my self and tried to be fancy..... *slap forhead*