HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quick Help

07-03-2003, 06:15 AM#1
Zero
How do you make units be able to sell items?
07-03-2003, 06:17 AM#2
Download
Give them backpack?
07-03-2003, 08:51 AM#3
Dead-Inside
Okay... This must be one of those "I'm not this stupid but I'll try" questions... However, I will answer it for you:

You need to make some kind of trigger that, when the player does something (drops an item in a certain region for example) you remove the item and give cash to the player who dropped it there....

That's all the info you need, now use the tutorials and the search functions and think before you ask.

Regards
Dead-Inside
07-03-2003, 08:55 PM#4
Zero
Bah. Ok.. Thats not what I meant.

Ok! How do you make it so unit sell items.. Like how you can buy items from shops. I have seen maps where the UNITS sell the items instead of the buildings. I was asking how this is done.

And yes I did look threw the tutorials first and there was nothing explaining this...
07-03-2003, 08:57 PM#5
Download
Just base a new unit on the shop, change the model to a unit, lower the collision size and selection scale, and you're done. Doh.
07-03-2003, 11:57 PM#6
Zero
God. OK! I allready know this..................................................



BUT when you do it this way you get the design of the pathing under the unit. AND on top of that the building faces one direction ONLY.. I want it to be a unit instead of a building. This way I can change the way the unit is facing and the pathing design WONT be there. Sheesh.
07-04-2003, 12:02 AM#7
Panto
In RoC, every unit had a field in the Unit Editor for "Units Sold" which is where you would insert any mercenaries or items you wanted it to have available. I'm looking, and I can't find a similar field for standard units, but the shops do have them. It's possible that the value only appears if another value (perhaps something like "sells items") is set correctly. Or it might need the ability "Sells items" or "Sells Units", both of which I see the Marketplace has. I encourage you to experiment with that.

EDIT: I experimented, and it doesn't seem to be doing anything. I'll keep looking.
07-04-2003, 12:02 AM#8
piRo-piOn
give the unit the select hero ability, make it neutral passive and change the items sold.
07-04-2003, 12:10 AM#9
Panto
Quote:
Originally posted by piRo-piOn
give the unit the select hero ability, make it neutral passive and change the items sold.


This doesn't work; or at least, it didn't work for me.

I haven't found a unit in the editor that has the ability to sell, but also all structures seem to have it. It might just be a property that structures have that units do not.

Are the maps that you're referring to from RoC or TFT?
07-04-2003, 05:26 AM#10
Zero
RoC. I am using the TfT editor though.

This map you can buy items from units in.
07-04-2003, 06:42 AM#11
Panto
Yea, while it was pretty straightforward to have a unit sell items in RoC, I haven't figured out how to bypass the fact that only structures have the "Items sold" value in TFT.
I expect that editing the Units\UnitMetaData.slk to list the "Items sold" field as a unit ability would do it, but there are some problems with inserting that file (and I'm not sure it's even used in TFT).
07-04-2003, 05:27 PM#12
Zero
Well, I know there is a way to do this...

SOMEONE KNOWS :////