HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

dunno what to put in the subject line...

01-01-2003, 04:04 PM#1
Phil_123
i wanna make a system that works like this but cannot find all the right code to do it...:

there are 2 teams in my map. each team has 10 zepplins. when a unit enters TeamXChangeOwner region, change owner of entering unit to player 11/12 and load the unit into a random non-full zepplin.

i can get the change owner action right, but i cannot get the load unit into random non-full zepplin action to work.. (dunno how to detect whether a zeppelin is full or not)
01-01-2003, 09:22 PM#2
CBWhiz
Just tell them all to load into one zeppilen.

Have another trigegr that fires every time a unit is loaded:

have this trigger add 1 to a global each time
if [global / 8] = [(round up) global \ 8] , tell them all to load into zepplin [(round up) integer (global / 8)]

but that may be too mathy for you ;) if it is, just extend it to several triggers
01-08-2003, 08:50 AM#3
Phil_123
what is a global?
01-08-2003, 11:39 PM#4
CBWhiz
global = global variable - the things you make in the variable menu and work everywhere ;)

local = local variable - the things you define in jass triggers