[Help] Need The Building Trigger. And something else.

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

lazyb0ne
Newcomer
Posts: 15
Joined: October 29th, 2007, 9:28 pm

[Help] Need The Building Trigger. And something else.

Post by lazyb0ne »

Hi! alright, I want to request a trigger for like , when u build up to 9 houses remove the Build House Icon from your peasant so you couldn't build anymore of that structure. Please help. You could reach me on AIM, my sn is layzab0ne. Thanks ;]

Also uhm I want to ask someone could they help me with this problem. Alright I copy and pasted a terrain from someone's map a Bigger map and I copied everything from the old map into the new one except the triggers. (I also copied the Variables.) Then when I got to the triggers I try to save it and it doesn't work. Btw, the triggers are jass. I wonder is there any solution to this. The Map is CCD Custom Castle Defense. Thanks.
Tobias
Senior Member
Posts: 108
Joined: March 18th, 2008, 3:42 pm
Title: Map Maker
Location: Canadadadada

Re: [Help] Need The Building Trigger. And something else.

Post by Tobias »

Spoiler:

Code: Select all

Build
    Events
        Unit - A unit Begins construction
    Conditions
        (Unit-type of (Constructed structure)) Equal to Town Hall
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Count structures controlled by (Owner of (Triggering unit)) (Include incomplete structures)) Equal to 10
            Then - Actions
                Unit - Explode (Constructing structure)
            Else - Actions
Well, this isnt exactly it but it does almost the same thing :P




EDIT:
Spoiler:

Code: Select all

Untitled Trigger 001
    Events
        Map initialization
    Conditions
    Actions
        Player - Limit training of Town Hall to 9 for (Triggering player)
This is it no?
lazyb0ne
Newcomer
Posts: 15
Joined: October 29th, 2007, 9:28 pm

Re: [Help] Need The Building Trigger. And something else.

Post by lazyb0ne »

Yup I think its it thanks!