|
|||||||
| First Aid: Map Making Help Your trigger doesn't work? You need an idea for your heroes ultimate? Post here to get help with any kinds of smaller problems. We will try to help as fast as possible. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
IM Chewbacca Raaawr
Clan Member [Grunt]
Join Date: Oct 2009
Location: Sweden
Posts: 106
![]() |
Hello everyone i need some help! Im doing a map you see and it should be little like legion td. If i build one tower (Footman) and make that tower to a footman.Then i'll hide the tower and spawn the footman as a unit. How do i do so the unit footman spaws there? at the point of the footman tower? Well one unit is easy but if it is different units? If i have 10 unit towers you can build in the map should i do 1 trigger for each unit? Like if this tower is built then spawn this unit and do that with all 10 units/towers?
Ty for help hope you understand!
__________________
Raaaaaawr! |
|
|
|
|
|
#2 |
|
The Imba Peon Lord
Clan Member [Shaman]
Join Date: Dec 2006
Location: Netherlands
Posts: 1,757
![]() ![]() |
You want to summon a footman for the tower you build? And f.e. a grunt for another tower you build?
I think you'll have to create seperate triggers for every tower. Or do a lot of If-Then-Else-constructions. The triggers should be quite simple, but if you need help on anything, please be more specific. |
|
|
|
|
|
#4 | ||||||||||||
|
One hilarious guy
Clan Member [Grunt]
Join Date: Dec 2006
Location: Sweden
Posts: 1,400
![]() ![]() |
Custom value of unit + array containing the units those custvalues will change into + Point(Position Of Unit)
__________________
|
||||||||||||
|
|
|
|
|
#5 |
|
System maker
Clan Member [Grunt]
Join Date: Oct 2007
Location: The Netherlands; GMT+1 / GMT +2
Posts: 645
![]() |
It'd do it like this:
Initiation trigger Code:
event - elapsed game-time = 0.00sec condition - none actions set UnitType1[0]=FootmanTower set UnitType1[1]=SniperTower set UnitType1[2]=OrcTower set UnitType2[0]=FootmanUnit set UnitType2[1]=SniperUnit set UnitType2[2]=OrcUnit Code:
event - whenever u want
condition - whatever u want
actions
pick every unit owned by player or pick every unit in region
Integer A from 0 to 'X'
if unittype of picked unit is equal to UnitType1[integerA]
then create one UnitType2[integerA] at position of Picked Unit
else do nothing
Warning: this second trigger contains a unitgroup and a location leak.
__________________
![]() Youtube: http://www.youtube.com/user/FrozenCure Mirror system: http://www.clancbs.com/board/showthread.php?t=3194 I got a 3D version... Ask me if you want it, haven't uploaded it yet. |
|
|
|
|
|
#6 |
|
IM Chewbacca Raaawr
Clan Member [Grunt]
Join Date: Oct 2009
Location: Sweden
Posts: 106
![]() |
Well thanks for all the help but i'll do an long but easy part like this if someone is interested
Code:
__________________
Raaaaaawr! |
|
|
|
|
|
#7 |
|
Where's my neg rep?! : (
Clan Member [Grunt]
Join Date: Mar 2008
Posts: 432
![]() |
Ofc I'm interested in how to do a basic trigger with shitloads of useless work. Thanks.
|
|
|
|
|
|
#8 |
|
IM Chewbacca Raaawr
Clan Member [Grunt]
Join Date: Oct 2009
Location: Sweden
Posts: 106
![]() |
Just take it easy. if youre not intrested dont look..
__________________
Raaaaaawr! |
|
|
|
|
|
#9 |
|
God of GUI
Clan Member [Grunt]
Join Date: Sep 2007
Location: Germany
Posts: 88
![]() |
Don't forget to fix the memory leak!
|
|
|
|
|
|
#10 |
|
IM Chewbacca Raaawr
Clan Member [Grunt]
Join Date: Oct 2009
Location: Sweden
Posts: 106
![]() |
I said that before
[quote=Chewii;53561And ofc removing the leaks
__________________
Raaaaaawr! |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|