Author Topic: Send message to pc and custom token  (Read 315 times)

Legacy_Pattycake1

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +0/-0
Send message to pc and custom token
« on: October 16, 2012, 11:13:53 pm »


               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?
               
               

               
            

Legacy_Failed.Bard

  • Hero Member
  • *****
  • Posts: 1409
  • Karma: +0/-0
Send message to pc and custom token
« Reply #1 on: October 16, 2012, 11:57:04 pm »


               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.
               
               

               
            

Legacy_Pattycake1

  • Jr. Member
  • **
  • Posts: 98
  • Karma: +0/-0
Send message to pc and custom token
« Reply #2 on: October 16, 2012, 11:59:00 pm »


               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*