- Joined
- Mar 26, 2019
- Messages
- 54
Is it possible to make a unit that have ability to sell item/unit without being a building?
Will that crash the game or the editor?
Will that crash the game or the editor?
Something to keep in mind with shops is that if they have any ability, any player (including enemies) can click on the unit and activate their abilities.
So basically, giving a unit the "select unit/hero" ability or "shop sharing" will make it so the unit is semi-shared between all players (or all allied players in the case of shop sharing, since only allies can buy items), and although other players won't be able to use the regular commands like attack or move, if the unit has any unit or ground targetable abilities, they can still use them and thus make the unit move to get in range.
For example, any player can use the "reveal" ability found in Goblin Laboratories, if there was another ability in its place, the could use it all the same. But unlike a unit, buildings generally can't walk, so it's less of an issue.
Minimum speed in the game is 1 (so it would still move just very slowly), but yes. There are a variety of solutions.
You don't need any triggers for this; just set the 'Art - Propulsion Window (degrees)' field in the Object Editor to 0. However, make sure the shift key is pressed while opening the field.