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 ... 253 254 255 256 257 ... 300 350 400 407 · «PREV / NEXT»
LizardWarrior
LizardWarrior


Honorable
Legendary Hero
the reckoning is at hand
posted January 28, 2015 08:07 PM
Edited by LizardWarrior at 20:58, 28 Jan 2015.

Is it possible to make the Grail to cast a bless on all your creatures before combat? If yes, how can I make it do so?

Also can I make an artifact to give all units under the hero's command a special ability?

Thanks in advance.

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


Admirable
Omnipresent Hero
Wog refugee
posted January 28, 2015 09:01 PM

Which grail? And yes about artifact too.
____________
Era II mods and utilities

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


Honorable
Legendary Hero
the reckoning is at hand
posted January 28, 2015 09:03 PM

Rampart's Grail

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


Admirable
Omnipresent Hero
Wog refugee
posted January 28, 2015 09:13 PM

Sumtin like this:

ZVSE

!?BR&v997=0/1000; first battle round
!!IF:V1/-1;
!!BA:H0/?y1 H1/?y2;  check heroes left/right
!!HEy1:O?y3;  check owners
!!HEy2&y2>-1:O?y4;
!!UN:U98/-1/?y-1;    cycle all towns
!!VRv1:S-1;
!!DO776644/1/y-1/1:P98/y3;
!!DO776645/0/8/1&1:P;   apply bless left side if grail found
!!VRz1:S^bless.wav^;
!!SN&1:Pz1;        play bless sound
!!if&y2>-1:;       do same for right hero, if any
!!UN:U98/-1/?y-1;
!!VRv1:S-1;
!!DO776644/1/y-1/1:P98/y4;
!!DO776645/21/29/1&1:P;
!!VRz1:S^bless.wav^;
!!SN&1:Pz1;
!!en:;

!?FU776644;
!!UN:Ux1/-1/-1/1;
!!CA1:O?y1 T?y2;
!!FU&y1<>x2:E; check owner
!!FU&y2<>1:E;  check for rampart
!!CA1:B3/26;
!!VRx16&1:S99;

!?FU776645;
!!BMx16:H?y1;
!!FU&y1<1:E;
!!BMx16:M41/999/3; apply bless for 999 rounds
!!BMx16:V36;    play animation
____________
Era II mods and utilities

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


Honorable
Legendary Hero
the reckoning is at hand
posted January 28, 2015 09:15 PM

Thank you very much

I guess it's time to learn ERM

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


Known Hero
posted January 29, 2015 02:09 AM

Salamandre said:
Sumtin like this:

ZVSE

!?BR&v997=0/1000; first battle round
!!IF:V1/-1;
!!BA:H0/?y1 H1/?y2;  check heroes left/right
!!HEy1:O?y3;  check owners
!!HEy2&y2>-1:O?y4;
!!UN:U98/-1/?y-1;    cycle all towns
!!VRv1:S-1;
!!DO776644/1/y-1/1:P98/y3;
!!DO776645/0/8/1&1:P;   apply bless left side if grail found
!!VRz1:S^bless.wav^;
!!SN&1:Pz1;        play bless sound
!!if&y2>-1:;       do same for right hero, if any
!!UN:U98/-1/?y-1;
!!VRv1:S-1;
!!DO776644/1/y-1/1:P98/y4;
!!DO776645/21/29/1&1:P;
!!VRz1:S^bless.wav^;
!!SN&1:Pz1;
!!en:;

!?FU776644;
!!UN:Ux1/-1/-1/1;
!!CA1:O?y1 T?y2;
!!FU&y1<>x2:E; check owner
!!FU&y2<>1:E;  check for rampart
!!CA1:B3/26;
!!VRx16&1:S99;

!?FU776645;
!!BMx16:H?y1;
!!FU&y1<1:E;
!!BMx16:M41/999/3; apply bless for 999 rounds
!!BMx16:V36;    play animation



what about my question salamandre?? please

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


Admirable
Omnipresent Hero
Wog refugee
posted January 29, 2015 02:36 AM
Edited by Salamandre at 02:59, 29 Jan 2015.

mister_kalu said:
how do you know if some hero visited the stable with R7/1, i don't understand the command.


I didn't answer because I never used that command and have no clue about. As I read it, you may have several work around, using hero w vars, I think is easier. When visit stables, set one w var (you have 200 of them) to something, then timer checks every day that w var, if bigger than 0 give +5 tiles mvm. Then on first day of the week, reset w vars to zero, so he must visit stables again.
____________
Era II mods and utilities

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


Legendary Hero
posted February 02, 2015 02:13 AM

I have seen some custom battles using a normal creature completly buffered or with special habilities, like the Big Boss on TDS or the Power Lich on the Death Chamber or even an imp in an object on Deception Pass.
I suspect this is impossible; first cause I'm not seeing a way to do it, second cause I've seen some complex work arounds but: is it possible to give the AI the hability to cast some spells at some level without using an hero identity? I ask this cause Invite-Tavern allows you to hire any hero and I often get commander and henchmen (dead) already trained when I play with random hero, the same can happen if you use Hourglass of Asmodeus and after that hire Xeron but I like the idea of using heroes (or something else) to buffer creatures in neutral battles.

If it is possible does anyone remember a map where it was done?


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

Tavern Dweller
posted February 07, 2015 01:49 AM

Salamandre said:
Sumtin like this:

ZVSE

!?BR&v997=0/1000; first battle round
!!IF:V1/-1;
!!BA:H0/?y1 H1/?y2;  check heroes left/right




Hello, Salamandre!

I am trying to use the level value of hero's tactics specialty, after battle has started, but I don't figure out why the returned result is zero value...

The buggy code is this:

!?BG0;

!!BG:Q?y90;                  current attacker  (0= left, 1 = right)
!!BHy90:N?y-90;               current hero #?

!!HEy-90:S19/?y11; (check if hero has expert tactics)
!!HEy-90:S6/?y12; (check if hero has expert leadership)

!!FU|y11<>3/y12<>3:E;         exit if not expert in all

For some reason, the y11 and y12 values appear to be returned with value "0" and the FUnction exits, though the hero has been previously setted with level 3 (expert) for both tactics and leadership, thus the result should have returned the value "3" and the FUnction should not have exited...

Please, help out with this code issue...

Thank you.

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


Legendary Hero
posted February 07, 2015 05:31 PM
Edited by bloodsucker at 17:33, 07 Feb 2015.

It is possible to create an action for a creature using BG0 and BG1. If I wanted to make a creature cast haste every battle round, could this be done? Do you remember any place where it was?

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


Admirable
Omnipresent Hero
Wog refugee
posted February 07, 2015 07:02 PM
Edited by Salamandre at 19:07, 07 Feb 2015.

Guys, please:

put your requests in  this thread, not in private messages. I am not always in mood to start erm arguments through IM, answers often need codes examples, thinking, testing, then often I browse not from home, so don't have access to manual. This is why this thread is for, ask then be patient, wait for someone to answer.
____________
Era II mods and utilities

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


Legendary Hero
posted February 07, 2015 07:23 PM
Edited by bloodsucker at 00:11, 08 Feb 2015.

@Salamandre

Sorry, I still don't have any code so I thought my idea was too ambigous and I wanted a personal opinion about how hard it would be to make it or if you knew a better (easier) way to do it.


@All
I want to create a site where you battle for a creature bonus.
The idea is: you have to enter with a single creature of the type you want to enhance and you will have to battle an avatar that has the looks of the creature but the stats of an azure dragon + 10x the value of the creature ones (so, for a peasant 1010 health, 60 attack and defense and 80 - 90 of damage, for a Supreme Archangel 6000 health, 450 attack and defense and 820-830 of damage).
I want the victory to give a bonus to the creature but I wanted it to be much more difficult to obtain for higher level creatures. What do you think: does this looks a good way to do it? Do you have another sugestion?
Also, I want to find a way to give the creature some blessings. I was thinking of use the BG1 trigger to cast random benefical spells (except cure) every turn and cure every 3rd turn.
Do you know a better way to do it?

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


Legendary Hero
posted February 16, 2015 01:09 AM

I want to replace all Hovels (peasants) with Golem Factories in a XXL map. The reason I don't do it manually is because I already know dwellings much excede his maximum number.

1.Should I expect problems from this numbers?

2.Can somone point me a simple script doing this? I looked in some I already knew like Wogify and Adventure Pillars but their code tests a lot of things and overall is much more complicated then what I need.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 16, 2015 03:28 AM

I never saw any hovels in random maps, but anyway:

ZVSE

!#TM2:S1/999/1/255;

!?TM2;
!!UN:U17/-1/?y-1;  find creature dwellings
!!VRv1:S-1;
!!DO12345/1/y-1/1&y-1>0:P17/74; [change function number to something not already used]

!?FU12345;
;x1 creature dwelling
;x2 hovel subtype
!!UN:Ux1/-1/-1/1; dwelling in v1-v3
!!OB1:U?y1;
!!FU&y1<>x2:E;
!!UN:Ov1/v2/v3;
!!UN:Iv1/v2/v3/20/1;

____________
Era II mods and utilities

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


Legendary Hero
posted February 16, 2015 04:23 AM

Salamandre said:
I never saw any hovels in random maps


Thanks, I usually make the maps in map editor. I already deleted the description but it was an 8mm6 or 8mm6a. I always get tons of hovels when I create the maps this way.

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


Legendary Hero
posted February 16, 2015 08:19 PM
Edited by bloodsucker at 02:08, 17 Feb 2015.

If, in a XXL random map that already excedes the number of allowed dwellings, I use the UN commands to replace all lean to by Frozen Cliffs, all dragonfly hives by Sulfurus Lairs and all Darven Treasuries by Dragon Graveyards and so on, should I expect the game to crash?
Is it tested what is the real maximum number of external dwellings a map will allow?

P.S. Well, until now is letting me replace everything I could remember so the number must be more then the double.

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


Legendary Hero
posted February 17, 2015 09:20 PM

I want to create a event working like this: occurs for the first time day 56 and "repeats" every 7 days, takes x money and resources from human player, every month the amount doubles. Values never go negative.

I know I must use a timer like !#TM:S56/999/7/1; but I'm failing to see the algorithm. Should I keep result in variables and multiply it by two, count the number of weeks or what... Does any one remembers a map where this is done?




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


Admirable
Omnipresent Hero
Wog refugee
posted February 17, 2015 09:54 PM

This is all you need.

!!VRy1:Sc0; current day
!!VRy2:Sc-1%7+1; day of the week
!!VRy3:Sc+6:7%4+1; week of the month

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


Legendary Hero
posted February 18, 2015 12:50 AM
Edited by bloodsucker at 02:18, 18 Feb 2015.

Salamandre said:
This is all you need.

!!VRy1:Sc0; current day
!!VRy2:Sc-1%7+1; day of the week
!!VRy3:Sc+6:7%4+1; week of the month


Well, thanks I guess. This is kind of the sphinx enigmas?

This is how I see it but is probably too confusing:

ZVSE

!#VRv4757:S5;
!#TM95:S7/999/7/1;
!#TM96:S28/999/28/1;

!?TM96;
!!VRv4757:*2;

!?TM95;
!!DO5678912/P;

!?FU5678912;

!!OW:R1/0/?y1;
!!VRy2:S0;
!!VRy2&y1-v4757>0:y1-v4757;

!!IF:N0/v4757; show the player what he has lost
!!IF:N^You have lost some resources^;

!!OW:R1/0/y2;

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


Admirable
Omnipresent Hero
Wog refugee
posted February 18, 2015 05:16 AM
Edited by Salamandre at 08:50, 18 Feb 2015.


Your syntax is voodoo.

Ok, when I gave you the formula, is not sphinx enigma. Again,  I put it here, complete, because this is the only way to deal with game time.

Day (1..n): !!VRv1:Sc0;
Day of the month (0..27): !!VRv1:Sc -1 %28;
Week of the month (1..4): !!VRv1:Sc -1 %28 :7 +1;

So, in your case:

ZVSE

!#VRv4757:S5; amount of resources to take off
!#TM2:S1/999/1/0;  timer 2, daily, red player only
!?TM2;
!!VRy1:Sc0; get day of the game
!!FU&y1<56:E;  exit if not day 56 yet
!!VRy2:Sc -1 %28;  get day of the month
!!VRv4757&y2=1:*2; double resource quantity every day 1 of the month
[..take resource from player, etc...]

 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 ... 253 254 255 256 257 ... 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1747 seconds