https://github.com/X.../main/Garen.lua
https://github.com/X.../main/Garen.lua
Dear community,
I am reaching out for assistance with an error in my code. I have been trying to troubleshoot the issue, but have been unable to find a solution.
Attached is a picture of the error message I am receiving, as well as the relevant script. I apologize if this issue has already been addressed, but I could not find any relevant information in my search.
I am grateful for any help that can be provided. Thank you in advance for your time and consideration.
https://github.com/X.../main/Garen.lua
o/ Hello,
Thanks for reaching out. I see what you're trying to do.
DamageLib originally never returned anything so sorry there isn't a return for it's global function yet!
Mostly DamageLib is used with a call to it's global functions. example below :
require "DamageLib" ... getdmg(args) ...
It hasn't actually had a return until recently after I've done some recoding too it. [note on it's returns in below code block]
but basically ItemID/names table and a smol heros data table. mostly easier dev stuff for now.
That being stating nothing wrong with your way besides the calls to getdmg().
local DamageLib = require "DamageLib"
or
require "DamageLib"
loading it for getdmg() is all you need since there isn't a DamageLib:getdmg() we're only getting the bool of require()'s return
Also, Qdamage,... vars are only loaded on load of script with no target for getdmg(spell, target, source,..).
So I made a getDamage() function to handle checking of spells and AA.
Another issue once you fix the damagelib getdmg calls:
global function GetEnemyMinions and GetEnemyHeroes are nil.
Undefined functions basically. We don't have any locally in the script like some do. Some other scripts might have them globally and will work if loaded with the script.
So I added a callback(load) for GGorbwalker functionality, with tid bits of what is available/useful later, to get these functions instead.
Added:
IsReady(spell) logic to avoid spamming skill, uses GGorb as well here, you can do this differently as well if you wanted.
____________
You could play around with making your own local functions and playing around for your needs as well if you didn't want to require GGorb but I figure most/all should be running it.
Hopefully something helpful with the notes, some examples and or ideas you could play around with.
also
Hope you have fun and we see more from you
See commented notes/code edit below:
Thank you for your excellent assistance and support, Impuls. you provided a clear explanation and restructured the code in a way that was easier for me to understand. Your patience and willingness to help made A significant difference. I'm still learning what our API can do and what it cannot. Thank you for being such an a valuable member. Keep it up
Edit: the 1st 5 locals are useless ... dont know what i did there or wanted to accomplish tbh ...
sent you a discord DM
sent you a discord DM
I've seen your Edit in the DM, and will consider to built in Spellchecks for R like sivir shild, Jax spinning and so on ... 1st of all i need to understand this API, i noticed you can go "other Routes" Thank you for Reaching out. i will look in detail, when i have some spare time
0 members, 1 guests, 0 anonymous users