Ya Squirel I was thinking the same thing but was wondering if there was a better way as well haha. Thanks man for helping though. Same to you, Glenphir and Komaqtion.
Okay, this trigger has been solved! I just gave every Peasant its own custom value and made an unit array Farm(custom value of...
OK, so big update.
After the User orders a Peasant to gather food from a Farm, the Peasant will go into a loop where it will gather food from Farm then return to nearest Town Hall and start all over again.
Mana
Events
Unit - A unit Starts the effect of an ability...
Sure, thanks for your time.
So revised trigger:
Mana
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Farm
Actions
Wait 1.00 seconds
Set Food[(Player number of (Owner of (Triggering unit)))] =...
Ok Glenphir and Komaqtion, thanks for your help. Revised trigger below:
Mana
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Mana Absorb
Actions
Set Food[(Player number of (Owner of (Triggering unit)))] =...
Ya but is there something wrong with the trigger I have already?
EDIT: Well I mean there IS something wrong :P because it doesn't work :(
Whats wrong with it?
Mana Absorb works fine on the building if you cast it yourself, I just want it to keep recasting after you order a Peasant to Mana Absorb the building.
So the premise of my trigger is that I'm adding a 3rd resource Food.
Peasants will be able to "gather" food from Farms by Mana Absorbing the mana of the Farm.
The cooldown of Mana Absorb is 0 seconds and the casting time is 20 seconds. Peasants initially have 0 mana and have a capacity of...
Indeed they both work!
SGT Vejito told me the gist of it, TwoHeadedBoy told me EXACTLY how to do it, and TriggerHappy told me how to do it the pro way :)
Thanks, you guys!
Black Mask is initially enabled in the map. But once a player does something I want that player to be rid of the black mask. I can't seem to find a way to do this. I've searched the forums but all I can find are threads on how to reveal it for everybody.
Thanks everyone for reading...
WOW! TO BE DUPED BY SOMETHING I LEARNED IN MIDDLE SCHOOL: SETTING VARIABLES.
From your post SGT Vejito I realized that since I also didn't set the FOOD_LIMIT variable then for everyone other than red, the FOOD_LIMIT would be 0 instead of 40!
Thank you, SGT Vejito!
And of course, I'm not...
Thanks also for your time Renendaru!
Hmm, I don't have a trigger "setting" the array variable Unit[] but the variable is a Unit-Type Array with an Initial Value of... lets just say Footman.
Lifeless, thanks for posting :)
But I'm not sure what you mean. The trigger I'm using is "Unit - Create Units Facing Point."
The red spawns work. So all I did was copy and paste that trigger and change the region and player for Blue. But blue doesn't work, lol.
EDIT 1:
For red...
Oh lol. Novice mistake. How come units spawn for red then?
EDIT: I changed triggering player to be Player 2 (Blue) for Blue and no units spawn o.o
EDIT 2: I forgot to mention that the variable "Food_Limit" is an integer array set at 40. And that for red the units do spawn until there is...
First off, I'd like to shout out and say thanks to the admins/mods of this place and also to the people who contribute because I've perused many threads in here :)
So for my problem...
Basically, after 3 seconds of game time I have 4 players spawning units:
Spawn Initialization...