Raistlin
Posts: 1349
|
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:
Создал новый глобальный мод: WoG Ultra Edition
|
|
28.05.2021 01:02 |
|
PerryR
Posts: 460
|
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?
|
|
28.05.2021 01:25 |
|
PerryR
Posts: 460
|
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
|
|
28.05.2021 02:04 |
|
ArKan
Posts: 217
|
Нужен скрипт.
При захвате города этому городу назначается компьютерный игрок незанятого цвета, который становится союзником захватчика.
|
|
28.05.2021 11:41 |
|
Berserker
Posts: 16657
|
|
28.05.2021 16:38 |
|
fatsawhorse
Posts: 1022
|
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..
|
|
28.05.2021 19:17 |
|
ArKan
Posts: 217
|
Ок, каждому игроку назначается свой один союзник, который получает контроль над захваченным городом.
|
|
28.05.2021 22:42 |
|
ArKan
Posts: 217
|
(29.05.2021 02:59)Raistlin Wrote: ArKan, а что делать, если этот союзник тоже захватит город?
Ничего не делать.
|
|
29.05.2021 11:38 |
|
Berserker
Posts: 16657
|
|
29.05.2021 15:24 |
|
SergOz
Posts: 1315
|
ArKan, всеми этими уточняющими вопросами тебя подводят к тому, что если ты чётко не опишешь все условия
(когда; где; на кого; в каком случае... и т.д.) скрипта, который хочешь получить, то ты его никогда не получишь.
Карта-мод "Война на Холсте"
|
|
29.05.2021 17:59 |
|
ArKan
Posts: 217
|
|
29.05.2021 18:10 |
|
PerryR
Posts: 460
|
(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
|
|
30.05.2021 13:21 |
|