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 ... 5 6 7 8 9 ... 50 100 150 200 250 300 350 400 407 · «PREV / NEXT»
Daystar
Daystar


Honorable
Legendary Hero
Back from the Dead
posted September 17, 2004 04:23 AM

how do move scripts into H3?
____________
How exactly is luck a skill?

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


Promising
Adventuring Hero
Tarbosaurus Bataar
posted October 19, 2004 06:35 PM

@Top
____________
Per aspera ad astra

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
greek_god_su...
greek_god_superman


Famous Hero
Bringer Of Light
posted October 20, 2004 01:02 PM

How can I get my ballistas gain experience? I made my ballistas gain some bonuses with later levels but they do not level up. When I met up with my enemy, she had her ballista at novice-level. Or is just my ogre leader commander who does not allow my ballistas to get levels?
____________
After all, marriage and murder are not too different - one ends your life and the other is a crime

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


Promising
Famous Hero
Passed away
posted October 20, 2004 06:31 PM

only stacks in your army screen can gain experience automatically. for all other troops you will have to use some w vars to keep the experience of the stack and set it at the beginnning of battle
____________
The ultimate WoG tester

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
greek_god_su...
greek_god_superman


Famous Hero
Bringer Of Light
posted October 20, 2004 07:04 PM

But how my opponent (comp) gets levels for his ballista?
____________
After all, marriage and murder are not too different - one ends your life and the other is a crime

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


Promising
Famous Hero
Passed away
posted October 20, 2004 07:19 PM

dunno
a bug?
____________
The ultimate WoG tester

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
greek_god_su...
greek_god_superman


Famous Hero
Bringer Of Light
posted October 20, 2004 09:54 PM

Okay, next question to come:

What is wrong with this line:
Quote:
!!BMx16|y1=30/y1=31:M70/1/1;             [stone/obsidian gargoyle - stoned for the first round]
I added this line to script50.erm, I thought it would be cool if gargoyles would start the battle completely stoned and then at the beginning of second round they´d come to battle.. But it doesn´t work: Gargoyles are stoned forever and won´t get their turn. They will retaliate if they are attacked (and they are always attacked last cause they are stoned), but then they get stoned again.. Isn´t the bold number supposed to be the duration of spell, in this case; one turn? And if it is, then why doesn´t The enchantment wear off? Is it because of petrifying is considered a negative spell or what?
____________
After all, marriage and murder are not too different - one ends your life and the other is a crime

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


Promising
Famous Hero
posted October 20, 2004 10:41 PM

Quote:
Okay, next question to come:

What is wrong with this line:
Quote:
!!BMx16|y1=30/y1=31:M70/1/1;             [stone/obsidian gargoyle - stoned for the first round]
I added this line to script50.erm, I thought it would be cool if gargoyles would start the battle completely stoned and then at the beginning of second round they´d come to battle.. But it doesn´t work: Gargoyles are stoned forever and won´t get their turn. They will retaliate if they are attacked (and they are always attacked last cause they are stoned), but then they get stoned again.. Isn´t the bold number supposed to be the duration of spell, in this case; one turn? And if it is, then why doesn´t The enchantment wear off? Is it because of petrifying is considered a negative spell or what?


Where did you add the line exactly?  Perhaps that line is executing every turn of battle and thus re-stoning them?

If you're sure it's only occuring on turn one, then perhaps you're right and the petrification doesn't wear off (since it's not a standard spell), although I think the first explanation is more likely (that the code is occuring each turn).


____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
greek_god_su...
greek_god_superman


Famous Hero
Bringer Of Light
posted October 20, 2004 10:50 PM

It occurs each round.
And the place where I put the line was
Quote:
** function to cycle through all stacks  (give spells/abilities/check for fastest monster)   x1=trigger once flag
!?FU7060;
!!BMx16:T?y1;                            [get stack's monster type]

**  latent abilities  **
!!BMx16|y1=130/y1=131:M29/100/1;         [give bas. fire shield - firebird/phoenix]
!!BMx16|y1=40/y1=41/y1=152:M30/100/2;    [give adv. prot. air - giant/titan/LoT]
!!BMx16|y1=54/y1=55/y1=153:M31/100/2;    [give adv. prot. fire - devil/archdevil/hell baron]
!!BMx16|y1=12/y1=13/y1=150:M32/100/2;    [give adv. prot. water - angel/archangel/supreme aa]
!!BMx16|y1=96/y1=97/y1=156:M33/100/2;    [give adv. prot. earth - behemoth/ancient b/ghost b]
!!BMx16&y1=93:M30/100/2;                 [give adv. prot. air - thunderbird]
!!BMx16&y1=17:M55/100/3;                 [give exp. slayer - battle dwarf]
!!BMx16&y1=11:M27/100/1;                 [give bas. shield - champion]
!!BMx16&y1=21:M28/100/1;                 [give bas. air shield - silver pegasus]
!!BMx16|y1=24/y1=25:M36/100/1;           [give bas. magic mirror - unicorn/war unicorn]
!!BMx16|y1=8/y1=9:M48/3/1;               [give bas. prayer - monk/zealot]
!!BMx16|y1=30/y1=31:M70/1/1;             [stone/obsidian gargoyle - stoned for the first round]
here
____________
After all, marriage and murder are not too different - one ends your life and the other is a crime

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


Hired Hero
posted October 26, 2004 03:50 PM

you are both right,
the code executes every battle round, but (i think) stone spell cast by the ERM is in effect for the whole battle unless creature is attacked or dispel is cast on it.

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


Promising
Supreme Hero
of the Horadrim
posted October 27, 2004 09:05 PM

Quote:
But how my opponent (comp) gets levels for his ballista?

Do you mean that there are more ballistaes?
____________
| The HoMM Channel |

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


Adventuring Hero
posted October 28, 2004 06:40 AM

Quote:
It occurs each round.
And the place where I put the line was



That function triggers every round but there is a solution.  The easiest way would be to add a conditional of "v997=0" to the line that casts the stone spell. V997 tracks the current turn, in this case we want it to trigger only on turn 0, before anyone has a chance to move.

One warning about v997 and turn 0, if there is a tactics phase it will trigger once, however if there is a normal battle without tactics, it for some reason triggers twice.  That should have no effect on what you want here but it is good to keep in mind.


And BTW, the Stone spell does have a normal duration, I believe Sagamosa has it confused with dendroid Bind, which when cast via ERM lasts until dispelled.


Hope that helps.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
greek_god_su...
greek_god_superman


Famous Hero
Bringer Of Light
posted October 28, 2004 06:45 PM

Yes, Arstahd, that helped me! Thanks!

Quote:
Do you mean that there are more ballistaes?

No, I don´t, I know there is some ways of getting extra ballistas (ogre leader and some scripts). I meant the creature experience levels, the opponent had his ballista at rank 1 (is it novice or something)...
____________
After all, marriage and murder are not too different - one ends your life and the other is a crime

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


Admirable
Legendary Hero
ghost of the past
posted November 05, 2004 05:00 PM

Where can I find the external creature dwelling format file? I wasn't able to find it in erm help folder, but I remember it exists.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
greek_god_su...
greek_god_superman


Famous Hero
Bringer Of Light
posted November 24, 2004 07:29 PM

Any way to make commanders able to give flagged abilities to troops during (their) spellcasting?
For example, after succubus casts her fire shield and bloodlust to demons, she would give them no enemy retaliation too, for a duration of turns.
____________
After all, marriage and murder are not too different - one ends your life and the other is a crime

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
greek_god_su...
greek_god_superman


Famous Hero
Bringer Of Light
posted November 29, 2004 07:48 PM

My Q:
Quote:
Also, is there any way of getting creature cast a spell without performing an attack, like zealots being able to cast bless/prayer to selected friendly stack (like ogre magi)?


Fnord´s answer:
Quote:

Other than setting up some sort of mouse click-based casting, or writing a script to cast a spell based on another action (e.g., moving, waiting, defending), there isn't any way that I can think of.

The only way that Slava has been able to give a creature the icon-based spell casting abilities is through hard-coding. It seems that it's not possible to enable this through ERM.


Would it be possible to make some creatures cast spells by shift-click or ctrl-click then?
____________
After all, marriage and murder are not too different - one ends your life and the other is a crime

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


Promising
Famous Hero
posted November 30, 2004 12:15 AM

Quote:
My Q:
Quote:
Also, is there any way of getting creature cast a spell without performing an attack, like zealots being able to cast bless/prayer to selected friendly stack (like ogre magi)?


Fnord´s answer:
Quote:

Other than setting up some sort of mouse click-based casting, or writing a script to cast a spell based on another action (e.g., moving, waiting, defending), there isn't any way that I can think of.

The only way that Slava has been able to give a creature the icon-based spell casting abilities is through hard-coding. It seems that it's not possible to enable this through ERM.


Would it be possible to make some creatures cast spells by shift-click or ctrl-click then?


Yes, you could certainly do this with an ERM script. There are still some spells that don't seem to work properly when cast through an ERM command (e.g., Resurrection, Animate Dead, Teleport..and some others). Also, any spell when the player must choose a target stack will be more complicated to script than any spell that doesn't require this, but it could still be done.


____________

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


Admirable
Legendary Hero
ghost of the past
posted December 19, 2004 05:04 PM
Edited By: Vlaad on 19 Dec 2004

I have finished my large singleplayer scenario for the Maphaven contest, but I have a problem with blank artifacts...

1)Nothing special, mind you, but I can't seem to equip them properly:

-----------------------------------

Here's my "Ring of Mana":

ZVSE
!?OB5/165;

!!UN: Ov998/v999/v1000; [Delete ring]
!!UN:Iv998/v999/v1000/5/165; [Place ring]

!!ARv998/v999/v1000:M^{Ring of Mana}

Gives + 10 bonus on hero's spellpower and knowledge.^;

!?AE1&v998=165;
!!HE-1:Fd0/d0/d10/d10;
!?AE0&v992=165;
!!HE-1:Fd-0/d-0/d-10/d-10;

!#VRz429:S^{Ring of Mana}

Gives + 10 bonus on hero's spellpower and knowledge.^;
!#HT5/165:T429;

-------------------------------

The trouble is the ring can be put on many times, but the spellpower and knowledge don't change. In other words, if you take the ring off and on 9 times, the heroes gain + 90 on their spellpower and knowledge.

2)My other problem is a sword that I want to place in a ring slot. Oh, it fits fine, but if you try to take it off, it simply duplicates:

------------------------------------

ZVSE
!?OB5/162;

!!UN: Ov998/v999/v1000; [Delete sword]
!!UN:Iv998/v999/v1000/5/162; [Place sword]
!!ARv998/v999/v1000:M^Scimitars of the Second Strike

Give + 15 bonus on attack and defense and can be combined with other swords .^;
!?AE1&v998=162;
!!HE-1:Fd15/d15/d0/d0;
!?AE0&v998=162;
!!HE-1:Fd-15/d-15/d-0/d-0;
!#VRz430:S^{Scimitars of the Second Strike}

Give + 15 bonus on attack and defense and can be combined with other swords .^;
!#HT5/162:T430;
!!HE-1:A1/162/7;

---------------------------------

3)By the way, how can I make an artifact give weekly creatures to the hero who has it equiped on day seven? I've studied the old artifact boost script, but I couldn't figure it out.

4)What are the subtype # for two-way portals?

5)Where can I find the format file for external creature dwellings? I'm interested in Peasent dwelling.

6)Just a note: "place artifact to wagon" command doesn't always work. I have no idea why, but sometimes the content of this object seems to be completely random despite the ERM script. Sometimes it works well, though!







____________

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


Promising
Famous Hero
posted December 20, 2004 12:24 AM

Quote:
I have finished my large singleplayer scenario for the Maphaven contest, but I have a problem with blank artifacts...



That's cool. I'm hoping that Tim Duncan (aka Corribus) and myself will have our WoG map done in time too.

Quote:

1)Nothing special, mind you, but I can't seem to equip them properly:

-----------------------------------

Here's my "Ring of Mana":

ZVSE
!?OB5/165;

!!UN: Ov998/v999/v1000; [Delete ring]
!!UN:Iv998/v999/v1000/5/165; [Place ring]

!!ARv998/v999/v1000:M^{Ring of Mana}

Gives + 10 bonus on hero's spellpower and knowledge.^;

!?AE1&v998=165;
!!HE-1:Fd0/d0/d10/d10;
!?AE0&v992=165;
!!HE-1:Fd-0/d-0/d-10/d-10;

!#VRz429:S^{Ring of Mana}

Gives + 10 bonus on hero's spellpower and knowledge.^;
!#HT5/165:T429;

-------------------------------

The trouble is the ring can be put on many times, but the spellpower and knowledge don't change. In other words, if you take the ring off and on 9 times, the heroes gain + 90 on their spellpower and knowledge.



It looks like a simple error--you have v992 for the AE0 trigger instead of v998.

Quote:

2)My other problem is a sword that I want to place in a ring slot. Oh, it fits fine, but if you try to take it off, it simply duplicates:

------------------------------------

ZVSE
!?OB5/162;

!!UN: Ov998/v999/v1000; [Delete sword]
!!UN:Iv998/v999/v1000/5/162; [Place sword]
!!ARv998/v999/v1000:M^Scimitars of the Second Strike

Give + 15 bonus on attack and defense and can be combined with other swords .^;
!?AE1&v998=162;
!!HE-1:Fd15/d15/d0/d0;
!?AE0&v998=162;
!!HE-1:Fd-15/d-15/d-0/d-0;
!#VRz430:S^{Scimitars of the Second Strike}

Give + 15 bonus on attack and defense and can be combined with other swords .^;
!#HT5/162:T430;
!!HE-1:A1/162/7;



Get rid of the last line (the !!HE-1 line) and instead use a UN command to set the equip position of an artifact:  !#UN:A162/2/7;

You should also use a similar UN command to set the artifact's name and description (see the UN:A receiver for details).


Quote:

---------------------------------

3)By the way, how can I make an artifact give weekly creatures to the hero who has it equiped on day seven? I've studied the old artifact boost script, but I couldn't figure it out.



Use a weekly Timer (!#TM receiver and !?TM trigger) and then perform a DO loop through all heroes, checking for equipped artifacts with an HE:A2 command. If the hero has the artifact equipped, use an HE:C2 command to give the free creatures.

Quote:

4)What are the subtype # for two-way portals?



See Format M2. Type is 45, subtypes are 0..7.

Quote:

5)Where can I find the format file for external creature dwellings? I'm interested in Peasent dwelling.



See Format CG. Peasant dwellings are subtype 74.

NOTE: all objects in the main Format OB have links to the specific subtype Format where one exists.

Quote:

6)Just a note: "place artifact to wagon" command doesn't always work. I have no idea why, but sometimes the content of this object seems to be completely random despite the ERM script. Sometimes it works well, though!



I don't know but it seemed to work fine in 3.57f when I used it for my Choices map. Are you using the command in an instruction or in a receiver? Perhaps if it's in an instruction, the game sets the random artifact after that. If that's not it, I'm not sure.

____________

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


Admirable
Legendary Hero
ghost of the past
posted December 20, 2004 12:22 PM

Quote:
I'm hoping that Tim Duncan (aka Corribus) and myself will have our WoG map done in time too.

Damn! I'd hoped I would win that contest!
Quote:
It looks like a simple error--you have v992 for the AE0 trigger instead of v998.

Duh!
Quote:
Get rid of the last line (the !!HE-1 line) and instead use a UN command to set the equip position of an artifact:  !#UN:A162/2/7;

It works fine now.
Quote:
NOTE: all objects in the main Format OB have links to the specific subtype Format where one exists.
I know, I know, I've already used it for "Gelu Legacy 2" scenario but I swear I cannot find it now. I've reinstalled the game several times and probably have the old versions of the help files! 6)
Quote:
Are you using the command [place artifact to wagon]in an instruction or in a receiver? Perhaps if it's in an instruction, the game sets the random artifact after that.
Instruction, but the artifact was usually what I had set... Sometimes it matters whether the hero visits certain objects or not(a witch hut and obelisk nearby) before the wagon, but that's impossible. Never mind, I gave it up!

Anyway...

Thanks a lot! I really appreciate the time and effort you give to us mapmakers, even when we are the competition.

P.S. Seriously though, these contests are more than welcome.In my opinion, WoG needs new maps.It's nice to wogify old ones, mind you, but it's far from the experience when one plays unique scenarios.

Here's hoping the team will update the official site real soon!
____________

 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 ... 5 6 7 8 9 ... 50 100 150 200 250 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.5517 seconds