Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Lua
➜ Error on using RGBtoColourName
Error on using RGBtoColourName
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zetsukaze
Singapore (2 posts) Bio
|
Date
| Tue 05 Jul 2011 03:42 AM (UTC) |
Message
| I'm using a trigger
<trigger
group="raceWalk"
match="^(\w+) enters the room\.$"
omit_from_output="y"
regexp="y"
send_to="14"
sequence="1"
>
<send>
.
.
.
for k,v in ipairs(TriggerStyleRuns) do
ColourTell(RGBtoColourName(v.textcolour), RGBtoColourName(v.backcolour), v.text)
end
</send>
</trigger>
and I get a runtime error of
[string "Trigger: "]:17: attempt to call global 'RGBtoColourName' (a nil value)
Anyone have any idea why? Another plugin that I have uses the same piece of code and runs fine.
The line I trigger on goes something like He enters the room. I colour it if the wildcard fits my friend list, and if not its supposed to reproduce the same colour. | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #1 on Tue 05 Jul 2011 04:02 AM (UTC) |
Message
| It's "RGBColourToName".
|
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Zetsukaze
Singapore (2 posts) Bio
|
Date
| Reply #2 on Tue 05 Jul 2011 04:06 AM (UTC) |
Message
| Wow thanks, I copied that bit off someone else who posted here =D | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,953 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top