Druxx16051@legacy41536936 (talk | contribs) |
Arrothben@legacy41525146 (talk | contribs) No edit summary |
||
Line 14: | Line 14: | ||
== Example Code == |
== Example Code == |
||
− | :If you have a character named " |
+ | :If you have a character named "Yalu", to promote him to leader you can type in-game: |
− | ::/script PromoteToLeader(" |
+ | ::/script PromoteToLeader("Yalu"); |
Revision as of 21:01, 2 August 2009
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Promotes a unit to party leader.
PromoteToLeader(unitId or playerName)
Arguments
- unitId
- UnitId - The unit to promote.
- playername
- PlayerName - The full name of the player to promote.
Returns
- nil
Example Code
- If you have a character named "Yalu", to promote him to leader you can type in-game:
- /script PromoteToLeader("Yalu");