HyperScript 1.7.58
More things that took several lines and now take one.
Added
- One block for several events.
on player join, player respawn:runs the same lines for each of the events it names. - Arguments with a default.
command /coins [amount:number = 1]:makesarg.11 for a player who gave no amount. Works without a type too:[note = "a gift"]. - Variables for a time.
set {%player%.boost} to 2 for 10 minutesunsets the variable again by itself when the time is up. The time keeps counting while the server is off. - Leaving an outer loop.
break loop 1andcontinue loop 1reach a loop further out, by the same numbers asloop-value-1:
loop {teams}:
loop {players}:
break loop 1 if {%loop-value-2%.team} is loop-value-1
- Conditions about a whole list.
if any of {_scores} is above 100:andif all of {team} are online:. amount of <item> in inventory of <who>: how many of them a player carries, all stacks together.- Several variables in one line.
set {_a}, {_b} to 0anddelete {_a}, {_b}. return if <condition>andreturn unless <condition>, to leave a function early.- Percent changes.
add 10% to {_price}andsubtract 25% from {_price}. multiply,divide,whereandaftercan be written in French, Spanish, Portuguese and German.
Changed
players only:andconsole only:on a command work without writingtrueafter them.