HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

repeat -$ and creat unit/on regions trig

01-04-2003, 10:24 PM#1
Candy_Warlock
Ok i dunt know how to make a trig that

WHEN A UNIT is on a region, the owner loses sum gold evry sec. and he gets an unit evry # of sec his hero stands on the region.
And plz tell me how to prevent players to cheat da trig ( assure the trig checks their gold amount).

Thats wat i need to know tell me wat should be in the trig plz

:D
01-05-2003, 06:23 AM#2
Myster Mystery
So what you want is the trigger to not work if the player doesn't have enough gold, right?

Use an integer condition, and have it check the player property of the current gold owned. Then make it so it has to be greater than or equal to.
01-05-2003, 07:53 PM#3
Candy_Warlock
CAn u also tell me how to make a repeat - # $ evry sec and create an unit evry second plz. Cuz i cant find those
01-05-2003, 11:02 PM#4
Myster Mystery
Events
Time- Every X seconds

Conditions
Boolean- (whichever unit must be in the region) is in (region x) equal to true
Integer- ((current amount of gold owned by (player x)) greater than or equal to X.

actions
Player- Add (-x) gold from player x
Unit- Create one (Bought unit) in a random point in (region x).

Yep, I think that's about it... I wasn't looking at the editor while doing this, so I'm sorry if something's wrong. If the action to add gold doesn't work, try using the Player- set player property then use an arithmetic thing to set it to the current amount of gold - X.
01-07-2003, 04:56 PM#5
Candy_Warlock
THanks dude!
Im at school now and dunt hav time to check it but it looks like the editor all right.
Im sure dat ill work and thanks again for the help.

:ggani: :D
01-07-2003, 08:08 PM#6
Candy_Warlock
wuts ur wc3 name ill add u in the creds
01-12-2003, 09:29 PM#7
Myster Mystery
You don't need to put me in the credits, but Myster Mystery would do. If you need anymore help, feel free to ask and I'll try to answer as soon as possible.