- Joined
- Nov 25, 2020
- Messages
- 34
- Reaction score
- 7
- First Language
- Danish
- Primarily Uses
- N/A
Hi there. I am trying to Remove an actor and Replace it with a different one in a common event.
I am using Copy Actors from other plugins, what these do is replicate identical actors with unique ID's that start in the thousands, which means I can't guarantee the instance of an actor has the same ID every time.
What I want to do is
Common Event
-Locate the Class_ID of the Actor in party. (I have unique classes for all Actors)
-Use Class_ID to Identify Actor ID
-Store Actor_ID in variable
-Confirm Actor_ID has met Required Level. If not, check if there are other actors with the same class ID that might do.
-Use Actor_ID Variable to remove actor.
I don't know how to find Class_ID in party. Much less how to use that to identify Actor ID.
I am also unsure about how to tie that Actor ID to a variable.
I am also not sure what to do if there is multiple actors with the same class_ID.
Alternately I could try and find Actor by name instead of Class_ID or by Notetag. What matters is if I can locate the actor and get the ID so I can set it to variable to check level and then potentially remove the actor.
I am assuming, I will have to do a scripthcall to Remove the Actor by variable instead of by ID.
This is my current attempt
If there is anyone out there who can help me?
I am using Copy Actors from other plugins, what these do is replicate identical actors with unique ID's that start in the thousands, which means I can't guarantee the instance of an actor has the same ID every time.
What I want to do is
Common Event
-Locate the Class_ID of the Actor in party. (I have unique classes for all Actors)
-Use Class_ID to Identify Actor ID
-Store Actor_ID in variable
-Confirm Actor_ID has met Required Level. If not, check if there are other actors with the same class ID that might do.
-Use Actor_ID Variable to remove actor.
I don't know how to find Class_ID in party. Much less how to use that to identify Actor ID.
I am also unsure about how to tie that Actor ID to a variable.
I am also not sure what to do if there is multiple actors with the same class_ID.
Alternately I could try and find Actor by name instead of Class_ID or by Notetag. What matters is if I can locate the actor and get the ID so I can set it to variable to check level and then potentially remove the actor.
I am assuming, I will have to do a scripthcall to Remove the Actor by variable instead of by ID.
This is my current attempt
If there is anyone out there who can help me?
Attachments
Last edited: