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.
[03:35 pm]
Symmetry -- though mine's probably worse
[03:35 pm]
Symmetry -- That certainly sounds similar to what I've made
[06:28 am]
Ultraviolet -- sounds like Bound & Defend
[07:43 pm]
Symmetry -- If you take the reins you damn well be ready to ride
[2026-5-23. : 2:46 pm]
NudeRaider -- you wish
[2026-5-23. : 12:43 am]
IskatuMesk -- Ah, so Reindeer Breeding 3: BDSM edition.
[2026-5-22. : 12:45 am]
Moose -- tbh
[2026-5-20. : 8:27 pm]
Symmetry -- It's a bound map where you cross obstacles to earn units to defend your base
[2026-5-20. : 8:16 pm]
Symmetry -- No, the world isn't ready for that
[2026-5-20. : 5:11 pm]
Zoan -- Reindeer Breeding 3?
Please log in to shout.


Members Online: Symmetry, Moose