triggers and echos

thakonsson
Posts: 9
Joined: Tue Oct 02, 2012 2:03 am

triggers and echos

Post by thakonsson »

Can I have a trigger both highlight and throw a custom echo?

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: triggers and echos

Post by Vadi »

Yep.

thakonsson
Posts: 9
Joined: Tue Oct 02, 2012 2:03 am

Re: triggers and echos

Post by thakonsson »

May I get some help with that or point me to where I can find it? If appreciate it greatly.

User avatar
Akaya
Posts: 414
Joined: Thu Apr 19, 2012 1:36 am

Re: triggers and echos

Post by Akaya »


thakonsson
Posts: 9
Joined: Tue Oct 02, 2012 2:03 am

Re: triggers and echos

Post by thakonsson »

Thank you! Got all that part figured out, now just struggling with changing font size on the echo and maybe adding a blank line.

Jor'Mox
Posts: 1146
Joined: Wed Apr 03, 2013 2:19 am

Re: triggers and echos

Post by Jor'Mox »

First, you can't change the font face or font size of an echo (to the main window) to be different from what you are seeing from the rest of the game. You can change the font for everything if you want in settings, but not in code.

To add a blank line, just echo("\n").

thakonsson
Posts: 9
Joined: Tue Oct 02, 2012 2:03 am

Re: triggers and echos

Post by thakonsson »

Thanks1 I was starting to think I was going crazy and couldn't find it. I appreciate all the help!

User avatar
demonnic
Posts: 886
Joined: Sat Dec 05, 2009 3:19 pm

Re: triggers and echos

Post by demonnic »

If I need a bigger warning echo or some such, I'll often turn to something like figlet to create ascii lettering over multiple lines. Not sure what I'd use on windows or OSX, but it works well for me in linux and I imagine a bit of googling will turn something up.

http://www.shellhacks.com/en/Creating-A ... mmand-Line

thakonsson
Posts: 9
Joined: Tue Oct 02, 2012 2:03 am

Re: triggers and echos

Post by thakonsson »

So, what if you have multiple targets in a trigger? For example target A bashes target B. I can't get it to fire correctly.

User avatar
demonnic
Posts: 886
Joined: Sat Dec 05, 2009 3:19 pm

Re: triggers and echos

Post by demonnic »

How do you mean? As in, "SomeGuy bashes SomeRandomOrc" ? I'd just make a substring trigger for 'bashes' and then use a regex behind it of ^(\w+) bashes (\w+)$ and work with the matches table. Unless I'm misunderstanding the question?

Post Reply