Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: ERM help and discussion
Thread: ERM help and discussion This Popular Thread is 407 pages long: 1 50 100 150 200 250 300 ... 326 327 328 329 330 ... 350 400 407 · «PREV / NEXT»
szaman
szaman


Known Hero
posted April 20, 2017 12:58 AM
Edited by szaman at 01:57, 20 Apr 2017.

Maybe im blind but there is nothing about rewards i just want to change the Home of the bat rewards from vampires to hobgoblins

Edit:

Nevermind, forgot about the !!CB, everything works fine now

Strange...

The !!CB works only for one stack of creature...

eg:
!!CBx/y/z:M85/25; [gives 25 Hoggoblins] - Works fine!
But!
!!CBx/y/z:M85/25 M88/20 does not work it will give orcs but nie hobgoblins.

Is !!CB limited to only one stack of creature?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted April 20, 2017 09:38 AM

The regular reward probably. But you can add infinite rewards with post battle trigger (BA1), check if hero alive, check if there was a creature bank and its subtype, then if match add with IF:Q/HE:C whatever you want as reward.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
szaman
szaman


Known Hero
posted April 20, 2017 02:01 PM

Thanks Salamander I't works fine now

Notice a small bug in your script that you have given me couple months ago.

!$OBx/y/z;
!!HE-1?y1;
!!FU&y1<0:E;
!!POx/y/z:N?y2;
!!FU&y2>0:E;
!!UN:J6/8/?y3; generate random major artifact
!!HE-1:Ay3 B0/?z1;
!!IF:Q1/8/y3/1^Przeszukując groby, widzisz pewną błyszczącą rzecz.^;
!!POx/y/z:N15;

This script gives me a artifact no matter if i agreed to battle or not

Any way to fix it?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted April 20, 2017 02:08 PM

For that I must see the script which calls the battle and offers yes/no options.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
szaman
szaman


Known Hero
posted April 20, 2017 10:48 PM

Quote:
For that I must see the script which calls the battle and offers yes/no options.


!#VRz904:S^Black Citadel^;
!#OBx/y/z:Hz904;

!?OBx/y/z;
!!OB998:M-1/1/0; disable regular message
!!PO998:N?y1;
!!FU&y1>0:E;
!!IF:Q1^You are standing at the threshold of the %Z904, do you want to attack it?^;
!!FU&-1:E;
!!CBx/y/z:G0/116/10 G1/34/2 G2/9/1 G3/9/1 G4/34/2; [Set guards]
!!CBx/y/z:R5/5 R6/5000; [Add resource bonus]

!$OBx/y/z;
!!HE-1?y1;
!!FU&y1<0:E;
!!POx/y/z:N?y2;
!!FU&y2>0:E;
!!UN:J6/4/?y3; generate random minor artifact
!!HE-1:Ay3 B0/?z1;
!!IF:Q1/8/y3/1^After defeating the cave, %Z1 gets a minor artifact.^;
!!POx/y/z:N15;

I hope that helps


 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted April 20, 2017 10:52 PM
Edited by Salamandre at 22:55, 20 Apr 2017.

!#VRz904:S^Black Citadel^;
!#OBx/y/z:Hz904;

!?OBx/y/z;
!!OB998:M-1/1/0; disable regular message
!!PO998:N?y1;
!!FU&y1>0:E;
!!IF:Q1^You are standing at the threshold of the %Z904, do you want to attack it?^;
!!FU&-1:E;
!!PO998:N2;
!!CBx/y/z:G0/116/10 G1/34/2 G2/9/1 G3/9/1 G4/34/2; [Set guards]
!!CBx/y/z:R5/5 R6/5000; [Add resource bonus]

!$OBx/y/z;
!!HE-1:O?y1;
!!FU&y1<0:E;
!!PO998:N?y1;
!!FU&y1<>2:E;

!!UN:J6/4/?y3; generate random minor artifact
!!HE-1:Ay3 B0/?z1;
!!IF:Q1/8/y3/1^After defeating the cave, %Z1 gets a minor artifact.^;
!!POx/y/z:N15;

I am not at home so can't test, please do it and report if now ok.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
szaman
szaman


Known Hero
posted April 20, 2017 11:27 PM

Works Fine now Big Thanks! Like always, your knowledge is astounding.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
bloodsucker
bloodsucker


Legendary Hero
posted April 21, 2017 12:07 AM

So you use !!CB to monsters and reward but not to message and all the rest? Never tried it like this, just hope I can remember the next time I try to use that trigger.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
kpetov
kpetov

Tavern Dweller
posted April 21, 2017 12:44 PM
Edited by kpetov at 12:45, 21 Apr 2017.

I need a help to establich connection via tcp/ip. It was fine, but before few days the proveder did some changes on my network and until that i can t find the opponect adres, neither he can find mine.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Cavorite
Cavorite

Tavern Dweller
posted April 22, 2017 07:01 PM

Script

Salamandre said:
Show the script.


Here is the script:

ZVSE

!#TM4:S1/999/1/2; *** timer 4 every day for BLUE

!?TM4; *** trigger

!!OW:H1/55/0; *** how many heroes in v55
!!OW:H1/56/1; *** 1st Hero # in v56
!!OW:H1/57/2; *** 2nd Hero #t in v57
!!OW:H1/58/3; *** 3rd Hero # in v58
!!OW:H1/59/4; *** 4th Hero # in v59
!!OW:H1/60/5; *** 5th Hero # in v60
!!OW:H1/61/6; *** 6th Hero # in v61
!!OW:H1/62/7; *** 7th Hero # in v62
!!OW:H1/63/8; *** 8th Hero # in v63

!!HE-1:B2/?v64; *** current hero class in v64
!!VRv64:Sv64:2; *** current hero town type in v64
!!VRv65:Sv64*16; *** starting hero # for town type v65
!!VRv66:Sv65+16; *** ending hero # for town type v66

!!DO70/v65/v66/1&v55>0; *** do FUNCTION 70 16 times
----------------------------------------------------------------------------------------
FUNCTION #70
ZVSE

!?FU70; *** Function # 70

!!HEx16:R3/0/1; *** disable heroes in tavern for blue
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted April 22, 2017 07:12 PM

ok so your script should trigger once blue player clicks on tavern. Can you please specify very precisely what the script should do? Once a hero is hired, no longer other heros in tavern? Does the current town type determinate which class hero is? Please write all so I don't start in wrong direction.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
szaman
szaman


Known Hero
posted April 25, 2017 02:58 AM

Is there a way to add a specific stack a custom amount  of hitpoints?

Lets's say...

In custom bank creature are 5 stack of creatures, one stack will have 1000 hp is this possible?

let's say it's the "forth" stack in Custom Bank, a single power lich with 1000 hp.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted April 25, 2017 08:40 AM

Specify the 5 stacks, each one how many creatures and which type each. Then coordinates of the object.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
szaman
szaman


Known Hero
posted April 25, 2017 10:08 PM

First stack: Wraith (30)
Second stack: Zombie (100)
Third stack: Walking Dead (200)
Fourth stack: Wraith (50)
Fifth stack: Power Lich (1) <------This one with 1000hp

Object: Crypt -- Type:84 Subtype:0
coordinates of the object: 102/70/0

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Cavorite
Cavorite

Tavern Dweller
posted April 29, 2017 03:17 AM

Salamandre said:
ok so your script should trigger once blue player clicks on tavern. Can you please specify very precisely what the script should do? Once a hero is hired, no longer other heros in tavern? Does the current town type determinate which class hero is? Please write all so I don't start in wrong direction.


When the player hires a hero, all other heroes from the same town type as the hero the player just hired will no longer be available in the tavern. What I'm trying to do is only allow the player to hire one hero from any town type. So if the player hires a knight they would not be able to hire a cleric or another knight. If the player hires an overlord they would then not see any other overlord or warlocks. Hire an undead and no other undead (Death knight or Necromancer) will appear in the tavern.

The current town type has nothing to do with what heroes are available, only the players heros do. If the player has a Tower hero then no other Tower heroes will be available for hire. If a Fortress hero is hired then no other Fortress heroes will be in the tavern.

Hope this explains what I'm trying to do.


____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Cavorite
Cavorite

Tavern Dweller
posted April 29, 2017 03:18 AM
Edited by Cavorite at 03:22, 29 Apr 2017.

Sorry I re posted by mistake.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted April 29, 2017 04:39 PM
Edited by Salamandre at 17:54, 29 Apr 2017.

Try this:

ZVSE

When click on tavern a random hero whose class doesn't match any of your heroes will be in left slot. Tavern will be empty if 8 or more heroes are active.

!?CM1;    
!!CM:S?y1 I?y2; tavern left click  
!!FU&y1<>12/y2<>5:E;  
!!OW:C?y3;  get player
!!OW:Hy3/2/0; store number of heroes in y4
!!OW&v2>=8:Vy3/-1/-1; set to none in tavern if already 8 heroes 4
!!FU&v2>=8:E;
!!VRy4:S0R155;  get a random hero
!!HEy4:O?y5;   get his owner
!!SN&y5>-1:G6;  redo if already owned
!!HEy4:B2/?y6; get class 8  
!!VRv3:S-1;   initialize v3  
!!DO123456/0/155/1:Py3/y6/y4;  
!!SN&v3<0:G6;    if didn't match, redo all

!?FU123456;
;x1 player
;x2 class of random hero
;x3 random hero
!!HEx16:O?y1;
!!FU&y1=x1:E; exit if same owner
!!HEx16:B2/?y2;
!!FU&y2=x2:E;
!!VRx16:S999;
!!VRv3:S99;
!!OW:Vx1/x3/-1; place in tavern left slot  this random hero if class doesn't match any of player heroes

If you change anything in the first part, don't forget to add to SN:G counting. You can also change the trigger to a timer so it doesn't change every time you click on tavern.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Cavorite
Cavorite

Tavern Dweller
posted May 01, 2017 03:29 PM

Salamandre said:
Try this:

ZVSE

When click on tavern a random hero whose class doesn't match any of your heroes will be in left slot. Tavern will be empty if 8 or more heroes are active.

!?CM1;    
!!CM:S?y1 I?y2; tavern left click  
!!FU&y1<>12/y2<>5:E;  
!!OW:C?y3;  get player
!!OW:Hy3/2/0; store number of heroes in y4
!!OW&v2>=8:Vy3/-1/-1; set to none in tavern if already 8 heroes 4
!!FU&v2>=8:E;
!!VRy4:S0R155;  get a random hero
!!HEy4:O?y5;   get his owner
!!SN&y5>-1:G6;  redo if already owned
!!HEy4:B2/?y6; get class 8  
!!VRv3:S-1;   initialize v3  
!!DO123456/0/155/1:Py3/y6/y4;  
!!SN&v3<0:G6;    if didn't match, redo all

!?FU123456;
;x1 player
;x2 class of random hero
;x3 random hero
!!HEx16:O?y1;
!!FU&y1=x1:E; exit if same owner
!!HEx16:B2/?y2;
!!FU&y2=x2:E;
!!VRx16:S999;
!!VRv3:S99;
!!OW:Vx1/x3/-1; place in tavern left slot  this random hero if class doesn't match any of player heroes

If you change anything in the first part, don't forget to add to SN:G counting. You can also change the trigger to a timer so it doesn't change every time you click on tavern.


Your script is for ERA and I'm using WOG 3.58f. Also I need it to work for the tavern inside of a town, NOT a tavern on the adventure map so theres no need to check the owner. Only the one human player will be affected by this.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted May 01, 2017 03:55 PM
Edited by Salamandre at 16:15, 01 May 2017.

I am sorry, I don't have 3.58 because it is no longer supported, has thousands of bugs and not compatible with HD mod. Today 3.59 (ERA) is the standard, you should have specified you want a script for 358.

Also CM1 is town trigger, not tavern on adventure map. Then human player is checked to see if the random picked hero matches any of his own ones, so is not about who is affected. I will convert the script to 358 syntax

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
szaman
szaman


Known Hero
posted May 05, 2017 01:16 AM

Im trying change cretures stats.... but only one stack of creature on the map...

eg:
!?OB30/30/0;
!!MA12/6000;

The !!MA changes all X creatures on the map.

Adding !?OBx/y/z dosen't help either.

Is there any possibility to change only the one stack on adventure map?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 407 pages long: 1 50 100 150 200 250 300 ... 326 327 328 329 330 ... 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.3114 seconds