Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Lua
➜ need help with making script that heals people if below certain %
need help with making script that heals people if below certain %
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Riketsu
(2 posts) Bio
|
Date
| Thu 02 Aug 2007 07:57 PM (UTC) |
Message
| 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. | Top |
|
Posted by
| Shaun Biggs
USA (644 posts) Bio
|
Date
| Reply #1 on Thu 02 Aug 2007 10:05 PM (UTC) |
Message
|
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
|
It is much easier to fight for one's ideals than to live up to them. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,467 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top