Cryogenesis
Community Developer
- Joined
- Jul 13, 2010
- Messages
- 2,128
Question about Getting Companion name [+Answer]
Answer Edit:
So i figured it out. If you want to do something based upon what companion you currently have, you need to use the following code:
For all companions see Attachments.
BUT, do not call the same If condition with the companion name twice in a row!!!
At least put a moveto between them, else the bot will go bonkers and wont continue your profile:
So example
If Condition for checking Companion (Can be all of them in a row like in the Attachment),
Then when done, move or do something else
then if condition for checking companion... and so on...
Cryogenesis said:Hey devs,
Is there a way to determine what the companion name is?
In the profiles there is a condition for Me.Class but is there also something like Comp.Name orso?
If yes how does it look like?
Example:
im looking something like:Code:<If Condition="(Me.Class == CharacterClass.Consular)">
Code:<If Condition="(Comp.Name="Elara Dorne")">
Thanks in advance for the reply!
Answer Edit:
So i figured it out. If you want to do something based upon what companion you currently have, you need to use the following code:
Code:
<If Condition="BuddyTor.Me.Companion.Name.Contains("Aric")">
<UserDialog Title="ME" Message="Aric Jorgan it is" /> <!-- Change this line to whatever needs to be done -->
</If>
For all companions see Attachments.
BUT, do not call the same If condition with the companion name twice in a row!!!
At least put a moveto between them, else the bot will go bonkers and wont continue your profile:
So example
If Condition for checking Companion (Can be all of them in a row like in the Attachment),
Then when done, move or do something else
then if condition for checking companion... and so on...
Attachments
Last edited: