Current time: 20.04.2024, 13:32 Hello There, Guest! (LoginRegister)
Language: english | russian  

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

Posts: 2196
Post: #1
Лампочка 
Algor Wrote:
Valery Wrote:Does any know how correctly remove a prison?What happens with the heros inside, they keep bonus experience/levels or are reseted? Will test this today.
Describe then the result, it is interesting.
May need to set HE:P-1/-1/-1/0 for the prisoners before removing the prison.

I have no idea how to get who is the prisoner, I see no trigger for prison. After deleting prisons, the hero keeps his bonuses, level, stats. Found him in tavern.
(This post was last modified: 14.11.2013 15:06 by Valery.)
14.11.2013 14:40
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16485
Post: #2

OB:C.
Or loop through heroes and find the one, who's HE:P are coords of prison.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
14.11.2013 16:33
Find all posts by this user Quote this message in a reply
Algor Away
Administrators

Posts: 3880
Post: #3

(14.11.2013 16:50)Valery Wrote:  !!FU&y1<0:E;[/erm] if y>0 hero will be in prison
y>=0

Valery, try to set hero coordinates in !?PI:


May be this solve problem with expirience?


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

Posts: 2196
Post: #4

Already did in test, we need to reset hero manually, which is almost impossible to do properly. Depends if option 'start at level 5' is selected, then we need to store initial skills and reinitialize after deleting prison. And of course set experience points/level to 0/5. And reset stats...a nightmare.
(This post was last modified: 14.11.2013 18:50 by Valery.)
14.11.2013 18:48
Find all posts by this user Quote this message in a reply
Algor Away
Administrators

Posts: 3880
Post: #5

(14.11.2013 16:33)Berserker Wrote:  OB:C


So, expirience added to prisoners between "!#" and "!?PI;" and the OB:C-value and/or hero coordanates are not checked Bad


BattleHeroes Rus/Eng | ERA scripts (+ReMagic) Rus/Eng
14.11.2013 20:38
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16485
Post: #6

Did you try to save hero parameters in !# and use them later for restoration?


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
14.11.2013 21:36
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #7

I think this is the only solution, but to store all 155 heroes parameters (skills, stats) in SN W vars take some time and I am rusty with erm right now. Fie
14.11.2013 22:04
Find all posts by this user Quote this message in a reply
Katarina Offline

Posts: 37
Post: #8
Лампочка 
.. один вопрос, который я не смогла решить сама...
Можно ли заменить все тюрьмы на любые другие здания подобного размера? Например, на ветряные мельницы? Есть ли пример скрипта?
20.07.2014 01:48
Find all posts by this user Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #9

В справке ЕРМ по UN:U есть примеры обхода всех объектов заданного типа/подтипа. Потом каждый объект можно удалить и на его место поставить новый.


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

Posts: 2196
Post: #10

(20.07.2014 01:48)Katarina Wrote:  Есть ли пример скрипта?

Adventure pillars mod shows how to replace an object the user specifies in instructions.

78 wogify.erm too, but is rather complicate to read.
20.07.2014 02:32
Find all posts by this user Quote this message in a reply
Katarina Offline

Posts: 37
Post: #11

Посмотрела... Боюсь, что это слишком серьезно для меня. Мне бы готовый скрипт, который я могла бы как-то переделать. В принципе, я пыталась: в скрипте Level 8 Creature Dwellings, например, не смогла найти строку, где утопии заменяются на него, а в Wofigy не поняла, каким именно образом он заменяется:


Правильно ли я понимаю, что мне нужно сделать что-то вроде последних двух строчек, но с объектом P62 и процентным соотношением, близким к 90?
И все ли будет в порядке, если на замену тюрьмам я выберу Level 8 Creature Dwellings и New Treasure Chest? Я имею в виду размер объектов.

(20.07.2014 02:32)Valery Wrote:  
(20.07.2014 01:48)Katarina Wrote:  Есть ли пример скрипта?

Adventure pillars mod shows how to replace an object the user specifies in instructions.

78 wogify.erm too, but is rather complicate to read.
Thank you! Seems like I was checking wofigy one while you posted this. Might be easier now. Still would be nice if you told me do I do it right with Wogify script?
(This post was last modified: 20.07.2014 02:39 by Katarina.)
20.07.2014 02:37
Find all posts by this user Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #12

В приведённом коде используется какая-то своя функция 671 (которая по-видимому заменяет исключительно на жилища 8 уровня).

Я не проверял, но вот так, например, должно работать. Заменит все тюрьмы на ветряные мельницы.


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

Posts: 37
Post: #13

Well, in the end I just added one more line in the end of script:


The last one is the one. Could not find any prisoned heroes in new tavern anymore, probably it works then. Thank you guys once again.
20.07.2014 02:45
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2196
Post: #14

(20.07.2014 02:45)gamecreator Wrote:  !!DO27000/1/v100/1:P;

v100?

!!DO27000/1/y1/1:P you mean.

(20.07.2014 02:45)Katarina Wrote:  The last one is the one. Could not find any prisoned heroes in new tavern anymore, probably it works then. Thank you guys once again.

   If I recall right, the prisoners are not reset once you delete the prison, so AI or you may find some hero level 50 in tavern. I would check first is there is one hero at prison location, then reset manually to level 1 (stats, skills) before deleting.
(This post was last modified: 20.07.2014 03:12 by Valery.)
20.07.2014 02:56
Find all posts by this user Quote this message in a reply
gamecreator Offline

Posts: 7107
Post: #15

Oops, copypaste! Yes, it's supposed to be y1.


When all gods have burnt to ashes in eternity of sorrow,
Demons gonna tear your soul because there is no tomorrow.
20.07.2014 03:09
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