Hello There, Guest! Login Register


[Need help] Json to lua
#1
{
                    "condition":
                    [
                        "all",
                        [ "opponentPokemon", "Ralts" ],
                        [ "!isSet", "usedTaunt" ],
                        [ "activePokemonNumber", "=", 1 ]
                    ],
                    "action": [ "useMove", "Taunt" ],
                    "set": "usedTaunt"
                },
                {
                    "condition":
                    [
                        "all",
                        [ "activePokemonNumber", "=", 1 ],
                        [ "opponentHealth", ">", 1 ],
                        [ "isSet", "usedTaunt" ]
                    ],
                    "action": [ "sendNextPokemon" ],
                },
                {
                    "condition":
                    [
                        "all",
                        [ "activePokemonNumber", "=", 2 ],
                        [ "opponentHealth", ">", 1 ]
                    ],
                    "action": [ "weakAttack" ],
                },
                {
                    "condition": ["opponentHealth%", "<", 30],
                    "action": [ "useItem", "Pokeball" ],
                     "unset": "usedTaunt"
                }

Any one can help trans this code from json to lua please.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)