Advertisement
Guest User

Untitled

a guest
Jan 5th, 2018
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.82 KB | None | 0 0
  1.  
  2. local config = {}
  3. config.base = {
  4.     --[...]
  5. }
  6. config.monster = {
  7.     --[...]
  8.     spells = {
  9.         '<attack name="energy" interval="5000" chance="80" range="1" radius="1" target="1" min="-550" max="-675"><attribute key="areaEffect" value="209"/></attack>',
  10.         '<attack name="barrier" interval="4000" range="2" min="-50" max="-60"/>',
  11.         '<attack name="energy" interval="3000" chance="80" range="1" min="-2500" max="-3000"><attribute key="areaEffect" value="245"/></attack>',
  12.         '<attack name="energy" interval="6000" chance="80" range="6" target="1" min="-5000" max="-7000"><attribute key="shootEffect" value="32"/><attribute key="areaEffect" value="4"/></attack>',
  13.     }
  14. }
  15.  
  16. local base, monster = config.base, config.monster
  17. local attacks = '<a>'
  18. for k, v in pairs(monster.spells) do
  19.     attacks = attacks .. v
  20. end
  21. attacks = attacks .. '</a>'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement