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.
[05:01 pm]
NudeRaider -- Vrael
Vrael shouted: because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
given Moose's post I don't think he had to guess. ^^
[04:53 pm]
NudeRaider -- lil-Inferno
lil-Inferno shouted: Nude why'd you delete my shout
why not? :awesome:
[04:26 pm]
Vrael -- because you perfectly guessed SEN's root password and we cant have that displayed all over the shoutbox
[03:58 pm]
lil-Inferno -- sadjfjkasdhfijsadhmfcjhsdajkvfmjadslkfhjsdkahf
[03:58 pm]
lil-Inferno -- Nude why'd you delete my shout
[03:35 pm]
NudeRaider -- never trust a statistic you haven't forged yourself
[04:37 am]
Ultraviolet -- 80% of statistics are made up on the spot
[2026-6-08. : 8:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
Please log in to shout.


Members Online: Symmetry