Clan CBS

Go Back   Clan CBS Forums > Warcraft Modding Support > First Aid: Map Making Help

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.

Reply
 
Thread Tools Display Modes
Old 02-08-2010, 08:20 PM   #1
Chewii
IM Chewbacca Raaawr
Clan Member [Grunt]
 
Chewii's Avatar
 
Join Date: Oct 2009
Location: Sweden
Posts: 106
Chewii is a puddle of milk
Default (A little) Td Prob

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!
Chewii is offline   Reply With Quote
Old 02-08-2010, 08:54 PM   #2
Battle_Lord_NL
The Imba Peon Lord
Clan Member [Shaman]
 
Battle_Lord_NL's Avatar
 
Join Date: Dec 2006
Location: Netherlands
Posts: 1,757
Battle_Lord_NL is a black spot on a cows hiveBattle_Lord_NL is a black spot on a cows hive
Default

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.
__________________


Go check out my WarCraft Cursors
Battle_Lord_NL is offline   Reply With Quote
Old 02-08-2010, 09:03 PM   #3
Skargoth
Where's my neg rep?! : (
Clan Member [Grunt]
 
Skargoth's Avatar
 
Join Date: Mar 2008
Posts: 432
Skargoth is a puddle of milk
Default

<.< ....

Arrays.
__________________

I'm a Laosh'Ra

Madness will prevail ... eventually ....
Skargoth is offline   Reply With Quote
Old 02-09-2010, 09:22 AM   #4
Zakamutt
One hilarious guy
Clan Member [Grunt]
 
Zakamutt's Avatar
 
Join Date: Dec 2006
Location: Sweden
Posts: 1,400
Zakamutt is a black spot on a cows hiveZakamutt is a black spot on a cows hive
Default

Custom value of unit + array containing the units those custvalues will change into + Point(Position Of Unit)
__________________
A SPOTIFY PLAYLIST.
ProjectDescriptionStatus
Ninja TacticsFFA 3ps inspired by Archery Tactics with custom spells I am currently overworked but may improve this later / map is "Final-ish"
DuelistHero battles, arena style; solo or team. Skillbased gameplay with few things "Click-to-damage".Alpha. Concept 40-60%, Terrain 10%, Triggers like 5%. frozen-ish.
Caduan's TaleSingle-player linear RPGFrozen; story playable but only amounts to around 5 mins
Zakamutt is offline   Reply With Quote
Old 02-09-2010, 02:12 PM   #5
frozenwind
System maker
Clan Member [Grunt]
 
frozenwind's Avatar
 
Join Date: Oct 2007
Location: The Netherlands; GMT+1 / GMT +2
Posts: 645
frozenwind is warm milk
Default

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
Replace trigger
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
With X being the last array value set in your ini trigger.

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.
frozenwind is offline   Reply With Quote
Old 02-09-2010, 04:20 PM   #6
Chewii
IM Chewbacca Raaawr
Clan Member [Grunt]
 
Chewii's Avatar
 
Join Date: Oct 2009
Location: Sweden
Posts: 106
Chewii is a puddle of milk
Default

Well thanks for all the help but i'll do an long but easy part like this if someone is interested


Code:
 Actions
 Unit Group - Pick every unit in (Units of type Footman (Tower)) and do (Actions)
 Loop - Actions
 Unit - Hide (Picked Unit)
 Unit - Create 1 Footman for (Owner of (Picked unit)) at (Position of (Picked unit)) facing Default building facing degrees
The easiest part ^^ And ofc removing the leaks
__________________
Raaaaaawr!
Chewii is offline   Reply With Quote
Old 02-09-2010, 05:51 PM   #7
Skargoth
Where's my neg rep?! : (
Clan Member [Grunt]
 
Skargoth's Avatar
 
Join Date: Mar 2008
Posts: 432
Skargoth is a puddle of milk
Default

Quote:
Originally Posted by Chewii View Post
Well thanks for all the help but i'll do an long but easy part like this if someone is interested
Ofc I'm interested in how to do a basic trigger with shitloads of useless work. Thanks.
__________________

I'm a Laosh'Ra

Madness will prevail ... eventually ....
Skargoth is offline   Reply With Quote
Old 02-09-2010, 07:04 PM   #8
Chewii
IM Chewbacca Raaawr
Clan Member [Grunt]
 
Chewii's Avatar
 
Join Date: Oct 2009
Location: Sweden
Posts: 106
Chewii is a puddle of milk
Default

Quote:
Originally Posted by Skargoth View Post
Ofc I'm interested in how to do a basic trigger with shitloads of useless work. Thanks.
Just take it easy. if youre not intrested dont look..
__________________
Raaaaaawr!
Chewii is offline   Reply With Quote
Old 02-09-2010, 09:58 PM   #9
Lartin
God of GUI
Clan Member [Grunt]
 
Join Date: Sep 2007
Location: Germany
Posts: 88
Lartin is coco
Default

Don't forget to fix the memory leak!
__________________





Hier gehts zur Shopping Maul Community! (german site)
Lartin is offline   Reply With Quote
Old 02-13-2010, 02:19 PM   #10
Chewii
IM Chewbacca Raaawr
Clan Member [Grunt]
 
Chewii's Avatar
 
Join Date: Oct 2009
Location: Sweden
Posts: 106
Chewii is a puddle of milk
Default

I said that before
[quote=Chewii;53561And ofc removing the leaks [/quote]
__________________
Raaaaaawr!
Chewii is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Epicwar Hive Workshop War3 Workshop Wc3 Campaigns Elemental TD