need help with making script that heals people if below certain %

Posted by Riketsu on Thu 02 Aug 2007 07:57 PM — 2 posts, 12,882 views.

#0
I'm completely new to scripting unfortunately, i play a mud called medievia, and need some help. for a trigger i put

*<*/*hp */*m */*mv * * TNL-*>

if %40 < 100 then
ft health below %40 approx 360 health remaining

That didn't work for me (to alert form health), and i dunno how to get it to work so the lowest % is healed.

example you'll see <[insert name]%>[insert prompt]
if that helps.
USA #1
Quote:
if %40 < 100 then

This is looking for the 40th wildcard in the trigger, which is not what you're looking to do, I'm assuming. Try this instead:

if %2 / %3 < 0.4 then
  Send( "ft health below 40%.  %2 health remaining." )
end