PDA

View Full Version : How do you add a friend to friendlist in Healbot2020



Darcthundar
11-29-2021, 07:31 AM
I hope the title is self explanatory .

I am ruby/lich challenged.

I tried by making the following changes

#You will automatically heal these people when they run into the room.
#Pinipin focuses on Azanoth with intense concentration.
friendlist = /xxxxxxxx|xxxxxxxx/


but I get the following error message

--- Lich: error: undefined method `include?' for /xxxxxx|xxxxxx/:Regexp
Healbot2020:318:in `block in script'
Healbot2020:217:in `loop'
--- Lich: Healbot2020 has exited.


Anyone able to help?

Thanks in advance

Tgo01
11-29-2021, 07:48 AM
It looks like friendlist is an Array so it would be like this:

friendlist = [ "Bob", "Jim", "Mary", "Etc" ]