Current time: 23.11.2024, 19:01 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Тюрьмы героев. Общая тема
» Prison&Hero - all question about it..
Author Message
igrik Offline

Posts: 2819
Post: #31

Баг№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
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #32

Do you mean after my code you can't hire?

Because I can hire them, and all ok.
04.09.2014 17:50
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #33

Да. Странно. Проверю еще раз.


game bug fixes extended.dll || My Plugins || My GitHub
04.09.2014 18:54
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #34

How you test? I use invite tavern mod, so I can see each hero status.
04.09.2014 19:15
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #35

я использую HD мод (в сингл плеере), который более классично считывает даные параметры. А это значит что без мода "invite tavern mod" их не нанять.


game bug fixes extended.dll || My Plugins || My GitHub
05.09.2014 02:14
Visit this user's website Find all posts by this user Quote this message in a reply
Algor Away
Administrators

Posts: 3881
Post: #36

(05.09.2014 02:14)igrik Wrote:  А это значит что без мода "invite tavern mod" их не нанять.

!!HE#:R3/1/255; для освобожденных героев не решит проблему?


BattleHeroes Rus/Eng | ERA scripts (+ReMagic) Rus/Eng
05.09.2014 03:11
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #37

Ok, tested without invite tavern and you are right. Heroes deleted are not re added to pool. 105

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
Find all posts by this user Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #38

What about that trick with assigning an owner an then killing the hero? This will not ruin tavern pools.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
05.09.2014 10:09
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #39

No, it does not work, taverns still empty. Ok, I make mod then discuss.
05.09.2014 11:04
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #40

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
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #41

Герои без стартовых первичных навыков.
+ обязательно нужно добавить код 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
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #42

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
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #43

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
Find all posts by this user Quote this message in a reply
igrik Offline

Posts: 2819
Post: #44

Код feanor'a - это своеобразная "защита от дурака" (не знаю сможет ли переводчик перевести правильно эту фразу,. так как этот мод будет востребован только на случайных картах, где есть большое количество тюрем. Код feanor'a как раз и определяет рэндомная карта или нет, и если рэндомная - то пусть тюрьмы удалаются, а герои обнуляются. Хотя это и так понятно...


game bug fixes extended.dll || My Plugins || My GitHub
05.09.2014 14:17
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #45

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
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Forum Jump:

Powered by MyBB Copyright © 2002-2024 MyBB Group