Wake of Gods Forum | Форум Во Имя Богов

Full Version: Тюрьмы героев. Общая тема
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
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.
OB:C.
Or loop through heroes and find the one, who's HE:P are coords of prison.
(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?
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.
(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
Did you try to save hero parameters in !# and use them later for restoration?
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
.. один вопрос, который я не смогла решить сама...
Можно ли заменить все тюрьмы на любые другие здания подобного размера? Например, на ветряные мельницы? Есть ли пример скрипта?
В справке ЕРМ по UN:U есть примеры обхода всех объектов заданного типа/подтипа. Потом каждый объект можно удалить и на его место поставить новый.
(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.
Посмотрела... Боюсь, что это слишком серьезно для меня. Мне бы готовый скрипт, который я могла бы как-то переделать. В принципе, я пыталась: в скрипте 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?
В приведённом коде используется какая-то своя функция 671 (которая по-видимому заменяет исключительно на жилища 8 уровня).

Я не проверял, но вот так, например, должно работать. Заменит все тюрьмы на ветряные мельницы.
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)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.
Oops, copypaste! Yes, it's supposed to be y1.
Pages: 1 2 3 4 5 6
Reference URL's