Guest User

Conditional Keyword in JSON

a guest
Mar 4th, 2021
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.57 KB | None | 0 0
  1.                 "type" : "basic_attack",
  2.                 "params" : {
  3.                     "desc" : {
  4.                             "dmg3": "damage"
  5.                      },
  6.                     "user" : "user",
  7.                     "damage" : 10,
  8.                     "target" : "action_target"
  9.                 },
  10.                 "cond" : [
  11.                     {
  12.                         "code" : "user.get_health() > action_target.get_health()",
  13.                         "desc" : "your health is greater than target's health"
  14.                     }
  15.                 ]
  16.             },
Advertisement
Add Comment
Please, Sign In to add comment