You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Monday, January 30th 2012, 8:32pm

Energy Macro. If energy variable?

I'm trying to drink an energy potion if my enery is @ 20%, else cast cursed fangs. Here's what i've got:

Source code

1
/script if (UnitEnergy("player")/UnitMaxEnergy("player")<=.2) then UseAction(30); else UseAction(29); end


Obviously, there is no "UnitEnergy" or "UnitMaxEnergy". Is there a way to do what i'm trying to do?

Thanks,
- Flashy

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

2

Monday, January 30th 2012, 9:33pm

You want UnitMana and UnitMaxMana. You may also be interested in UnitSkill and UnitMaxSkill.
2013... The year from hell....

trav42073

Professional

Posts: 806

Location: Arizona

Occupation: welder/fabricator/antagonist

  • Send private message

3

Tuesday, January 31st 2012, 2:09am

its a shame to peryl. many many pages of rom wisdom lost fer eternity.
95r/62m/63s/ Soultwist.
Ryaderr wrd/s/w erobos

4

Tuesday, January 31st 2012, 8:02pm

Thanks for the info! Will that work if the energy is coming from the 2ndary class? And the main class has mana?

Also, yeah.. i noticed alot of paged that came up in search recently were broken/missing.. what'd you do? :P

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

5

Tuesday, January 31st 2012, 8:25pm

Quoted from "flashsplat;506633"

Thanks for the info! Will that work if the energy is coming from the 2ndary class? And the main class has mana?

Check the links I provided earlier. Should clear things up for you.

Quoted from "flashsplat;506633"

Also, yeah.. i noticed alot of paged that came up in search recently were broken/missing.. what'd you do? :P

I did nothing. Frogster seems to have removed a lot of old posts during the forum restructuring/upgrade.
2013... The year from hell....

6

Tuesday, January 31st 2012, 9:38pm

Quoted from "Peryl;506640"

Check the links I provided earlier. Should clear things up for you.
Aaahh.. did not realize those were links.

Tysir!