Баг№1. Героев, которые были в тюрьме после выполнения данного кода невозможно нанять. + конечно же стоит сюда добавить феоноровский код на проверку рэндом-карты, чтобы не пороть авторские карты.
вообще как по мне: стоит создать топик по данному вопросу и всё-таки попытаться запилить данный скрипт
Do you mean after my code you can't hire?
Because I can hire them, and all ok.
Да. Странно. Проверю еще раз.
How you test? I use invite tavern mod, so I can see each hero status.
я использую HD мод (в сингл плеере), который более классично считывает даные параметры. А это значит что без мода "invite tavern mod" их не нанять.
(05.09.2014 02:14)igrik Wrote: [ -> ]А это значит что без мода "invite tavern mod" их не нанять.
!!HE#:R3/1/255; для освобожденных героев не решит проблему?
Ok, tested without invite tavern and you are right. Heroes deleted are not re added to pool.
HE$:R3/1 does not solve this. I am trying further things, will see.
I think I solved it.
This will place all heroes in tavern pool, now have to think about a way to write this script correctly to work with all players and get random heroes when opening tavern.
What about that trick with assigning an owner an then killing the hero? This will not ruin tavern pools.
No, it does not work, taverns still empty. Ok, I make mod then discuss.
Delete prisons
Made mod for testing. Tested on XXL map with all heroes in prison. Have a look and let's decide if there are ways to improve it. For now:
1) It deletes all prisons
2) It stores all heroes level, mana, movement and skills (both primary and secondary)
3) It reset all prisoners to initial stats
4) On first day it runs every player tavern, adds all heroes at pool then it picks two randomly and places them left/right.
Герои без стартовых первичных навыков.
+ обязательно нужно добавить код feonor'a, чтобы не запарывать авторские карты. Я считаю что это важно.
Well, that's funny because if I check the hero skills by erm, it says he has them, but they don't display. I will try to fix, moment.
Fixed, reuploaded to same link.
Only erm file
I don't think Feanor code is necessary, it is obvious that this mod is only for random maps, why would anyone erm delete prisons in custom maps while he can edit them in editor.
Код feanor'a - это своеобразная "защита от дурака" (не знаю сможет ли переводчик перевести правильно эту фразу,. так как этот мод будет востребован только на случайных картах, где есть большое количество тюрем. Код feanor'a как раз и определяет рэндомная карта или нет, и если рэндомная - то пусть тюрьмы удалаются, а герои обнуляются. Хотя это и так понятно...
ok, if no one has ideas of improving or bugs, I will update it with Feanor code. For now, waiting to see if still some bugs I didn't find.