[ALL ISSUES RESOLVED - topic can be closed]
Became
========================
became
=======================================
Became
<triggers>
<trigger
keep_evaluating="y"
match="^\<(\d+)\/(\d+)hp\, (\d+)\/(\d+)m\, (\d+)\/(\d+)mv\, (.*)\> (?<hour>\d+)\:(?<minute>\d+)(am|pm)\."
regexp="y"
send_to="12"
sequence="100"
variable="health"
>
<send>if %<hour> ~= old_hour or
%<minute> ~= old_minute then
old_hour = %<hour>
old_minute = %<minute>
DoAfterNote (34, "TICK IN 7 SECONDS!") -- 7 seconds warning
end -- if</send>
</trigger>
</triggers>
Became
<triggers>
<trigger
enabled="y"
keep_evaluating="y"
match="^\<(\d+)\/(\d+)hp\, (\d+)\/(\d+)m\, (\d+)\/(\d+)mv\, (.*)\> (?<hour>\d+)\:(?<minute>\d+)(am|pm)\."
regexp="y"
send_to="12"
sequence="100"
variable="health"
>
<send>if (%<hour> <> old_hour OR %<minute> <> old_minute) then
old_hour = %<hour>
old_minute = %<minute>
world.DoAfterNote 34, "TICK IN 7 SECONDS!" '7 seconds warning
end if</send>
</trigger>
</triggers>
========================
<triggers>
<trigger
expand_variables="y"
match="*[Str: * Int: * Wis: * Dex: * Con: *]"
send_to="12"
sequence="100"
>
<send>percent = math.floor (%2+%3+%4+%5+%6)
Note ("You rolled ", percent)
if(percent >= 240) then
Send "y"
end -- if
if(percent < 240) then
Send ""
Send "n"
end -- if</send>
</trigger>
</triggers>
became
Dim percent
percent = (%1/%2 * 100)
if(percent >= 100) then
Note "You are in excellent condition."
end if
if(percent < 100 and percent >= 90) then
Note "You have a few scratches."
end if
if(percent < 90 and percent >= 75) then
Note "You have some small wounds and bruises"
end if
if(percent < 75 and percent >= 50) then
Note "You have quite a few wounds"
end if
if(percent < 50 and percent >= 30) then
Note "You have some big & nasty wounds"
end if
if(percent < 30 and percent >= 15) then
Note "You are pretty hurt"
end if
if(percent < 15 and percent > 0) then
Note "You are in awful condition"
end if
if(percent = 0) then
Note "You are dead!"
end if=======================================
<triggers>
<trigger
expand_variables="y"
keep_evaluating="y"
match="<*/*hp, */*m, */*mv, *> *. *"
send_to="12"
sequence="100"
variable="health"
>
<send>percent = math.floor (%1/%2 * 100)
if(percent >= 100) then
Note "You are in excellent condition."
end -- if
if(percent < 100 and percent >= 90) then
Note "You have a few scratches."
end -- if
if(percent < 90 and percent >= 75) then
Note "You have some small wounds and bruises"
end -- if
if(percent < 75 and percent >= 50) then
Note "You have quite a few wounds"
end -- if
if(percent < 50 and percent >= 30) then
Note "You have some big & nasty wounds"
end -- if
if(percent < 30 and percent >= 15) then
Note "You are pretty hurt"
end -- if
if(percent < 15 and percent > 0) then
Note "You are in awful condition"
end -- if
if(percent == 0) then
Note "You are dead!"
end -- if</send>
</trigger>
</triggers>
Became
<triggers>
<trigger
enabled="y"
expand_variables="y"
match="*[Str: * Int: * Wis: * Dex: * Con: *]"
send_to="12"
sequence="100"
>
<send>total = %2+%3+%4+%5+%6
Note "You rolled " & total
if(total >= 240) then
Send "y"
end if
if(percent < 240) then
Send ""
Send "n"
end if</send>
</trigger>
</triggers>