[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  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] Refresh page


Posted by Genesis   (1 post)  [Biography] 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.
[Go to top] top

Posted by Onoitsu2   USA  (248 posts)  [Biography] 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" &lt; hp_watch then
Send("eat senzu")
EnableTrigger("AutoSenzu",false)
DoAfterSpecial(reset_time,'EnableTrigger("AutoSenzu",true)',12)
end -- if</send>
  </trigger>
</triggers>
[Go to top] 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.


11,441 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]