Paste #32471: Diff note for paste #32470

Date: 2016/04/11 02:39:27 UTC-07:00
Type: Diff Report

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20


 "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