HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Sorry New Questan (how do i change upgreads of a building) (examp Townhall -> keep)

10-06-2002, 05:50 AM#1
Guest
i want to customiz the upgrade on my costome building it is cerently an human tower and i want to make upgrade to an different tower not a cannon tower.

I want to do all this with out changeing normal towers of human race... and i dont want to mod the whol game just edit the map.

PS
I think i saw this done on an tower defence map but it might have efected the whol human race
10-06-2002, 08:09 AM#2
Dinadan87
Create a custom unit. Make it's training tooltip, icon, and name to whatever the building should be. Make a trigger that detects when that unit is ordered to be trained, and when it is then make the trigger replace the training building with something else.
10-06-2002, 02:10 PM#3
Guest
replacing the building when there's a unit close to it, moves the building. Any way around this?
10-06-2002, 02:56 PM#4
Guest
You could move the units to another region in a circle around the building, then move them back after you replaced the building. Or maybe turning off collision size for the units, then replace the building, then turn on collision size would work.
10-06-2002, 03:05 PM#5
Guest
hmm. turning off collision size.. I'd probably have to replace all those units with custom ones with no size, replace the building, then replace the units again, unless you know of an easier way to do it?
I wonder if Hide unit would work.. I'll have to try it.
10-06-2002, 04:12 PM#6
Guest
There's a trigger that turns off collission size. If collission size doesn't work then you should use a trigger to move (instantly) the units out of the region and back into it.
10-06-2002, 04:43 PM#7
Dinadan87
If there is a trigger that changes collision size, make the buildings have a deafult collision size of 0, but when they get built the collision size goes up to whatever number it should be. Would that work?
10-06-2002, 05:32 PM#8
Guest
I do not want to change the human teck tree for example if i have a tower and it is a custom tower i want to sed it to upgrade to a nother custom tower...

If i use triggers to do that then...

I would use the NONcustom tower start to upgrade it to cannon and it would become the custom Unit and not a cannon.

i have a custom

(custom) scout tower --Up--> (custom) Flame tower

and i want that to hapen with out efecting this Normal Teck tree

Human Scout tower --Up--> Human Cannon tower

if i make that triger it well do this

Human Scout tower --Up (trigger kicks in)--> (custom) Flame tower

Sorry... :|
10-06-2002, 09:13 PM#9
Dinadan87
That's what we're telling you. Make it so the tower can train a unit. But make it units building name, tooltips, and icon be that of the upgrade you want to the building. You will keep your original upgrades and just make it capable of training something else. So I don't understand what the problem is now?
10-06-2002, 11:29 PM#10
Guest
I get it now.... "the light goes on" as i have sead befor im not the smarttest nut in the jar....

what would this trigger look like mostly the "collision size" of the trigger.

Thanx for clereing that up....

PS
how do i get rid of the normal upgrades (i made the unit in a image of a scout tower) (i can re make i gess)
10-07-2002, 08:17 PM#11
Guest
hmm.. I suppose that would work.. One thing further, if I move the units then put them back, doesn't that interrupt what they're doing? getting gold, moving to a place, etc..
10-09-2002, 02:55 AM#12
Dinadan87
If you want your new custom building to take the place of the old tower here's what you can do...
-Either make the upgraded unit have whatever properties you'd like so that it upgrades to a scout tower with the same button. OR...
-Edit the scout towers properties so that it no longer has its default "upgrade abilities". OR...
-Go to upgrade settings and disable the upgrade for towers.
10-09-2002, 04:31 AM#13
Guest
Ware are upgrade settings?... Anyway i would like to do that but i want to keep the old towers to i just want to make/add new ones with out efecting the origanal human race's. Heh... i would realy like to know ware the upgrade settings are even if i can add new ones i would like to look at others...


anyway this is what i have so far it isent wourking but i hope some one hase a working trigger...


Events
|__ Time - Every 2.00 seconds of the game

Conditions
|__ ((Triggering unit) is in (Units of type <<Ice tower>> )) Equal to True
|__ (Triggering unit) Equal to (Traned unit)

Actions
|__ Unit - Create 1 <<Ice tower>> for (Owner of (Triggering unit)) at (Target point of issued order) facing Default building

degrees

<<Ice Tower>> = the building i want in example
Note: ferst one is unit (with towers name) second is the acual tower

If any of yah know a working one pleaz post it plezzzz i would be gratly apereshiat it. As i have sead before this stuff is hard
for me... :( thow i think im slowly geten the hang of things :)
10-09-2002, 02:21 PM#14
Guest
you need a different event, well, actually, 12 of them:
a unit owned by Player 1 finishes training a unit
a unit owned by Player 2 finishes training a unit
a unit owned by Player 3 finishes training a unit
...

Condition:
trained unit is equal to (tower upgrade unit)
(triggering unit) is equal to (tower)

Actions:
remove trained unit from the game
replace (triggering unit) with <<ice tower>>


Also, you need to make the normal towers be able to build (tower upgrade unit) (just make it an elf worker or something, they make no noise when they're done. Also, you can change the icon of the unit to a tower if you want it to look better.)
10-10-2002, 01:08 AM#15
Guest
Thank you varry much i gratly apereshyate what you have done if there's anything you wanta know (that i know) you got it


Thank you everyone who helped me out on my map if yah want i can show yah how to get6 your map to have a custom pick in the minny map (thow you probly know)


Thanx agane!!