Page 1 of 1

getting a champion to say a line of text

Posted: Sun Oct 26, 2014 9:25 pm
by kelly11
Hello People... Does anyone know how I can make a script that targets a champion to say something. that get's a champions name and then prints that name followed by the sentence?

Thanks in advance

Re: getting a champion to say a line of text

Posted: Sun Oct 26, 2014 10:05 pm
by Jgwman

Code: Select all

hudPrint(party.party:getChampion(x):getName() .. ": message you want the champion to say in quotes here" )
In a lua script function called by whatever event you want to trigger it.
Where x is the index of the champion by location according to
1 2
3 4

Re: getting a champion to say a line of text

Posted: Sun Oct 26, 2014 10:29 pm
by kelly11
Thanks !

Re: getting a champion to say a line of text

Posted: Sun Oct 26, 2014 10:36 pm
by Drakkan
Jgwman wrote:

Code: Select all

hudPrint(party.party:getChampion(x):getName() .. ": message you want the champion to say in quotes here" )
In a lua script function called by whatever event you want to trigger it.
Where x is the index of the champion by location according to
1 2
3 4
are you able somehow make text to appear for example in the top of the screen instead in the bottom ?

Re: getting a champion to say a line of text

Posted: Sun Oct 26, 2014 10:55 pm
by Jgwman
Not that we know of yet, but obviously the scripting reference isn't out yet.

Re: getting a champion to say a line of text

Posted: Wed Oct 29, 2014 11:25 am
by kelly11
dont know how to do that. Do you by now?

Re: getting a champion to say a line of text

Posted: Wed Oct 29, 2014 5:44 pm
by Komag
You could always set it up with GUI text, a ton more work, but almost anything becomes possible