Staredit Network > Forums > SC2 Assistance > Topic: Function quick help
Function quick help
Jun 13 2010, 5:12 am
By: Xesh  

Jun 13 2010, 5:12 am Xesh Post #1



Can someone briefly explain Functions and..their function?

Namely what they do..and why I need them. Ive begun work using them but im..a little lost as to why im even using them, kindof like trying to pick up a potato to make light (without knowing strange earth-science)



None.

Jun 13 2010, 7:20 am Jack Post #2

>be faceless void >mfw I have no face

There are probably sites that explain better, because functions aren't SC-specific. Anyway, functions are like triggers, but in code. E.g. if a number equals 6, do this. Else, do that.

If you're just starting out with coding, I'd suggest using the normal trigger editor and only using the text trigger editor a little, until you have more experience.



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Jun 13 2010, 7:25 am Centreri Post #3

Relatively ancient and inactive

Functions accept an iput and provide an output. More applicably, they are what powers triggers: Triggers are functions in that they accept events and conditions as input and then do something as ouput. Each action is a function with a null input and an output. A custom function would be one that you define with whatever inputs/outputs you'd like.



None.

Jun 13 2010, 8:03 am Xesh Post #4



Ooohh I see. Thanks!



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:24 am]
anoeth47 -- Sie_Sayoka >>> Thanks!!! Got the png's to show up in Map Showcase
[2026-4-22. : 10:20 pm]
anoeth47 -- Sweet
[2026-4-22. : 7:48 pm]
NudeRaider -- https://staredit.net/381642/ really makes you appreciate (again) how good sc music is.
[2026-4-18. : 3:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[2026-4-17. : 4:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[2026-4-17. : 11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
Please log in to shout.


Members Online: spezialumzuege, NudeRaider