triggers and echos
-
- Posts: 9
- Joined: Tue Oct 02, 2012 2:03 am
triggers and echos
Can I have a trigger both highlight and throw a custom echo?
-
- Posts: 9
- Joined: Tue Oct 02, 2012 2:03 am
Re: triggers and echos
May I get some help with that or point me to where I can find it? If appreciate it greatly.
Re: triggers and echos
Triggers and highlighting: http://wiki.mudlet.org/w/Manual:Trigger_Engine
Echos: http://wiki.mudlet.org/w/Manual:Lua_Functions#echo
Echos: http://wiki.mudlet.org/w/Manual:Lua_Functions#echo
-
- Posts: 9
- Joined: Tue Oct 02, 2012 2:03 am
Re: triggers and echos
Thank you! Got all that part figured out, now just struggling with changing font size on the echo and maybe adding a blank line.
Re: triggers and echos
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").
To add a blank line, just echo("\n").
-
- Posts: 9
- Joined: Tue Oct 02, 2012 2:03 am
Re: triggers and echos
Thanks1 I was starting to think I was going crazy and couldn't find it. I appreciate all the help!
Re: triggers and echos
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
http://www.shellhacks.com/en/Creating-A ... mmand-Line
-
- Posts: 9
- Joined: Tue Oct 02, 2012 2:03 am
Re: triggers and echos
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.
Re: triggers and echos
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?