DennisWG / Roid-Macros

Vanilla macros on steroids!
MIT License
58 stars 20 forks source link

Invoking roid conditions in another functions #68

Open Timofey-Pasichnik opened 9 months ago

Timofey-Pasichnik commented 9 months ago

Hello!

Can you please describe, how to invoke your functions like myrawpower in another function? I see that it can be used somehow in CastSpellByName arguments, but I coudnt figure out how. I cant also use it

Example: изображение

function MyFunction()
  if (myrawpower>80) then CastSpellByName("Rejuvenation") end
end

And then I try to call this function from macro /run MyFunction() and get an error, because variable myrawpower is always nil