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.
Entire forum
➜ MUSHclient
➜ Lua
➜ Script for a Dragonball z mud i play
Script for a Dragonball z mud i play
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Genesis
(1 post) Bio
|
Date
| Thu 25 Dec 2008 01:30 AM (UTC) |
Message
| Hi im trying to make a script so i can get a warning of when to eat a sensu bean while fighting.
This is my fight prompt:
HP [100] Ki [14,021/14,021] PL [100,001,067/860,009,214] Style [A] Foe [100]
my style changes from A to D depending on if im in aggressive or defensive stance. My ki also changes for when i use energy barrier and ki attacks.
Any help on making a script for this would be much thanked. | Top |
|
Posted by
| Onoitsu2
USA (248 posts) Bio
|
Date
| Reply #1 on Thu 25 Dec 2008 03:31 AM (UTC) Amended on Thu 25 Dec 2008 03:35 AM (UTC) by Onoitsu2
|
Message
| Something like this, a direct copy of a valid trigger in fact, would work, just replace the first 2 numbers in the <send> section with the values you want to use, prior to the explanations of them. Copy/Paste Directions here... http://mushclient.com/copying
http://mushclient.com/pasting
-Onoitsu2
<triggers>
<trigger
enabled="y"
match="^HP \[(.*)\] Ki \[(.*)\/(.*)\] PL \[(.*)\/(.*)\] Style \[(\w)\] Foe \[(\d+)\]$"
name="AutoSenzu"
regexp="y"
send_to="12"
sequence="100"
>
<send>hp_watch = 5000 -- Set to Watch Number
reset_time = 10 -- Set to Time To Re-Enable Trigger
if "%1" < hp_watch then
Send("eat senzu")
EnableTrigger("AutoSenzu",false)
DoAfterSpecial(reset_time,'EnableTrigger("AutoSenzu",true)',12)
end -- if</send>
</trigger>
</triggers>
| 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.
12,316 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top