[Function] setSpeech

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
oblisgr
Giant
Posts: 132
Joined: Mon Aug 01, 2011 6:43 am
Location: Crete,Greece
Contact:

[Function] setSpeech

Post by oblisgr »

Hi! What's wrong with these lines?

Code: Select all

[h: input("Speech|Ho ho ho|What'ya sayin?|text")]

[h: setSpeech("1", text)]
I get error:

Error in body of roll.       
Statement options (if any): h       
Statement Body : setSpeech("1", text)


Thanks
High Templar of Ur

User avatar
aliasmask
RPTools Team
Posts: 9031
Joined: Tue Nov 10, 2009 6:11 pm
Location: California

Re: [Function] setSpeech

Post by aliasmask »

Speech is the variable and text is a keyword used for input. Change setSpeech value to Speech.

oblisgr
Giant
Posts: 132
Joined: Mon Aug 01, 2011 6:43 am
Location: Crete,Greece
Contact:

Re: [Function] setSpeech

Post by oblisgr »

Code: Select all

[h: input("Speech|Ho ho ho|What'ya sayin?|text")]

[h: setSpeech("1", Speech)]
if you meant this... still not working.
High Templar of Ur

User avatar
aliasmask
RPTools Team
Posts: 9031
Joined: Tue Nov 10, 2009 6:11 pm
Location: California

Re: [Function] setSpeech

Post by aliasmask »

oblisgr wrote:

Code: Select all

[h: input("Speech|Ho ho ho|What'ya sayin?|text")]

[h: setSpeech("1", Speech)]
if you meant this... still not working.
I cut and paste what you wrote in to the chat while impersonating a token and it worked fine. Perhaps you have to check the box on the macro that says Apply to Selected Tokens.

oblisgr
Giant
Posts: 132
Joined: Mon Aug 01, 2011 6:43 am
Location: Crete,Greece
Contact:

Re: [Function] setSpeech

Post by oblisgr »

I was using this as campaign makro.
I put that in mob's makros and it worked.
Thanks
High Templar of Ur

Post Reply

Return to “MapTool”