Getting character's name

All resolved question will be found here. It is recommended that you browse / search through this section first and see if your question has been answered before

Moderators: Moderators, Documentation Writers

Message
Author
hellmasterbg
Noob
Noob
Posts: 2
Joined: 22 May 2015, 18:52
Noob?: Yes

Getting character's name

#1 Post by hellmasterbg »

I'm trying to make a macro that needs to get the character name I'm playing with, to a variable.
As far as I searched, there is no special variable for the own character's name, or is it?
I'm trying many ways to get the name from the console, but I cannot find one that works. Someone knows what I could do?

LuisSilva
Noob
Noob
Posts: 5
Joined: 03 Jul 2016, 19:17
Noob?: No

Re: Getting character's name

#2 Post by LuisSilva »

Code: Select all

$charname = @eval ($::char->{'name'}) 

Code: Select all

macro luis {
$charname = @eval ($::char->{'name'}) 
log  == $charname ==
}

hellmasterbg
Noob
Noob
Posts: 2
Joined: 22 May 2015, 18:52
Noob?: Yes

Re: Getting character's name

#3 Post by hellmasterbg »

Thank you very much!

Do you have a source I can refer to for that kind of information? Openkore Wiki seems to be kinda lacking in these kinds of command lines.

Sophos
Human
Human
Posts: 22
Joined: 20 Jul 2009, 01:58
Noob?: Yes

Re: Getting character's name

#4 Post by Sophos »

LuisSilva wrote:

Code: Select all

$charname = @eval ($::char->{'name'}) 

Code: Select all

macro luis {
$charname = @eval ($::char->{'name'}) 
log  == $charname ==
}
LuisSilva

Do you know how can I get the name of de party of the player near me? I need that AB the support outside the PT.

I thought a plugin would be ideal for what I need ... but unfortunately I can do .
If you knew how to get the PT name of the player , I think he could make a macro ...

If you can help me... I´ll be very grateful.

Loot this topic: http://forums.openkore.com/viewtopic.php?f=32&t=211413

Tks
[]s

SophoS

Locked