|
|
Ghost

 
     
Legendary Hero
Therefore I am
|
posted October 09, 2020 12:52 AM |
|
|
RerryR said:
Ghost said:
sorry I have a really hard time to understand what you need.
All I can say is that you must improve your scripts by adding comments and structure it more clearly by separating instructions from Triggers. If you want to avoid AI using objects always use flag 1000 as condition -> &1000
!#VRz982:S^Cursed Hill Fort (upgrade creatures)^; //Instructions dont need a trigger
!#OB227/112/1:Hz982; // Instruction for setting description
!?OB227/112/1; //Object Trigger
!!MA:U61/159; //Set Upgrade for creature 61
!!MA:U111/157; ...
!!MA:U157/168; ...
!!HE-1:D; Call upgrade dialog for hero's army (no parameters)
I don't want to avoid AI. ÁI visits to Cursed Hill Fort, and message shows AI's armies, I can't help to upgrade their troops. I don't want message, I want AI can upgrade creatures.
Ok I write a comments
____________
Fight MWMs - stand teach
|
|
RerryR

  
    
Promising
Supreme Hero
Researching Magic
|
posted October 09, 2020 08:09 AM |
|
Edited by RerryR at 08:18, 09 Oct 2020.
|
@Ghost
I see.
You can try with this command
HE :C1/#1/$2/$3
Change monsters by type
All monsters of type #1 will change into:
$2 - type: Format C
$3 - number.
!?OB227/112/1&-1000; //Object Trigger only for computer player
!!HE-1:C1/61/159/d0; //Upgrade all 61-Wraith to 159-Ghost in the current heroes Army
!!HE-1:C1/157/168/d0; //Upgrade all 157-Hell Hydra to 168-Gorynych in the current heroes Army
|
|
Ghost

 
     
Legendary Hero
Therefore I am
|
posted October 09, 2020 08:20 AM |
|
|
Ok later on I test then.
Now's sad attempt, I tried !!EA96:L756000;
I quote from ERM help reads
Set/get an experience scale and limit.
This sets the stack experience needed for a creature to reach rank 10, and from this number the experience needed for each rank up to 10 is also derived and automatically calculated by the game (as a percentage of this total).
Example:
********
!!EA141:L30000; [Set rank 10 experience for Mummies to 30000 points]
********
And sad script doesn't work. Is something missing? Give full script, when I can't find about ERM help.
____________
Fight MWMs - stand teach
|
|
RerryR

  
    
Promising
Supreme Hero
Researching Magic
|
posted October 09, 2020 08:34 AM |
|
Edited by RerryR at 08:35, 09 Oct 2020.
|
Works for me, full script:
!#EA118:L50000; [Set rank 10 experience for 118-Pixies to 50000 points at map start]
|
|
Ghost

 
     
Legendary Hero
Therefore I am
|
posted October 09, 2020 12:31 PM |
|
|
RerryR said: Works for me, full script:
!#EA118:L50000; [Set rank 10 experience for 118-Pixies to 50000 points at map start]
It also doesn't work.
I left unfinished educational science, I think to create "Easiest ERM script tutorial" thread.
Comment is done*. Now I test whether AI upgrades troops.
*My style:
1.)
Above Z starts WoG that the timed event is a script.
2.)
!?PI means post Instruction
3.)
!#UN is a UNIVERSAL COMMANDS
!#UN = Set WOG options
Example of !#UN 5 says
!#UN 5/0 WoGify random WoG maps
!#UN 5/1 WoGify ALL WoG maps
!#UN 5/2 WoGify ALL RoE, AB, SoD and WoG maps
!#UN 5/3 WoGify ALL maps but ASK before WoGifying
but EA doesn't work.
____________
Fight MWMs - stand teach
|
|
Ghost

 
     
Legendary Hero
Therefore I am
|
posted October 11, 2020 01:53 PM |
|
|
Ghost said: Now's sad attempt, I tried !!EA96:L756000;
Yes it works, I'm happy. Would be problem, and I found wrong 96 format by chance, I tried Ancient Behemoth. Now's WoG got a H4 "stack experience".
____________
Fight MWMs - stand teach
|
|
VictoryHarpy

 
Tavern Dweller
Strike&Return
|
posted October 21, 2020 04:29 PM |
|
|
Hi friends,
I have a problem when creating a random map using the map editor. I'll end up having this crash text Quote: Exception EAccessViolation in module h3wmaped.exe at 00029E1B.
Access violation at address 00429E1B in module "h3wmaped.exe" Read of address 00000000.
Trying the second or the third time will usually work. Is there a solution for this ?
BTW, I'm running Era gaming build v3.0.4 and Third Upgrades Modv 2.2.0 for ERA 3.
The game is installed as C:GOG GamesHoMM 3 Complete and running on Windows 10.
Great community by the way guys, thank you!
____________
|
|
Bersy

    
    
Honorable
Supreme Hero
|
posted October 21, 2020 08:03 PM |
|
|
|
VictoryHarpy

 
Tavern Dweller
Strike&Return
|
posted October 21, 2020 09:18 PM |
|
|
Thank you Bersy, that seems to did it.
|
|
Ghost

 
     
Legendary Hero
Therefore I am
|
posted October 24, 2020 02:44 PM |
|
Edited by Ghost at 16:07, 24 Oct 2020.
|
Werewolves to Goblin Knights 
I ask you
!!EA194:B6/1/87/61/0/5/10/15/20/25/30/35/40/45/50; [194 Werewolf 87 Magic Resistance]
Ok I waited for percent, but table showed =0 =5 etc, not 0% 5% etc Does it = mean percent? If not, give full script.
EDIT: The solution is !!EA194:B6/1/87/37/0/5/10/15/20/25/30/35/40/45/50;
I found Salamandre's thread 
____________
Fight MWMs - stand teach
|
|
RerryR

  
    
Promising
Supreme Hero
Researching Magic
|
posted October 24, 2020 04:27 PM |
|
Edited by RerryR at 16:32, 24 Oct 2020.
|
Ghost,
to check or manipulate the real current chance for creatures to resist a spell (MR) use this example code:
(just hover with a spell over enemy creature)
!?MR2; [Magic Resistance Trigger]
!!MR:N?y1 S?y7; [Get Creature Number and Spell Number]
!!BMy1:I?y2 T?y3 P?y4; [Get Creature Side]
!!BG:H?y50; [Get Casting Hero]
!!BA:Hy2/?y5; [Get Hero Number of creature side]
*!FU&y5<0:E; [Exit if no Hero]
*!FU&y50=y5:E; [Exit for beneficial spells, meaning same hero]
!!MR:F?y99; [Check current MR]
!!IF:L^MR is %Y99^;
*!MR:Fd15; [Apply increased resistance chance to that stack temporarily]
|
|
Ghost

 
     
Legendary Hero
Therefore I am
|
posted October 24, 2020 05:10 PM |
|
|
Now I don't use a difficult or special scripts, because I don't understand yet. At the moment basic and easy scripts. Ok I created three fantastic Hexis creatures, dracoliches kept the same. Now I do Salamandre's scripts to all H4 creatures, if find the same format list.
Thanks
____________
Fight MWMs - stand teach
|
|
XEricSin

 
   
Famous Hero
|
posted October 30, 2020 12:14 PM |
|
Edited by XEricSin at 17:22, 02 Nov 2020.
|
Hi,
I am trying to modify the battle hint when cursor is hovering over the target.
I need to know the direction or position of attack similar to cavalry's jousting.
Can someone help please? Thanks.
Edit:
Problem solved by Hawaiing.
!!UN:C6919200/4/?y10;
!!VRy12:Sy10+78544;
!!VRy13:Sy10+78548;
!!VRy14:Sy10+78552;
!!UN:Cy12/4/?y22;[目标屁股位置]肉搏/射击/施法时更新,无目标时为-1
!!UN:Cy13/4/?y23;[鼠标位置]
!!UN:Cy14/4/?y24;[落脚屁股位置]无目标时不更新,非肉搏时不更新
! !IF:L^%Y22 %Y23 %Y24^;
!!SN:W^MM0_Target_Butt^/y22;
!!SN:W^MM0_Cursor_Position^/y23;
!!SN:W^MM0_Attack_Position_Butt^/y24;
Edit:
I remember there is a function to clear the IF:L on the screen.
But I forgot what is was.
Can anyone show me the script please? Thanks.
|
|
Denmsk

 
Tavern Dweller
|
posted November 01, 2020 12:12 PM |
|
|
Hello everyone, can anyone make a simple script "any mine gives triple amount of resources any time", ore/wood income is 6, gold is 3000, other is 3. Thanks!
|
|
XEricSin

 
   
Famous Hero
|
posted November 25, 2020 02:13 AM |
|
Edited by XEricSin at 14:05, 25 Nov 2020.
|
I am posting this crash problem again, but this time with debug folder.
A crash occurs (not always) when entering battle, after music, before battlefield is shown.
This crash location is in game bug fix extended dll.
Can any warm hearted hero help me look at this, please?
debug
savegame
If this is due to my scripts or settings, I would like to avoid this problem on my side.
Thank you.
More info: It seems crash only happens with hero 139. Crash occurs if hero has creature specialty for creature id >197.
More info: This savegame does not crash on some computers. Could it be some system compatibility issue?
edit: Problem is gone after updating fix dll and amethyst dll
|
|
Bersy

    
    
Honorable
Supreme Hero
|
posted November 25, 2020 02:18 AM |
|
|
|
XEricSin

 
   
Famous Hero
|
posted November 25, 2020 05:22 AM |
|
|
Bersy said: Could you make a test savegame? Which Era version do you use?
Uploaded savegame. ERA3.2. Thank you.
|
|
Bersy

    
    
Honorable
Supreme Hero
|
posted November 25, 2020 01:51 PM |
|
|
|
XEricSin

 
   
Famous Hero
|
posted November 25, 2020 02:03 PM |
|
|
Bersy said: Seems like you use old buggy BatteSave plugin by igrik. It screws savegames. The plugin should be updated/removed and map restarted (not loaded).
Just updated fix dll and amethyst dll to newest one.
The problem is resolved!
Thanks for your time, Bersy and igrik and maja.
|
|
Bersy

    
    
Honorable
Supreme Hero
|
posted November 26, 2020 08:57 PM |
|
|
|
|