Plot:Get hero name

From OHRRPGCE-Wiki

Jump to: navigation, search
get hero name (ID, hero)

This command will take the name of hero #hero, and stick it in string #ID, overwriting its contents.

Remember that this command expects the hero's position in the party, not the hero:name constants nor the hero's position in the walkabout party. If you want to get the name of a hero according to their position in the walkabout party, you should use [[Plot:|]] and [[Plot:|]]

[edit] Examples

# This example gets the name of the leader and stores it in string ID 1

get hero name (1,find hero(hero by rank(0))) 
Personal tools