This would break the loop if none of your listed targets are in the room.
break if !GameObj.npcs.find{ |npc| npc.name =~ $my_target}
This would break the loop if none of your listed targets are in the room.
break if !GameObj.npcs.find{ |npc| npc.name =~ $my_target}
More fun with scripting!
Want to use mstrike whenever you're out of the cooldown period and thus it doesn't cost stamina to use?
Try this!
9005 is Lich's code for mstrike's cooldown period, 9699 is if popped muscles are active, thus this would check to see if both are active on your character and if they aren't active then the script would use mstrike on your target.Code:def this_script_use_mstrike fput "mstrike ##{$my_target.id}" if (!Spell[9005].active?) && (!Spell[9699].active?) end
This is focused mstrike, you could get fancy and for example have the script check if there are two or more critters in the room then you would use open mstrike instead.
You best get back to scripting, bitch.
Ceterum censeo Carthaginem esse delendam
Tg01:
Thank you so much for that quick little example. I found this today, and I figured that your example looked like enough to get me started, and now my aching wrists are blessing your name.
Modified it for bard hunting, and VOILA! It just worked.
::happy dance::
~L.
Luxie's adventures (because I must write) plus some guests from the past at my blog:
http://www.thebardess.com
This is an awesome thread.
Mad props, Tgo!
Calling you names is fun, because your skin is so thin and your vagina so sandy.
Check out my Solhaven Shop!
https://ps.lichproject.org/shops/3818
Fusion Orbs, Flaring 100-arrow Bundles, ICE age stuff, 50-count Gem Jars and more!
--------
d100(Open): 261
You forage briefly and manage to find some acantha leaf!
Calling you names is fun, because your skin is so thin and your vagina so sandy.
Check out my Solhaven Shop!
https://ps.lichproject.org/shops/3818
Fusion Orbs, Flaring 100-arrow Bundles, ICE age stuff, 50-count Gem Jars and more!
--------
d100(Open): 261
You forage briefly and manage to find some acantha leaf!