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 ]
New Server | HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info 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 328 pages long: 1 2 3 4 5 ... 70 140 210 280 ... 324 325 326 327 328 · «PREV
szaman
szaman


Adventuring 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


Adventuring 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


Adventuring 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


Adventuring 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


Supreme 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


Adventuring 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


Adventuring 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
Jump To: Next Thread » This Popular Thread is 328 pages long: 1 2 3 4 5 ... 70 140 210 280 ... 324 325 326 327 328 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0922 seconds