Warcraft III resources & community, 2003–2006 · archived

Help me with some trigger codes pls!

21 posts
#16
or shall I do that with all heroes i have in the buildings?


yes

And when im tryin to test start the game warcraft 3 crashes why??


hmm... I dont know, maybe u did sum of my triggers wrong, cuz if u do em right, they shouldnt let u crash. Check all ur triggers again to look if something is different form what I posted.

And I have set a Start Location for Red but when I start I got a castle or sumthing and 5 peasants i want to delete that so I can choose hero without having a castle and 5 peasants


Go to the Initilization trigger and delete the 'melee' functions

(I have done 4 region to the 4 portals and have maked 4 triggers with these


01, 02, 03, 04)

Code:
Unit - Create 25 Peasant for Player 12 (Brown) at (Center of Spawn Region 01 <gen>) facing Default building facing degrees


Yes, thats good. and now order them to move to another location (unit group - order targeting a point)
#17
Ok, everything is right? :D without the crash :(


But in what shall i use order? Event, Conditions, Action? and should I create a new trigger for that?
#18
But in what shall i use order? Event, Conditions, Action?


Actions

should I create a new trigger for that?


No, when u created the unit group, make a new action that orders the last created unit group to attack-move to 'Region'
#19
Ok, i have done that now. :) But i can't see the map? the hero buildings and that. I can only see the Gate Way but its still shadow of the rest of the map. how do i do so i can see everything? (I have deleted all melee functions in Melee Initialazion. like you told me to do.
#20
Use this actions: Visibily - Disable black mast and disable fog of war
#21
For the castle and 5 peasants just delete the melee trigger under initialization. For the creep spawns just create them and issue an order to move/ attack-move/ patrol to the castle or wateva that the players gotta protect.

EDIT: argh, i forgot to see page 2 :oops: