HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Buildings with Reveal

01-03-2003, 06:52 AM#1
ChewieTobbacca
I know that buildings can be given teh ability reveal...

But is there a way to give buildings something like Far Sight that Farseers have?

I want a building to have this ability but to cost energy and not gold. Is there some editor out htere where you can do this?

Thanks in advance
01-03-2003, 09:59 PM#2
Devourer
It's not possible to give buildings an ability of a hero (u cant even give normal units hero abilities). And as far as I know, there are no editors that support that. Maybe you could look in some .SLK files...
01-03-2003, 10:23 PM#3
pvxc
One thing you may be able to do is make a hero with zero movability, set pathing, etc.

Then give it the ability reveal..
but i don't know how to keep it from getting exp, etc. maybe make a trigger to reset exp every like .01 seconds or something.
01-03-2003, 10:58 PM#4
Byelobog
Yes you can add abilities to buildings, including farsight.

If you add it to an NPC building though it will not show you what you have used farsight on, I am not sure why.

I have attached a sample map (when you start it, you will win instantly - choose to continue playing) where the scout towers (not guard or cannon towers) have the ability to use farsight, and have / use mana.

Easiest way to do this is to use UMSWE 3.5 (on umsmaps.com in the download section), second easiest way to do this is to edit the abilitydata.slk and change the farsight into a non-hero ability.

If what you want to do is use the hero's mana who is at an NPC building, well then there is no way I can help you there, sorry.
01-04-2003, 12:30 AM#5
Dinadan87
Quote:
Originally posted by pvxc
One thing you may be able to do is make a hero with zero movability, set pathing, etc.

Then give it the ability reveal..
but i don't know how to keep it from getting exp, etc. maybe make a trigger to reset exp every like .01 seconds or something.


Resetting the exp every .01 seconds isnt a good solution. Since the exp is split between all heroes in the area, heroes around the building will get less EXP (because half of it goes to the building and is subsequently removed). It would be better to just set the building to level 10 to fix both problems.

pvxc's way should work too
01-04-2003, 01:37 AM#6
pvxc
Quote:
Originally posted by Dinadan87
Resetting the exp every .01 seconds isnt a good solution. Since the exp is split between all heroes in the area, heroes around the building will get less EXP (because half of it goes to the building and is subsequently removed). It would be better to just set the building to level 10 to fix both problems.

pvxc's way should work too


Yea, that's right, setting it to ten would be better. But how would you keep them from just putting far sight to level 3 immediately?
If they are level 10, then they have 10 skill point to use. There may or may not be a way to stop them, but I sure don't know it.
01-04-2003, 02:10 AM#7
Byelobog
Bah why all the fuss? Just use the latest UMSWE and put it there on the building, and give the building some mana.

UMSWE 3.5 allows you to use hero abilities under the items menu for abilities, so you just open up the map with that and put the far sight in that way, which sets it at level 1. No fussing with abilitydata or messing with file compression, simple, easy, no fuss.

If you want something slightly more complicated, go into the abilitydata.slk using a spell editor, create another version of farsight, set is as an ability and not a hero spell, and put the values for farsight level 3 in there for level 1 of the ability.

Easy as hell though to just use UMSWE 3.5
01-04-2003, 05:51 AM#8
dataangel
You guys are making it a little more complicated that it needs to be. No slk editing is needed.

1. Make the building using a normal building as a base.
2. Make the building using a hero as a base - but make the all the stats identical to #1, give it farsight, and a movement speed of 0.
3. Make it so a peasant or whatever can build #1.
4. Setup a trigger:

Event
A unit owned by Player1 finishes construction (do again for all players that can build it)
Condition
Unit-type of contructed structure = #1
Action
Replace Constructed Structure with #2
Have Last Replaced Unit learn farsight
Disable experience gain for last replaced unit

Tada, you're done! If you replace a building with a hero with a movement speed of 0, the pathing still works! :mtk:
01-04-2003, 06:40 AM#9
Byelobog
dataangel the process you describe is overly complicated. Just get UMSWE 3.5 and add the ability in on the building for farsight (UMSWE allows some hero abilities to be listed under the regular ability menu under the items sub menu), toss on some mana, and voila' you're done.

No trigger work, nothing but adding an ability from a drop down menu. Simple as pie.