Hi I am new to scripting with mushclient and Lua. Been using the client for years and have been using just the alias and trigger section of the client.
Now I have decided to get into scripting.
I used and modified the example
Trigger box:
You report */*hp. Change:*. Need:*. Spells:*.
________________________________________________________
Send Box:
if %99 < 100 then
ColourNote ("white", "red", "Warning! - health is low")
end -- if
________________________________________________________
and wanted to add the command inv or inventory
so that when my hp drops below a certain level
it will display my inventory.
I was wondering if some could tell me what to add in the if statement to do than
have tried
if %99 < 100 then
ColourNote ("white", "red", "Warning! - health is low")
send.world inv
end -- if
___________________________________
if %99 < 100 then
ColourNote ("white", "red", "Warning! - health is low")
send inv
end -- if
___________________________________________
if %99 < 100 then
ColourNote ("white", "red", "Warning! - health is low")
inv
end -- if
___________________________________________
but nothing i I have done lets me do it.
Thanks I will be checking back on the sight regularly for the answer.
Then after I get it will be back again with more questions.
Thanks!!!
Now I have decided to get into scripting.
I used and modified the example
Trigger box:
You report */*hp. Change:*. Need:*. Spells:*.
________________________________________________________
Send Box:
if %99 < 100 then
ColourNote ("white", "red", "Warning! - health is low")
end -- if
________________________________________________________
and wanted to add the command inv or inventory
so that when my hp drops below a certain level
it will display my inventory.
I was wondering if some could tell me what to add in the if statement to do than
have tried
if %99 < 100 then
ColourNote ("white", "red", "Warning! - health is low")
send.world inv
end -- if
___________________________________
if %99 < 100 then
ColourNote ("white", "red", "Warning! - health is low")
send inv
end -- if
___________________________________________
if %99 < 100 then
ColourNote ("white", "red", "Warning! - health is low")
inv
end -- if
___________________________________________
but nothing i I have done lets me do it.
Thanks I will be checking back on the sight regularly for the answer.
Then after I get it will be back again with more questions.
Thanks!!!