Page 1 of 1

[SOLVED] ${ME.DSed} problem

Posted: Sat May 23, 2015 8:01 am
by klaarg
Not sure if this is a bug report or a feature request. /echo ${ME.DSed} returns NULL and /echo ${Target.DSed} returns the correct spell (when I have my character targeted).

If it's not a bug, any chance of getting it added?

Also, question, since it appears the wiki for TLOs is out of date, is MQ2CharacterType::GETMEMBER() the appropriate place to look for new members of TLOs? I'm assuming that's for character, what's the similar function for Target? I use a lot of HUD entries and after recently coming back I'd like to see what I can add that might have value.


EDIT: Ok, it appears it sometimes will CTD. I had that with target when I had no target selected (my bad), but I had it with ${ME.DSed} just now as well.

Re: ${ME.DSed} problem

Posted: Sat May 23, 2015 8:48 am
by Maskoi
From the changes file but it looks like your syntax is right.

Code: Select all

- Added Me.DSed and Me.RevDSed, both return a spelltype
  Usage:
  /if (${Bool[${Me.DSed.ID}]}==TRUE) {
		/echo I have a Damage Shield on its: ${Me.DSed}.
  }
  /if (${Bool[${Me.RevDSed.ID}]}==TRUE) {
		/echo I have a Reverse Damage Shield on its: ${Me.RevDSed}.
  }
you have /echo ${ME.DSed} with a capital E instead of ${Me.DSed} but thinking that is just a typo.

Re: ${ME.DSed} problem

Posted: Sat May 23, 2015 8:52 am
by warlock45
Would it matter if you use ${Me.DSed} instead of ${ME.DSed}?

Re: ${ME.DSed} problem

Posted: Sat May 23, 2015 9:01 am
by Maskoi
Yes MQ2 is case sensitive.

Re: ${ME.DSed} problem

Posted: Sat May 23, 2015 9:41 am
by warlock45
Heh, didn't see your post before doing mine, or would a left that alone =)

Re: ${ME.DSed} problem

Posted: Sat May 23, 2015 10:35 am
by SwiftyMUSE
Maskoi wrote:From the changes file but it looks like your syntax is right.

Code: Select all

- Added Me.DSed and Me.RevDSed, both return a spelltype
  Usage:
  /if (${Bool[${Me.DSed.ID}]}==TRUE) {
		/echo I have a Damage Shield on its: ${Me.DSed}.
  }
  /if (${Bool[${Me.RevDSed.ID}]}==TRUE) {
		/echo I have a Reverse Damage Shield on its: ${Me.RevDSed}.
  }
you have /echo ${ME.DSed} with a capital E instead of ${Me.DSed} but thinking that is just a typo.

You don't need to use ${Bool} in an /if statement. ${Me.DSed.ID} is TRUE if there is a spell id, FALSE otherwise.

Re: ${ME.DSed} problem

Posted: Sat May 23, 2015 11:48 am
by Maskoi
Just tried it. I crashed as well.

Re: ${ME.DSed} problem

Posted: Sat May 23, 2015 12:10 pm
by EqMule
Thanks for the report , I have fixed this in MQ2-20150523.zip

Re: [SOLVED] ${ME.DSed} problem

Posted: Sun May 24, 2015 8:14 am
by klaarg
Wow, thanks for the quick response and the fix.

And I can confirm it's working here now.

Re: ${ME.DSed} problem

Posted: Sun May 24, 2015 8:33 am
by klaarg
Maskoi wrote:Yes MQ2 is case sensitive.
Ok, I'm not sure if I had done ME or Me, as I was not aware MQ2 is case sensitive -not sure how I missed that. Maybe I knew it a couple of years ago when I set up my HUD (which is most of what i'm doing with it). My HUD has ~150 lines or so.

Re: [SOLVED] ${ME.DSed} problem

Posted: Sat Jan 17, 2026 8:13 am
by xyilla