PoLlama Forums  

Go Back   PoLlama Forums > WarCraft > World Editor Help

Reply
 
LinkBack Thread Tools
Old 03-14-2008   #1
 
Join Date: Mar 2008
Posts: 12
CRAZY-PENGUIN is an unknown quantity at this point
Help on Spawn Footmen Upgrade.

My doubt is how do i make Spawns of footmen upgrading when the bases where he got spawned are upgraded.

Example: On footmen, When i have Barracks = spwans footman, when i upgrade to tree of life = spawns archer and i want to know how do i trigger that...

normal.Barracks = footman
upgraded to.Keep = rifleman
upgraded to.castle = knight

thats my doubt, Spawning diferent units when upgraded.

Thnx
CRAZY-PENGUIN is offline   Reply With Quote
Old 03-14-2008   #2
 
Join Date: Mar 2008
Posts: 33
warcrafttt is on a distinguished road
Re: Help on Spawn Footmen Upgrade.

Spawn Footmen Copy 2
Events
Time - Every 8.00 seconds of game time
Conditions
Actions
Set Unit_Group = (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Barbie World) and (((Matching unit) is alive) Equal to True)))
Unit Group - Pick every unit in Unit_Group and do (Actions)
Loop - Actions
Set Point = (Position of (Picked unit))
Unit - Create 1 Barbie for (Owner of (Picked unit)) at Point facing Default building facing degrees
Custom script: call RemoveLocation(udg_Point)
Custom script: call DestroyGroup(udg_Unit_Group)



thats a trigger of my map

barbie World is the building and Barbie is a unit


just replace those

and you need 1 trigger for each building i think
warcrafttt is offline   Reply With Quote
Old 03-16-2008   #3
 
Join Date: Mar 2008
Posts: 12
CRAZY-PENGUIN is an unknown quantity at this point
Re: Help on Spawn Footmen Upgrade.

Hmm ok i will try it later, thx if i get some trouble i will post here what is the problem...
Thx again.
CRAZY-PENGUIN is offline   Reply With Quote
Old 03-16-2008   #4
 
Mr. Zero's Avatar
 
Join Date: Sep 2006
Location: Denmark (GMT+1)
Posts: 2,173
Mr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond reputeMr. Zero has a reputation beyond repute
Re: Help on Spawn Footmen Upgrade.

Code:
Upgrade Base
    Events
        Unit - A unit Finishes an upgrade
    Conditions
        (Unit-type of (Triggering unit)) Equal to Keep
    Actions
        Set UnitSpawnType[(Player number of (Triggering player))] = Knight
That is the trigger if you just want to upgrade but of course there is other ways to do it. The "Set UnitSpawnType..." is a variables since I hope a bit for you are using variables when you need to spawn units.
Otherwise you can spawn units with only one trigger, but not to be offensive it doesn't sound like you know how. Here is a sample trigger:

Code:
Spawn Units
    Events
        Time - Every 5.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Unit - Create 1 UnitSpawnType[(Integer A)] for (Player((Integer A))) at ((Player((Integer A))) start location) facing Default building facing degrees
See? The UnitSpawnType is an array and therefore I can make a loop to spawn the units. Also UnitSpawnType is a Unit Type variable.

Last edited by Mr. Zero; 03-16-2008 at 02:36 PM.
Mr. Zero is offline   Reply With Quote
Reply

Tags
spawn footmen upgrade

Thread Tools

Posting Rules
You may post new threads
You may 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
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RoS: Rise of Sauron MMG_God Members Projects 19 03-07-2008 02:33 PM
Footmen Revolution Maelstrom_ WarCraft Maps 17 03-02-2008 05:11 PM
Unit editor basic guide Halakbalakbalak Submit a Tutorial [World Editor] 1 10-19-2007 02:18 PM
A Simple Footmen Spawn MrOrange Tutorials 9 07-14-2007 10:51 AM
[Tutorial] Footmen Wars Spawn MrOrange World Editor Help 5 04-23-2007 10:33 PM


All times are GMT -5. The time now is 01:36 PM.

A friend of Wc3Happy
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165