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.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: Roy, Rawflesh0615