Getpname: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
getpname <QUOTE #> <gamevar holding PLAYER ID> | getpname <QUOTE #> <gamevar holding PLAYER ID> | ||
Replaces a [[quote]] with the name of a player. (Player names are entered in the PLAYER SETUP menu.) | |||
Example (displays the name of the player in the upper left corner of the screen): | Example (displays the name of the player in the upper left corner of the screen): | ||
onevent EVENT_DISPLAYREST | |||
setvar digx 2 | |||
onevent EVENT_DISPLAYREST | setvar digy 2 | ||
setvar shade 0 | |||
setvar pal 0 | |||
getpname 125 THISACTOR | |||
setvar temp 125 | |||
minitext digx digy temp shade pal | |||
endevent | |||
endevent | |||
[[Category:EDuke32 specific commands]] | |||
[[Category:String manipulation]] |
Revision as of 23:15, 22 September 2006
getpname <QUOTE #> <gamevar holding PLAYER ID>
Replaces a quote with the name of a player. (Player names are entered in the PLAYER SETUP menu.)
Example (displays the name of the player in the upper left corner of the screen):
onevent EVENT_DISPLAYREST setvar digx 2 setvar digy 2 setvar shade 0 setvar pal 0 getpname 125 THISACTOR setvar temp 125 minitext digx digy temp shade pal endevent