View Full Version : trying to write a script to add everyone in the room to the group
So I have this:
GameObj.pcs.each { |pc| fput "group #{pc.name}" }
And it's not working. Any ideas why?
horibu
07-27-2018, 01:04 PM
May I suggest this thread for you: http://forum.gsplayers.com/showthread.php?83616-Post-Your-Best-One-Liners-with-info
But here's what you are looking for:
;alias add --global groupall = ;e GameObj.pcs.each { |pc| fput "group #{pc.noun}" }
horibu
07-27-2018, 01:05 PM
also the .name will do the full name (with title), you wanted .noun. Otherwise it will try to do GROUP LORD TYSONG when you just wanted GROUP TYSONG
that was it, should've been using noun, thanks
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.