HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

sum more help

01-27-2003, 03:59 AM#1
badomen
ok i want to make it if a player clicks on a town hall and types buy it costs him $100

and if he clicks on barics and types buy it only costs him $50

heres the trigger so far:

EVENT: player 1-6 types "buy" as an exact match

COND: Player 1-6 gold greater than or equal to 50

ACTION: IF ((owner of (random unit from (units currently selected by player 1 (red))) equal to neutral passive*)THEN do (unit change ownership of (unit currently selected by player 1 (red))) to player 1 (red) and chang colour ELSE do nothing

how can i make it tell between the 2 buildings?

i have tryed to add a unit compariso in there but that wont work

any help
please
01-27-2003, 04:02 AM#2
pigchow777
a condition, if selected unit is = town hall
01-27-2003, 04:52 AM#3
badomen
nope can still buy the town hall 4 $50
01-27-2003, 07:36 AM#4
Myster Mystery
There's a Boolean Condition requiring a certain unit to be selected.
Boolean- (town hall) is selected.