Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Let's say you have a boolean called myToggleSwitch and a button
(i'll simplify the code for brevity)
While i'm not as inherently familiar with LUA, it should support basic functionality like this.
On the off-chance that it doesn't, the other solution is a state machine like this:
Using the latter it's easy to also make a button have nested looping states, like such:
But it's also possible with a simple X += 1 if > 4 X = 1
PS Writing LUA without semicolon terminators makes me feel dirty.
The person has asked LUA help for before as well, so i'm intentionally omitting that solution as a choice myself.