• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Learning to Code, need a bit help

Schedim

Well-known member
I'm trying to lern how to code a bit, and as a way to do tht I tries to implement the Eidolon Master (found here).

Of course I stumbles almost direct and that is on the first class ability, or rather the calculation part. I want to add one Evolution point every class level of Summoner to the Eidolon.

Using this code:

~ If we're disabled, do nothing
doneif (tagis[Helper.FtDisable] <> 0)

~ If there's no Eidolon, there's nothing we can do
doneif (hero.hasminion[Eidolon] = 0)


hero.minion[Eidolon].child[resRaceCus].field[resMax].value += #levelcount[Summoner]

Nothing happens ... has I misunderstood the #levelcount[Summoner] use? As it works if I put a numerical value there, I guess something is wrong. :confused:

Anyone that can point me in the right direction?
 
What phase/priority are you using? If you're using First/100 (the default) I'm pretty sure the #levelcount[] macro can't calculate the level yet.
 
Back
Top