Page 1 of 1

Trying to pass 2 or more parameters in Sequence

Posted: Thu Jul 12, 2018 5:17 am
by raingame98
Hi, Tony!

I'm trying to send message to my registered method: http://prntscr.com/k5j4jx, http://prntscr.com/k5j4wm

It works well, but when I'm trying to send 2 or more parameters, it doesn't work: http://prntscr.com/k5j63s, http://prntscr.com/k5j7hf

Why?

Re: Trying to pass 2 or more parameters in Sequence

Posted: Thu Jul 12, 2018 10:28 am
by Tony Li
Hi,

SendMessage() only accepts one parameter.

However, you don't need to use SendMessage() at all. You've registered the function with Lua, so you can call it directly in the Script field:

Code: Select all

UpdateStats("Str", 10)
Note that you need quotes around string in Lua.

Re: Trying to pass 2 or more parameters in Sequence

Posted: Fri Jul 13, 2018 1:57 am
by raingame98
I understood, thanks!