Current time: 26.11.2024, 03:01 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Скрипты. Стол заказов
» оплачиваемая работа по созданию скриптов
Author Message
Raistlin Away
Moderators

Posts: 1349
Post: #46

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
Find all posts by this user Quote this message in a reply
PerryR Offline

Posts: 460
Post: #47

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
Find all posts by this user Quote this message in a reply
Raistlin Away
Moderators

Posts: 1349
Post: #48

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.


Создал новый глобальный мод: WoG Ultra Edition
28.05.2021 01:40
Find all posts by this user Quote this message in a reply
PerryR Offline

Posts: 460
Post: #49

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
Find all posts by this user Quote this message in a reply
Raistlin Away
Moderators

Posts: 1349
Post: #50

PerryR, wow thank you so much! I didn't want you to do the whole work right now, thank you again! 119 Good night!


Создал новый глобальный мод: WoG Ultra Edition
28.05.2021 02:13
Find all posts by this user Quote this message in a reply
ArKan Offline

Posts: 217
Post: #51

Нужен скрипт.

При захвате города этому городу назначается компьютерный игрок незанятого цвета, который становится союзником захватчика.
28.05.2021 11:41
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #52

ArKan, игроков всего 8, а городов до 48. Откуда брать столько союзников?


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

Posts: 1022
Post: #53

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
Find all posts by this user Quote this message in a reply
ArKan Offline

Posts: 217
Post: #54

Ок, каждому игроку назначается свой один союзник, который получает контроль над захваченным городом.
28.05.2021 22:42
Find all posts by this user Quote this message in a reply
Raistlin Away
Moderators

Posts: 1349
Post: #55

ArKan, а что делать, если этот союзник тоже захватит город? 148 Кстати, если свободные цвета закончились, а игроки - нет, то что?


Создал новый глобальный мод: WoG Ultra Edition
29.05.2021 02:59
Find all posts by this user Quote this message in a reply
ArKan Offline

Posts: 217
Post: #56

(29.05.2021 02:59)Raistlin Wrote:  ArKan, а что делать, если этот союзник тоже захватит город? 148

Ничего не делать.
29.05.2021 11:38
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16657
Post: #57

ERA 3? ERM 2+? Действовать должно только на игрока-человека?


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

Posts: 1315
Post: #58

ArKan, всеми этими уточняющими вопросами тебя подводят к тому, что если ты чётко не опишешь все условия
(когда; где; на кого; в каком случае... и т.д.) скрипта, который хочешь получить, то ты его никогда не получишь.


Карта-мод "Война на Холсте"
29.05.2021 17:59
Find all posts by this user Quote this message in a reply
ArKan Offline

Posts: 217
Post: #59

(29.05.2021 15:24)Berserker Wrote:  ERA 3? ERM 2+? Действовать должно только на игрока-человека?

Играю этой сборкой, версия до ланчера
http://wforum.heroes35.net/showthread.php?tid=5235
29.05.2021 18:10
Find all posts by this user Quote this message in a reply
PerryR Offline

Posts: 460
Post: #60

(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
30.05.2021 13:21
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