igrik
Posts: 2819
|
Баг№1. Героев, которые были в тюрьме после выполнения данного кода невозможно нанять. + конечно же стоит сюда добавить феоноровский код на проверку рэндом-карты, чтобы не пороть авторские карты.
вообще как по мне: стоит создать топик по данному вопросу и всё-таки попытаться запилить данный скрипт
game bug fixes extended.dll || My Plugins || My GitHub
(This post was last modified: 04.09.2014 17:48 by igrik.)
|
|
04.09.2014 17:43 |
|
Valery
Posts: 2196
|
Do you mean after my code you can't hire?
Because I can hire them, and all ok.
|
|
04.09.2014 17:50 |
|
igrik
Posts: 2819
|
|
04.09.2014 18:54 |
|
Valery
Posts: 2196
|
How you test? I use invite tavern mod, so I can see each hero status.
|
|
04.09.2014 19:15 |
|
igrik
Posts: 2819
|
|
05.09.2014 02:14 |
|
Valery
Posts: 2196
|
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.
(This post was last modified: 05.09.2014 09:09 by Valery.)
|
|
05.09.2014 08:30 |
|
gamecreator
Posts: 7107
|
|
05.09.2014 10:09 |
|
Valery
Posts: 2196
|
No, it does not work, taverns still empty. Ok, I make mod then discuss.
|
|
05.09.2014 11:04 |
|
Valery
Posts: 2196
|
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.
(This post was last modified: 05.09.2014 11:40 by Valery.)
|
|
05.09.2014 11:18 |
|
igrik
Posts: 2819
|
Герои без стартовых первичных навыков.
+ обязательно нужно добавить код feonor'a, чтобы не запарывать авторские карты. Я считаю что это важно.
game bug fixes extended.dll || My Plugins || My GitHub
(This post was last modified: 05.09.2014 14:10 by igrik.)
|
|
05.09.2014 12:13 |
|
Valery
Posts: 2196
|
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.
|
|
05.09.2014 12:30 |
|
Valery
Posts: 2196
|
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.
(This post was last modified: 05.09.2014 12:44 by Valery.)
|
|
05.09.2014 12:43 |
|
igrik
Posts: 2819
|
Код feanor'a - это своеобразная "защита от дурака" (не знаю сможет ли переводчик перевести правильно эту фразу,. так как этот мод будет востребован только на случайных картах, где есть большое количество тюрем. Код feanor'a как раз и определяет рэндомная карта или нет, и если рэндомная - то пусть тюрьмы удалаются, а герои обнуляются. Хотя это и так понятно...
game bug fixes extended.dll || My Plugins || My GitHub
|
|
05.09.2014 14:17 |
|
Valery
Posts: 2196
|
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.
|
|
05.09.2014 14:20 |
|