View Full Version : Empath Appraise Room Script
vamosj
09-22-2013, 06:10 AM
Finally mashed together a very simple script (I don't know ruby worth _____) and have a small problem. It won't appraise people with titles because it includes the whole thing.. How can I use just their name and not their title.
GameObj.pcs.each{|Playa|
fput "appraise #{Playa.name}"
}
m444w
09-22-2013, 10:18 AM
##{Playa.id}
DaCapn
09-22-2013, 01:49 PM
Don't lead variables with capital letters. That's reserved for classes.
You could use ID as suggested (probably the best) but you could also substituted 'noun' for 'name' in your above block.
Rolton-Sammich
09-22-2013, 02:12 PM
You can also use checkpcs, which delivers the ids. From my empath's alias list:
;appr => ;e checkpcs.each { |x| fput "appr "+x; sleep 0.2 }
vamosj
09-22-2013, 02:54 PM
Hehe, I knew it was easy but I'll be damned if Ruby escapes me.. It took me about 2 hours just to mash what I did from a couple of other scripts...
Thanks all, I used your's Rolton
vamosj
09-22-2013, 02:57 PM
I guess the next thing I want to try and figure out is how to automatically close their window if they show no apparent injuries or wounds..
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.