Skip to content
#315
Auto-translated
Ment
Could you elaborate?
I assume the person wants to use a script to assign a racial affiliation to a neutral unit based on the player's race – i.e., when interacting with this unit, a function should be triggered to check the player's hero's race, and based on the result of the check, a unit (a composite unit) should be generated at that location according to the specified conditions; perhaps this function should be included at the very beginning – the mechanism is the same: check the race, create a new unit based on the result of the check.

Added 1 minute later
Dyrman
="1"]So, it seems to be working already anyway))
Well, that's great :)

p.s. By the way, there may be difficulties in obtaining special units (SUs) via script if the hero's development does not match or contradicts the conditions for obtaining the SU – similar difficulties arise when learning or forgetting skills from a mentor (skills that are present from the start and added in the editor cannot be learned again – for example: we have "Runic Shield" for a dwarf (without the intermediate "Master of the Earth" and "Exorcism") – when forgetting "Runic Shield" from the mentor, we can only learn it again after obtaining the corresponding intermediate skills, even though we had it before without them); so, you need to be aware of these nuances.

Statistics

Welcome our newest member: artem

Users Online 4 users 1868 guests