• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

In need of Struct ideas.

Status
Not open for further replies.
Level 20
Joined
Jan 6, 2008
Messages
2,622
Hello everyone, Im learning Structs at the moment, but i cant figure out which structs to make. Ill tell you what a struct is if you dont know.

A struct is like a shortcut for a long script, like GUI is a shortcut to JASS, so if i do
JASS:
call MYSTRUCT.MYMETHOD(variabledata, variabledata2)

and then it will do ALL these actions in a single call, There are some advanced structs that i will try to learn later.

JASS:
struct MYSTRUCT
     static method MYMETHOD takes variable variabletype, variable2 variabletype2 returns thistype
     // Lots of actions can be added here :D
     call CreateUnit(variable, variable2) // for example
     endmethod
endstruct

but the problem is i dont know how, so if you got an idea (the idea can also be a somewhat request), i would appriciate it. Since i find structs fun to make, but dont know what i should make.
 
Status
Not open for further replies.
Back
Top