Current time: 22.03.2019, 09:31 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Ваши вопросы по ERM-скриптам
Author Message
Algor Offline
Administrators

Posts: 2870
Post: #5506

Trident_D, видимо, в случае несрабатывания у тебя, например, y19>=3.
Ты б после последнего условия выхода вывел все значения и посмотрел: !!IF:M^DEBUG: y18=%Y18, y19=%Y19, y20=%Y20^;


17.03.2019 10:43
Visit this user's website Find all posts by this user Quote this message in a reply
Trident_D Offline

Posts: 52
Post: #5507

Algor, так и есть y19=3. Но, как я понял, если стоит оператор "&", то должны проверяться все условия: при y18=7, y19=3, y20=7 - должна быть остановка процесса по условию y20<10. Почему проверяются только первые два условия, а третье нет?
17.03.2019 17:27
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 10737
Post: #5508

Trident_D, логическая операция И даст истину только если все условия истинны. Если хотя бы одно из условий ложно, то результат сразу будет ЛОЖЬ и команды не выполнятся.
y19 < 3 не выполняется, дальше можно не проверять.


Скачать Герои 3 Эра и всё, что с ней связано
17.03.2019 20:30
Find all posts by this user Quote this message in a reply
ALEXALEX3434 Offline

Posts: 263
Post: #5509

Algor, Berserker, Помогите с командой UN, Сэру Мюлиху надо изменить +2 скорости (специализация его) на +1......
17.03.2019 23:10
Find all posts by this user Quote this message in a reply
Trident_D Offline

Posts: 52
Post: #5510

Berserker, а как тогда правильно задать условие в одну строку, для y18 (уровень монстра 1-7), y19 (вторичный навык 0-3), y20 (уровень героя 0+), чтобы выполнялось так: при y18>6 (т.е. 7), y19 должен быть 3, а уровень героя не менее 10, иначе выход.
Пробовал сделать и так "и+или":
!!FU&y18>6/y19<3|y20<10:E;
тогда происходит "выход" и для всех остальных вариантов (y18 меньше 6), пока герой не достиг 10-го уровня и эксперта.
(This post was last modified: 18.03.2019 22:19 by Trident_D.)
18.03.2019 22:15
Find all posts by this user Quote this message in a reply
Algor Offline
Administrators

Posts: 2870
Post: #5511

Trident_D, только двумя проверками:


18.03.2019 23:38
Visit this user's website Find all posts by this user Quote this message in a reply
PerryR Offline

Posts: 8
Post: #5512

Hi folks Ab
PerryR from HC here 109
I have a problem with a mod I'm currently making and the issue seems to be the only one left bevor finishing the mod. Maybe you have an idea how it can be solved.
So the Mod should add a Master and Grandmaster level to every secondary skill.
Creating the skills, effects and setting the descriptions in the right moment seems no problem so far. What I did is create and ert file with all skill descriptions from Basic to Grandmaster and every time the Hero Screen is called (!?CM2 Trigger) the script checks for skills of the hero has, and sets the description accordingly. This works surprisingly well. I also found a solution for the level up procedure.
What I cannot get solved is the problem that I cannot change the attribute
Basic, Advanced, Expert as it shows in the Hero Screen. Only way to change seems is directly in the SkillLev.txt found in the H3bitmap.lod
but this of course is global and cannot work with my script.

Here is an example of how it should look like (with changed SkillLev.txt file):
And this is how it currently looks like and it totally destroys immersion of the effect of having new skills!
I tried to remove the Expert line completely and shift the skill description on row higher but it does not work. I can provide the ERM code if necessary.

So maybe someone has Master Wisdom 96 and an idea what could be done. In return, I can offer this Mod at some point to the community.

Best
Perry

Edit: By the way, how to use the Spoiler fkt to hide the pictures?
(This post was last modified: 18.03.2019 23:48 by PerryR.)
18.03.2019 23:47
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-2019 MyBB Group