lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 06-10-2020, 10:01 AM
souru souru is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Jul 2018
Posts: 6
identifying Entitys

i want to know if my current target was in my target before
so i saved a list of all previous targets but after you change target these dont work anymore ...

so is there a way to identify an entity/actor after i changed the target?
Reply With Quote
  #2  
Unread 06-10-2020, 12:02 PM
Hyoss's Avatar
Hyoss Hyoss is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Jan 2011
Posts: 150
You probably saved references to objects that stopped existing, and the next time they became the target they got assigned a new identity. You would need to save some identifier that does not change over time, but I have no experience with that to suggest one.
Reply With Quote
  #3  
Unread 06-10-2020, 03:24 PM
Thurallor's Avatar
Thurallor Thurallor is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: May 2013
Posts: 202
I did some investigation about this for a recent update to SequenceBars.

If your target is a member of your party (fellowship or raid), the objects you get from GetTarget() remain good as long as people remain in your party.

If your target isn't a member of your party, then it will be "forgotten" by the API as soon as you click away. The object's GetName() function will return "". You will no longer be able to assign it to an EntityControl (with SetEntity()).

Quote:
Originally Posted by souru
i want to know if my current target was in my target before
The only way I've found to do this is to save a set of unique identifying info about a mob (name, base max. morale, etc.) and compare that to new targets. Of course this doesn't work in situations with multiple identical mobs.

Last edited by Thurallor : 06-10-2020 at 03:30 PM.
Reply With Quote
  #4  
Unread 06-10-2020, 04:38 PM
souru souru is offline
The Undefeated
Interface Author - Click to view interfaces
 
Join Date: Jul 2018
Posts: 6
yeah i cant do it that way because you often have multiple identical mobs in the same fight

ty for the quick answer
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Identifying subscriptions Niwashi General Authoring Discussion (L) 1 04-12-2012 11:46 AM


All times are GMT -5. The time now is 01:39 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui