Skip to content

Posts from SetCombatLight

No ratings yet — be the first to rate!
User Avatar
6 years ago
Auto-translated
Hello! Is it possible to set SetCombatLight separately for the surface and separately for the dungeon? Because everywhere the sun shines during battles, both underground and above ground. Or everywhere it's night.

Another question: how do I disable "templates for random creatures of the corresponding level"? So that if I place 30 Militia on the map, NCF creatures of the same level don't randomly appear there.
User Avatar
6 years ago
Auto-translated
Regarding SetCombatLight, you can implement a persistent check for the hero with the largest army, for example, using GetObjectPosition, but this method can significantly impact performance. If performance is a priority, you can try using REGION_ENTER_WITHOUT_STOP_TRIGGER, i.e., create a 5x5 region under each monster. Regarding NCF, you need a random loop with the CreateMonster command, where the IDs of the required creatures should be entered into an array and called using random().

Statistics

Welcome our newest member: recijeb