• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

[General] Is this wise?

Status
Not open for further replies.
Level 3
Joined
Mar 10, 2019
Messages
32
Hey guys,

so I have some complex team match ups and stuff and thought having some triggeres to fire and then get a result would be usefull. Essentially using them as functions since well the jass code and function code is to much for me right now.

Is a setup like this wise?

Here are my structure:
Capture.PNG


And here is for example one of those triggers being used in another one:

  • GetTeamsStillPlayingFull
    • Events
    • Conditions
    • Actions
      • -------- #### SET - TEAMS_STILL_PLAYING_COUNT --------
      • Trigger - Run GetMaxCountOfStillPlayingTeams <gen> (checking conditions)
      • -------- #### SET - TEAMS_STILL_PLAYING_INDICES --------
      • Trigger - Run GetArrayOfStillPlayingTeamIndices <gen> (checking conditions)
      • -------- #### SET - TEAMS_STILL_PLAYING_FILLED --------
      • For each (Integer A) from 1 to (TEAMS_STILL_PLAYING_COUNT + 1), do (Actions)
        • Loop - Actions
          • Set TEAMS_STILL_PLAYING_FILLED[(Integer A)] = teamsPlayerGroupArray[TEAMS_STILL_PLAYING_INDICES[(Integer A)]]
Is the "Run" sequential? Or is this an async call (which I don't asume to be)?
 
Status
Not open for further replies.
Top