|
|
bloodsucker
Legendary Hero
|
posted August 15, 2024 02:54 PM |
|
|
Should I expect problems from scripting too many battles (like the Ogres in Alexander)?
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 15, 2024 06:53 PM |
|
|
No, if they don't overlap, so each battle needs a different flag/conditions.
|
|
bloodsucker
Legendary Hero
|
posted August 15, 2024 09:28 PM |
|
|
I know you hate theoretical questions but:
Is it possible (does it make sense) to set battle counters like the ones in Usain mod to ALL AI heroes?
I'm dreaming of making my own Second Henchman but for it to work for AI the way I envision it, I would have to be able to get both the experience and the number of previous battles that hero has.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 19, 2024 09:22 AM |
|
|
In Usain Bolt you have en example on how to keep track of wins, for any hero. So, just play with flag 1000 to determine human/AI.
|
|
bloodsucker
Legendary Hero
|
posted August 19, 2024 10:47 AM |
|
|
Another question even more theoretical.
I know AI versus AI battle aren't real battles but do they consider the battle value of a developed Commander?
Cause just Adelaide's commander and her henchman, no Second at this point, are worth way more then the 20 AAs + 75 Hell Steeds + 100 Enchanters + 500 Lava Sharpshooters I have on her, so an AI that has something of this value can win much more then one that hasn't...
____________
|
|
bloodsucker
Legendary Hero
|
posted August 19, 2024 05:12 PM |
|
|
Salamandre said: So, replace ZM174NPC.def with hellstead def (check name) then %V3.def with champion def then should be ok.
But you know the name of the .lod file and where it is, right? Cause I looked in the ones in Data but they don't seem to have this defs.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 20, 2024 04:28 AM |
|
|
You have to look in WoG data for wog added creatures - like commanders, then in H3 data for original ones.
|
|
bloodsucker
Legendary Hero
|
posted August 20, 2024 12:08 PM |
|
|
Ok, I've come to this values...
!!SN:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^CCHAMP.def^/^ZM195Z.def^; Change def
!!SN:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^AVWcvlx0.def^/^ZMM195Z.def^; Change def
CCHAMP I've guessed based on the names in TEW III (I was so unlucky it was the one different...), it works.
AVWcvlx0 is what's in H3sprite and it seems clearly the small def. It doesn't work.
Do you see why?
P.S. If I buy an Heel Steed, what appears in garrison is a Champion, If I buy a Cavalier and upgrade it, I see an Heel Steed.
Is it possible that the problem is with the town screen and not the def?
I've tried to upgrade the Training Grounds, they still look like Champions.
**
This code works fine but in the end opens a meeting screen of Adelaide with herself. I know I've already seen this happen in other maps but I have no idea why it's happening.
**** Town Giver
!?OB23/13/1;
!!TR23/13/1:E1;
!!IF:M^You have proven your value and the people of Queens Landing accept you as their ruler.^;
!!CA26/20/0:O0;
!!CA26/20/0:M2/0/171/60; **************** add creatures to Queens Landing
!!CA26/20/0:M2/1/136/12;
!!CA26/20/0:M2/2/195/20;
!!CA26/20/0:M2/3/138/120;
!!UN:S26/20/0/0/6;
!!UN:L26/20/0/2000;
!!UN:L23/13/1/1000;
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 20, 2024 01:31 PM |
|
|
bloodsucker said:
!?OB23/13/1;
!!TR23/13/1:E1;
!!IF:M^You have proven your value and the people of Queens Landing accept you as their ruler.^;
!!CA26/20/0:O0;
!!CA26/20/0:M2/0/171/60; **************** add creatures to Queens Landing
!!CA26/20/0:M2/1/136/12;
!!CA26/20/0:M2/2/195/20;
!!CA26/20/0:M2/3/138/120;
!!UN:S26/20/0/0/6;
!!UN:L26/20/0/2000;
!!UN:L23/13/1/1000;
Which line produces the "trade with herself" bug?
|
|
bloodsucker
Legendary Hero
|
posted August 20, 2024 02:13 PM |
|
|
None. It returns the focus to her, waits a second then opens the screen.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 20, 2024 02:17 PM |
|
|
Of course, one line is producing the bug (and your answer makes it clear which), it doesn't come from Holy Spirit. You need to learn debugging, so you figure how it works. Try it.
|
|
bloodsucker
Legendary Hero
|
posted August 20, 2024 02:25 PM |
|
|
Both the last ones. If I comment both it doesn't happen but it happens with any one active.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 20, 2024 03:08 PM |
|
|
If you remove only the last one, does it happen?
What about this? Tried to disable?
!!TR23/13/1:E1;
Something there is clearly creating a conflict in game mechanics, find which then figure workaround.
|
|
bloodsucker
Legendary Hero
|
posted August 20, 2024 03:11 PM |
|
|
Salamandre said: If you remove only the last one, does it happen?
Yes. It's disabled.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 20, 2024 03:14 PM |
|
|
And if you do this, does it occur?
!?CM0; when right click on map
!!TR23/13/1:E1;
!!IF:M^You have proven your value and the people of Queens Landing accept you as their ruler.^;
!!CA26/20/0:O0;
!!CA26/20/0:M2/0/171/60; **************** add creatures to Queens Landing
!!CA26/20/0:M2/1/136/12;
!!CA26/20/0:M2/2/195/20;
!!CA26/20/0:M2/3/138/120;
!!UN:S26/20/0/0/6;
!!UN:L26/20/0/2000;
!!UN:L23/13/1/1000;
____________
Era II mods and utilities
|
|
bloodsucker
Legendary Hero
|
posted August 20, 2024 03:25 PM |
|
|
No.
Object is a subterranean cartographer set to object 44, I have a bunch of things set to Object 44 (that is awful). Can it be related?
Since I find the objects quite poor, I've been making a ton of decorative objects and others like watering holes, sanctuaries, etc hold code or be something else.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 20, 2024 03:28 PM |
|
|
ID 44 is a monolith exit. Thats why she meets herself.
|
|
bloodsucker
Legendary Hero
|
posted August 20, 2024 03:33 PM |
|
|
Type 63 subtype 44.
____________
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 20, 2024 03:50 PM |
|
|
I would try different variants :
Instead of !?, use post object visit !$OB#1/#2/#3
Or, after !?OB#1/#2/#3 I would disable active hero
!!OW:A-1/-1;
[rest of script]
If none works, you have to find another workaround for moving views.
|
|
bloodsucker
Legendary Hero
|
posted August 20, 2024 04:55 PM |
|
|
Just to give an idea of what we are talking about...
Most of those stones are other objects. All those similar to the one she's visiting contain dozens of random battles. The Watering Hole are Arenas and the four peaky stones are Schools of Magic. The first Cartographer is a University, the other gives the town, you got the theme...
P.S. Do you know if the small pics of creatures in the bottom left of the Town Screen are a part of this two defs or something else? Cause I saw a def just with small pics of different creatures that I think is related to it.
____________
|
|
|