Getpname: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
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]] |
Latest revision as of 11:31, 4 May 2009
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