Sb forum speech.png DiscordLink.png FacebookLink.png RedditLink.png SteamLink.png TwitterLink.png YoutubeLink.png

Talk:YOLOL Tricks

From Starbase wiki
Revision as of 08:55, 7 September 2021 by Mija (talk | contribs) (Created page with "Should this page be used to add in smart suggestions people can use while writing yolol or solely "tricks"? If this page should be solely for "tricks" and not for smart soluti...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Should this page be used to add in smart suggestions people can use while writing yolol or solely "tricks"? If this page should be solely for "tricks" and not for smart solutions to problems should there be a separate entry created?

An example of a smart solution to a problem is to write some sort of example code illustrating dynamic gotos. like if you have a switch (-1,0,1) you can directly jump to the correct line by doing something like:

goto:Switch+2, where -1 goes to line1, 0 goes to line 2 and 1 goes to line 3. this obviously saves a lot of room from having if statements looking for :Switch state and then going to corresponding lines.

Another super basic smart solution people may not realize without seeing it suggested is to tie something directly to a button. instead of having "If :Button then :Device=1 end" you can just do :Device=:Button.

Theres a lot of things like this, ways to not use if statements to save space, etc. Are these to be considered "tricks" or are these to be considered something else? I think we should add examples like this to this page so people learning yolol can be introduced to clever ways to go about things.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.