|
Error on using RGBtoColourName
|
Reply to this subject
Start a new subject
 
Refresh page
| Posted by |
Zetsukaze
Singapore (2 posts) bio
|
| Date |
Tue 05 Jul 2011 03:42 AM (UTC) [ quote
] |
| 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,229 posts) bio
|
| Date |
Reply #1 on Tue 05 Jul 2011 04:02 AM (UTC) [ quote
] |
| 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) [ quote
] |
| 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.
715 views.
Reply to this subject
Start a new subject
 
Refresh page
top
Comments to:
Gammon Software support
Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )