Advertisement
Mohl97

Template Script (Verbose)

May 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.90 KB | None | 0 0
  1. [ENABLE]
  2. {$lua}
  3. if not syntaxcheck then
  4.  
  5. local Template = { --This is a descriptor (I guess). Put something here, it's kinda just for telling WHAT it is that's being edited.
  6.  
  7.   {ID,Offset,"Value"}, --See the bottom for info.
  8.  
  9. }
  10.  
  11. ParamIterator("Param",Template,"Script") --"Param" is the type of parameter you're changing. An effect would be SpEffectParam, for example, whereas a spell would just be Magic.
  12. end
  13.  
  14. {$asm}
  15. [DISABLE]
  16. {$lua}
  17. if not syntaxcheck then
  18. ParamDepatcher("Script") --This matches the "Script" seen in ParamIterator.
  19. end
  20.  
  21. --The ID is the DECIMAL ID of whatever you're changing.
  22. --For example, if editing the red soapstone, you'd put 10.
  23. --The method of getting the ID you're looking for varies depending on what you're trying to get.
  24. --Weapon, Armor, and Spell IDs can be gotten from Hero>Equipped Items/Spells. Weapon IDs end with 0s, as that determines the base upgrade and infusion.
  25. --Consumable IDs can be gotten from "Last Highlighted Stackable Item" in Helpers. Estus functions differently thanks to it being upgradeable, so I'm not sure how to get that.
  26. --Bullet are converted using Igro's tool in the Tools section (The only thing in there at the time of writing).
  27. --Effects can be gotten from the Memory Viewer, sometimes. Other times, it's just not the right ID. Ask your local colleagues or something.
  28.  
  29. --The Offset determines what part of the thing you're changing to change.
  30. --Effect Duration would be 0x08, for example.
  31.  
  32. --The Value is the change itself. It's also in bytes. Here's how you get it:
  33. --Open up Memory View.
  34. --Back on the table, click on the value you plan on changing.
  35. --Hit Control+B to move the memory viewer to that spot.
  36. --Now, go change that value. The 1-4 octets (3E would be an octet) are what you want in the Value section.
  37.  
  38. --For multiple changes, make sure there's a comma at the end of the line, then hit enter and put in another change, same format.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement