Cleric Scripts Question
Posted: Wed May 23, 2012 12:46 am
Hey guys,
New to the forum, been using Mudlet for a few months now, and must confess to love it. I play a different MUD than seems to be represented here (TFE), so I've had trouble checking through previous posts to find stuff totally relevant to what I'm trying to do. If such a post exists, please be so kind as to direct me to it and forgive my inability to find it.
I'm barely above a novice level script writer, but I've been able to get everything going the way I want it to go thus far, but I've hit a bit of a snag. Any advice on the best route to go would be appreciated. I'm playing as a cleric class, and a big part of that is constantly checking the group and picking out members with low Hp, on my mud that's done using the "group" command that gives a readout similar to:
I set up a tick timer to give me the list frequently and I'd like to set up a script to run through the list at each check, find the members whose MaxHit - CurrentHit is >= HealPoint and then set up a function to "cast " healSpell memberName , if the condition is met. It's actually getting the variables filled (CurrentHit, maxHit, and memberName) that I am stuck at. I can't get a trigger that will pull them out correctly. I've also wondered if it would be better to work it into a list and keep it updated through there. Any thoughts would be appreciated.
New to the forum, been using Mudlet for a few months now, and must confess to love it. I play a different MUD than seems to be represented here (TFE), so I've had trouble checking through previous posts to find stuff totally relevant to what I'm trying to do. If such a post exists, please be so kind as to direct me to it and forgive my inability to find it.
I'm barely above a novice level script writer, but I've been able to get everything going the way I want it to go thus far, but I've hit a bit of a snag. Any advice on the best route to go would be appreciated. I'm playing as a cleric class, and a big part of that is constantly checking the group and picking out members with low Hp, on my mud that's done using the "group" command that gives a readout similar to:
I set up a tick timer to give me the list frequently and I'd like to set up a script to run through the list at each check, find the members whose MaxHit - CurrentHit is >= HealPoint and then set up a function to "cast " healSpell memberName , if the condition is met. It's actually getting the variables filled (CurrentHit, maxHit, and memberName) that I am stuck at. I can't get a trigger that will pull them out correctly. I've also wondered if it would be better to work it into a list and keep it updated through there. Any thoughts would be appreciated.