• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

spawn..

Status
Not open for further replies.
Level 8
Joined
Jan 18, 2007
Messages
331
hi.

have you ewer played a maul? if, then you´ll know wath im talkintg about.

4 ewery 1 els::: i got this map i´w done really nice:grin: but! i want 2 make a repeating monster spawn that uses a timer window 2 inform wen the next wave is arriving. i just dont know how 2 start the timer window first AFTER all the attacking enemys are dead. well hope you´ll understand.:coolgrunt:
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
I don't play mauls very often, but for the description you gave me, you could create a variable for Unit Groups. Then, set the unit group to the units in the region (make sure all units are caught), and create another trigger to check every X second(s) for when the group is empty.
I cannot give you a good example since I rarelly play mauls/TDs and I've never worked on one, but here's a try:

Code:
Spawn
    [COLOR="Red"][B]Events[/B][/COLOR]
        Time - Elapsed game time is 10.00 seconds
    [COLOR="Lime"][B]Conditions[/B][/COLOR]
    [COLOR="Silver"][B]Actions[/B][/COLOR]
        Unit - Create 1 Dark Troll for Neutral Hostile at (Center of ([I]YourRegion[/I])) facing (...)
        Set [I]UnitGroup[/I] = (Units in ([I]YourRegion[/I]))


In case you've got more than one spawn point, maybe you should use arrays.
Another example:

Code:
Spawn
    [COLOR="Red"][B]Events[/B][/COLOR]
        Time - Elapsed game time is 10.00 seconds
    [COLOR="Lime"][B]Conditions[/B][/COLOR]
    [COLOR="Silver"][B]Actions[/B][/COLOR]
        Unit - Create 1 Dark Troll for Neutral Hostile at (Center of (YourRegion)) facing (...)
        Unit - Create 1 Dark Troll for Neutral Hostile at (Center of (AnotherRegion )) facing (...)
        Trigger - Run Timer <gen> (checking conditions)

Code:
Timer
    [COLOR="Red"][B]Events[/B][/COLOR]
    [COLOR="Lime"][B]Conditions[/B][/COLOR]
    [COLOR="Silver"][B]Actions[/B][/COLOR]
        Set UnitGroup[1] = (Units in (YourRegion))
        Set UnitGroup[2] = (Units in (AnotherRegion))

Code:
Check
    [COLOR="Red"][B]Events[/B][/COLOR]
        Time - Every 2.00 seconds of game time
    [COLOR="Lime"][B]Conditions[/B][/COLOR]
        And - All (Conditions) are true
            [COLOR="Lime"][B]Conditions[/B][/COLOR]
                (UnitGroup[1] is empty) Equal to True
                (UnitGroup[2] is empty) Equal to True
    [COLOR="Silver"][B]Actions[/B][/COLOR]

You should use If/Then/Else to check if they belong to hostile on trigger Timer, or maybe use another trigger to prevent units from players to enter there.
For the timers, you should create a variable for Timers and use Countdown Timer - Create Timer Window, and Countdown Timer - Start Timer.

I guess I explained in a confusing way. That's why my reputation never grows T_T if you have more questions, feel free to ask.
 
Level 8
Joined
Jan 18, 2007
Messages
331
thank you, il try that. but! theres a but agan. i want 2 increase the nuber of attackers and i dont know how 2 make this repeating trigger (im gonna have like 60 lvls,). cant you use variables and increase the attackers that way?.
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
It is possible. Create an Integer variable and increase it's value by 2 before every wave.

Code:
Trigger
    [COLOR="Red"][B]Events[/B][/COLOR]
    [COLOR="Lime"][B]Conditions[/B][/COLOR]
    [COLOR="Silver"][B]Actions[/B][/COLOR]
        Set Int = ([COLOR="Blue"]Int + 2[/COLOR])
        Unit - Create [I]Int[/I] Kobold for Neutral Hostile at (Area) facing (...)

NOTE: The code in blue is an Arithmetic.
The variable's name is Int in this case.
 
Level 8
Joined
Jan 18, 2007
Messages
331
Merged Posts

thank you werry mutch

but. waths the variable style? is it unit or wath?

Edited: sorry i got it

but... can you explain 2 me if it shuld be different triggers( and to be activated by a Trigger- start timer...) or if i shuld make all thos triggers 2 1?.....
 
Last edited by a moderator:
Status
Not open for further replies.
Top