Posted by
| Meerclar
USA (733 posts) Bio
|
Message
| Ok, been doing some tweaking and this is what I have now and I seem to have broken something. Triggers all show enabled when I open them individually but they aren't actually firing :(
<triggers>
<trigger
custom_colour="2"
enabled="y"
match="WHAT...is your name? "
send_to="12"
sequence="100"
>
<send>
t = { "drizzt", "guenyvhar", "asmodeus", "elric", "alustriel", "meerclar", "grymgroeth", "elderel", "belial", "demogorgon" }
result = utils.listbox ("Log on as ...", "Log on", t, 1) -- default is first once
-- exit if dialog dismissed
if result == nil then
return
end -- if
-- get name from choice
name = t [result]
-- send log on name
Send (name)
-- start with everything disabled
EnableGroup ("tank", false)
EnableGroup ("combat", false)
EnableGroup ("heals", false)
-- enable groups as required
if name == "drizzt" then
EnableGroup ("tank", true)
EnableGroup ("combat", true)
elseif name == "Guenyvhar" then
EnableGroup ("combat", true)
elseif name == "Asmodeus" then
EnableGroup ("combat", true)
elseif name == "Elric" then
EnableGroup ("combat", true)
elseif name == "Alustriel" then
EnableGroup ("heals", true)
elseif name == "Meerclar" then
EnableGroup ("combat", true)
EnableGroup ("heals", true)
elseif name == "Grymgroeth" then
EnableGroup ("tank", true)
EnableGroup ("combat", true)
elseif name == "Elderel" then
EnableGroup ("heals", true)
elseif name == "Belial" then
EnableGroup ("heals", true)
EnableGroup ("combat", true)
elseif name == "Demogorgon" then
EnableGroup ("combat", true)
end
</send>
</trigger>
</triggers>
My suspicion is I screwed up something in the "off by default" process but fresh eyes and such.
As a point of interest, any triggers that aren't in the 3 groups referenced here all work so it's definitely not a complete failure in trigger function.
Full summary info (wall of text warning):
-------------- MUSHclient summary --------------
MUSHclient version: 4.84
Compiled: Sep 30 2012.
Time now: Wednesday, June 25, 2014, 11:50 PM
Client running for: 0d 00h 14m 16s
World opened for: 0d 00h 14m 09s
World connected for: 0d 00h 03m 28s
Operating system: Windows XP
Libraries: Lua 5.1.4, PCRE 8.31, PNG 1.5.12, SQLite3 3.7.14, Zlib 1.2.5
World name: 'strange', ID: caab379828cd17c9d1bd913a
-- Scripting --
Script language: Lua, enabled: yes
Scripting active: yes
Lua sandbox is 127 characters, DLL loading allowed: yes
Scripting prefix: ''. External editor in use: NO.
Scripting for: 17.121235 seconds.
-- Triggers, aliases, timers, variables --
** Triggers: 10 in world file, triggers enabled: yes. [Triggers]
3 enabled, 0 regexp, 304 attempts, 1 matched, 0.007968 seconds.
** Aliases: 31 in world file, aliases enabled: yes. [Aliases]
31 enabled, 0 regexp, 62 attempts, 0 matched, 0.000039 seconds.
** Timers: 0 in world file, timers enabled: yes.
0 enabled, 0 fired.
Timers checked every 0.1 seconds.
** Variables: 0.
-- MCCP --
MCCP not active.
-- Plugins (Processing order) --
** Plugins: 0 loaded, 0 enabled.
-- Comms --
Connect phase: 8 (Open). NAWS wanted: NO
Received: 4749 bytes (4 Kb)
Sent: 56 bytes (0 Kb)
Received 16 packets, sent 5 packets.
Total lines received: 165
This connection: Sent 5 lines, received 141 lines.
Telnet (IAC) received: DO: 0, DONT: 0, WILL: 1, WONT: 1, SB: 0 [Telnet]
-- MXP --
MXP active: NO, Pueblo mode: NO, Activated: On command
MXP tags received: 0
MXP entities received: 0
MXP errors: 0
-- Commands --
Commands in command history: 1
Speed walking enabled: yes. Speed walking prefix: #
Command stacking enabled: yes. Command stack character: ';'
Accelerators defined: 0
-- Miniwindows --
** Miniwindows: 0 loaded, 0 shown.
-- Output window --
Output pixels: width 1899, height: 878, font width: 8, font height: 15
can show 237 characters, wrapping at column 80, height 58 lines.
Output buffer: 183 of 5000 lines.
-- Miscellaneous --
Logging: NO, tracing: NO
** SQLite3 databases: 0
Sound buffers in use: 0
---------------------- End summary ----------------------
Trigger specific summary:
------ Trigger List (evaluation order) ------
1. Normal, DISABLED : *trigger1 * places * in the back of *
2. Normal, DISABLED : *trigger3 * snaps his fingers and is suddenly...
3. Normal, DISABLED : *trigger5 * tells the group, 'heal'
4. Normal, DISABLED : *trigger7 * tells the group, 'sanc'
5. Normal, DISABLED : *trigger9 * tries to backstab *
6. Normal, DISABLED : *trigger11 *The white aura around your body fa...
7. Normal, DISABLED : *trigger13 *You are rescued by *, you are conf...
8. Normal, Enabled : *trigger15 WHAT...is your name?
9. Normal, Enabled : *trigger17 You are hungry.
10. Normal, Enabled : *trigger19 You are thirsty.
10 triggers.
I def screwed something up in my tweaking - looks like turning off all of the groups is working properly but they aren't turning back on based on which character I select. |
Meerclar - Lord of Cats
Coder, Builder, and Tormenter of Mortals
Stormbringer: Rebirth
storm-bringer.org:4500
www.storm-bringer.org | Top |
|