• 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.

integer a and b

Status
Not open for further replies.
Level 17
Joined
Nov 13, 2006
Messages
1,814
it is a variable, used for store a number, like a bad where u can store books, but in this case virtual bag where u store number, to identify the "bag" we use a label, that couldbe anything (what start with letter and dont contain specific character) like: a, b c, pista, jani, number, blabla
 
Level 11
Joined
Oct 31, 2010
Messages
1,057
i would refer to them as a big storage containing many other storages


lets say the trigger is for every big storage (integer a) from storage (1) to storage (10)
if player(big storage(integer a)) is equal to is playing

the big storage will search every storage from 1 to 10 and see whether they are playing or not
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
They are integers just as any other integer variable you can create. Warcraft 3 just provides them for the GUI interface.

When you loop you do a group of actions for every value assigned to the loop. If you loop from 1 to 10 using Integer A, you're doing a loop using IntegerA as 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10. Wc3 handles the loops untill you reach a limit.

When you declare "From 1 to 10" Wc3 handles 1 as the "MinimumA" and "10" as "MaximumA" and stipulates that the loop will end when A, wich starts at MinimumA, reaches MaximumA, increasing it's value by 1 on every loop instance.
 
Status
Not open for further replies.
Top