Skip to content

Latest commit

 

History

History
50 lines (27 loc) · 1.26 KB

MenuItem.float.obj.string.float.float.md

File metadata and controls

50 lines (27 loc) · 1.26 KB

MenuItem(float, obj, string, float, float)

Adds an item to the shop. Info about the shop can be found here.

void menuItem(ref float variable, obj picture, const string NAME, const float MAX_ITEMS, const float PRICE_INCREASE)

Parameters

variable

Modifiers: ref

Type: float

Which variable to store the value of times bought in, should have saved modifier.

picture

Type: obj

Which object to display for the item.

NAME

Modifiers: const

Type: string

Name of the item.

MAX_ITEMS

Modifiers: const

Type: float

Maximum number of times the item can be bought, can be 2-100 or one of MAX_ITEMS.

PRICE_INCREASE

Modifiers: const

Type: float

Specifies what the initial price is and how it increases, one of PRICE_INCREASE.

Related