Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. affectsMap =
  2. {['You sense a divine protection.'] = 'Armor'
  3. ,['Your position appears shifted.'] = 'Displace'
  4. ,['You can sense good.'] = 'Detect Good'
  5. ,['You can sense evil.'] = 'Detect Evil'
  6. ,['You are surrounded by a billowing shield of flame.'] = 'Fire Shield'
  7. ,['Your movements are hastened.'] = 'Quickening'
  8. ,['You are protected by a shield of thorns.'] = 'Thorn Shield'
  9. ,['Nature protects from fire.'] = 'Flamelight'
  10. ,['You are embraced by earthen protection.'] = 'Embrace of Earth'
  11. ,['Your metabolic reactions are quickened.'] = 'Puissance'
  12. ,['You are embraced by shadows.'] = 'Embrace of Shades'
  13. ,['You are very hardy.'] = 'Hardiness'
  14. ,['You are able to bind lands together.'] = 'Landbinding'
  15. ,['The life of the forest fills your veins.'] = 'Ivy Armor - Forest(Hp Regen)'
  16. ,['The power of the mountains strengthens your legs.'] = 'Ivy Armor - Mountain(Mv Regen)'
  17. ,['You are noticeably skilled with swords.'] = 'Human - Sword Proficiency'
  18. }
  19.  
  20. for k, v in pairs(player.affects) do
  21. player.affects[k] = nil
  22. end
  23. send('affect', false)
  24.  
  25. tfe.triggerList[tempRegexTrigger([[^(.*?\.)]], function()
  26. local affect = matches[2]
  27. local diff = affect:len() - affectsMap[affect]:len()
  28. local filler = string.rep(" ", diff)
  29.  
  30. player.affects[affectsMap[affect]] = true
  31. selectString(affect, 1)
  32. replace(affectsMap[affect]..filler)
  33. end)] = 'onPrompt'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement