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 7
Thanks!
The player should not controll it, because it is a kind of Berserk. Some creatures of the Bastion town can cast this "Berserk" on enemies, and they will attack only them. During tests it does not matter which stack you attack, you can try to do it with your own stacks (for example, with the stack 0). In my code I get the stack ID this way:

I had some Ideas, but I could not finish this work... You need to find a reachable position nearly the target, than set it using BG:D and make the stack attack the target like this:

This code might be usefull too:
Okay I think I understand now.
One of these Bastion creatures casts "kind of Berserk" on enemy. And now all enemy creatures are forced to attack this stack if they can reach it. Correct?
PerryR, no, this "spell" (the ability is called Provocation) can be casted only on single targets. The stack which has casted provocation on an enemy becomes its "provoker", and the enemy will always try to attack it, if it is not impossible. After "revenge" (the provoker should be striked at least once) the provoked stack starts to act normally, and the player will be able to control it. The player can also control the stack if the provoker is unreachable. If a stack has no provoker, the value of SN:W variable is -1.
Okay understood.

Well I have a prototype of the script working. Now it would be time to fiddle out all the details like which stack cast which spell on the enemy and perform checks.
But what I can say already is that it will most likely work as you described.

Now I need to sleep
cya
PerryR, wow thank you so much! I didn't want you to do the whole work right now, thank you again! 119 Good night!
Нужен скрипт.

При захвате города этому городу назначается компьютерный игрок незанятого цвета, который становится союзником захватчика.
ArKan, игроков всего 8, а городов до 48. Откуда брать столько союзников?
Hello, Perry R

I sent an amount of 800 rubles to this account for your help in supporting and developing the 3.5 ERA https://hmm35.ru/donate.php and indicated there that it was your wish..Thanks again for the great code..
Ок, каждому игроку назначается свой один союзник, который получает контроль над захваченным городом.
ArKan, а что делать, если этот союзник тоже захватит город? 148 Кстати, если свободные цвета закончились, а игроки - нет, то что?
(29.05.2021 02:59)Raistlin Wrote: [ -> ]ArKan, а что делать, если этот союзник тоже захватит город? 148

Ничего не делать.
ERA 3? ERM 2+? Действовать должно только на игрока-человека?
ArKan, всеми этими уточняющими вопросами тебя подводят к тому, что если ты чётко не опишешь все условия
(когда; где; на кого; в каком случае... и т.д.) скрипта, который хочешь получить, то ты его никогда не получишь.
(29.05.2021 15:24)Berserker Wrote: [ -> ]ERA 3? ERM 2+? Действовать должно только на игрока-человека?

Играю этой сборкой, версия до ланчера
http://wforum.heroes35.net/showthread.php?tid=5235
(28.05.2021 19:17)fatsawhorse Wrote: [ -> ]Hello, Perry R

I sent an amount of 800 rubles to this account for your help in supporting and developing the 3.5 ERA https://hmm35.ru/donate.php and indicated there that it was your wish..Thanks again for the great code..

Thanks 20
Pages: 1 2 3 4 5 6 7
Reference URL's