User Tools

Site Tools


modding:function:scrgetlistentry

Discuss this page on this page's Talk Page.

scrGetListEntry

This function is not included in the Xelerus list.

Syntax (scrGetListEntry screen) → listitem
Argument List screen: The screen you want to get the currently selected list item from.
Returns listitem: the currently selected list item
Category input, screen
Description This function returns the currently selected list item from a screen.

Example

Example taken from CommonwealthID

(and (scrGetListEntry gScreen) (geq (plyGetCredits gPlayer) 100))

Returns True if an entry is selected on gScreen and the player has more than 100 credits.

modding/function/scrgetlistentry.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1