"BodyStats":
Type: world
debug: true
events:
- on entity combusts:
- #This should add between 25 - 45 to a player's temperature if they're on fire
- - if <context.entity> == "player" {
- - flag <context.entity> BodyStatsTemp:+:<util.random.int[25].to[45]>
- }
-
+ on player holds item:
+ #This should alter a player's temp flag based on what they're holding
+ - if <player.has_flag[SpamGuard]> queue clear
+ - while <player.item_in_hand.is[==].to[i@PIXELMON_ITEMWATER_STONE_SHARD|i@PIXELMON_ITEMDUSK_STONE_SHARD]>:
+ - flag player BodyStatsTemp:-:<util.random.int[0].to[1]>
+ - flag player BodyStatsStamina:-:<util.random.int[0].to[1]>
+ - flag player SpamGuard:1s