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 ... 33 34 35 36 37 ... 50 100 150 200 250 300 350 400 407 · «PREV / NEXT»
Ayreon
Ayreon


Famous Hero
posted April 23, 2009 07:59 PM

Here I am again, with, how surprising, another question.


ZVSE

!#OB15/43/0:S; **disable object
!#VRz14:S^A Band of Demons^; **no explanation needed, is there? :P
!#OB15/43/0:H14;

!?OB15/43/0&1000; **trigger object if player
!!IF&v4<6/v4>6:M^You don't want to fight with these Demons, they're not in anyones way.^; **if v4 is not 6, display
!!FU&v4<6/v4>6:E; **exit if v4 is not 6
!!IF&v4=6:M^Finally, a peasant who can fight!^; **display if v4=6
!!HE-1&v4=6:T15/43/0/49/30; **provoke battle w 49 horned demons
!!VRv4&v4=6:+1; **increase v4 by 1
!!UN&v4=7:O15/43/0/1; **delete object


My question here is, what's wrong?
Side information: The object is a horned demon.
Problem: The battle is provoked, but the messages are not displayed, and an error occurs when the object is about to be deleted.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted April 23, 2009 09:03 PM

Quote:


ZVSE

!#OB15/43/0:S; **disable object
!#VRz14:S^A Band of Demons^; **no explanation needed, is there? :P
!#OB15/43/0:H14;

!?OB15/43/0&1000; **trigger object if player
!!IF&v4<6/v4>6:M^You don't want to fight with these Demons, they're not in anyones way.^; **if v4 is not 6, display
!!FU&v4<6/v4>6:E; **exit if v4 is not 6
!!IF&v4=6:M^Finally, a peasant who can fight!^; **display if v4=6
!!HE-1&v4=6:T15/43/0/49/30; **provoke battle w 49 horned demons
!!VRv4&v4=6:+1; **increase v4 by 1
!!UN&v4=7:O15/43/0/1; **delete object




OK; First you should use !!IF&v4<>6: etc, no need v4<6/v4>6.
Delete object, remove the /1 at end so it looks:
!!UN&v4=7:O15/43/0; **delete object


ZVSE

!#OB15/43/0:S; **disable object
!#VRz14:S^A Band of Demons^; **no explanation needed, is there? :P
!#OB15/43/0:H14;

!?OB15/43/0&1000; **trigger object if player
!!IF&v4<>6:M^You don't want to fight with these Demons, they're not in anyones way.^; **if v4 is not 6, display
!!FU&v4<>6:E; **exit if v4 is not 6
!!IF&v4=6:M^Finally, a peasant who can fight!^; **display if v4=6
!!HE-1:T15/43/0/49/30; **provoke battle w 49 horned demons (removed useless variable conditions, as it exits anyway if v4<>6)
!!VRv4:+1; **increase v4 by 1 **idem, no need of variables condition, as this command will display ONLY if v4=6
!!UN:O15/43/0; **delete object

Try it now
____________
Era II mods and utilities

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


Famous Hero
posted April 23, 2009 09:11 PM

Many thanks
____________

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


Hired Hero
I'm here. As always.
posted April 24, 2009 02:31 AM

i have a noob question... i want to change my hero speciality to a secondary skill "pathfinding" but also i want change to "no terrain penalty" is like pathfinding...is that possible ? can some1 help me ?

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


Famous Hero
posted April 24, 2009 10:36 AM

You can change speciality of a hero very easily. ERM Help gives the following info:

!!HE#:X#(...); ** to change speciality. instead of the first # your must indicate which hero you want to change the speciality of. In ERM Help, look for the HE button, and it's explained at the very top.

The second # is the speciality number, for a secondary skill, this is 0.

!!HE#:X0/$;
The $ must be replaced with the correct secondary skill number, which is found under format SS.
Pathfinding is 0.
That makes
!!HE#:X0/0;

If I remember correctly, pathfinding already includes the 'no terrain penalty'.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted April 24, 2009 11:16 AM

Ayeron is right, but would be a useless idea to do this: I can't see how pathfinding can have a bonus regardless the hero's level. If logistic you will gain a bonus every level, but what you gain with pathfinding? It will not move farther and it is not related hero's level. So once you reach expert it will be a waste. Correct me if I am wrong.
____________
Era II mods and utilities

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


Famous Hero
posted April 24, 2009 11:32 AM

You could be right about that, I don't know

--------------------
I have another question.
the command to place objects, !!UN:Ix/y/l/t/s;, I can't get it to work the way I want.
When used as a receiver in a "metamorphosis", I can succesfully remove and replace an object. But with this new object's patch, the war zealot seems disabled in the normal editor.
Therefore, I wish to place a war zealot somewhere, with an instruction.
!#UN:4/33/0:54/169;

Unfortunately, error's occur.
Can you explain why?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted April 24, 2009 11:50 AM
Edited by Salamandre at 11:59, 24 Apr 2009.

It seems a few ID are missing from this command. I never succeeded to place any commanders on the map with !!UN:I  so I guess you have the same problem with the war zealot. ERM does not recognize their ID in this process. If your code is right(right now it is not) and you get another object, then change to monk/zealot.

Where is the "I" in your code? You need it.
!!UN:I4/33/0/54/169;

The new patch change/adds only graphics. Nothing is changed in ERM.
____________
Era II mods and utilities

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


Famous Hero
posted April 24, 2009 12:07 PM
Edited by Ayreon at 12:08, 24 Apr 2009.

I did not forgot the I in the real script, typo I guess

So the UN command cannot be used with '!#'? even you change it to '!!'
____________

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


Promising
Known Hero
posted April 24, 2009 12:45 PM
Edited by BAD at 12:47, 24 Apr 2009.

Quote:
i have a noob question... i want to change my hero speciality to a secondary skill "pathfinding" but also i want change to "no terrain penalty" is like pathfinding...is that possible ? can some1 help me ?


I usually don't post in erm help, but I can give you a small example from my script, but isn't full code here.


[No penalities on native terrain ]

!?HM-1;
!!HE-1:N?y-1 B2/?y-7; Get Number and Class of heroes
!!HEy-1: P?y-2/?y-3/?y-4; Check the movement of the hero
!!HEy-1:W?y-10; Get movement points
!!HEy-1:W?y-50; Get movement points
!!TRy-2/y-3/y-4:T?y-5/d/d/d/d/d/d/d; Get terrain type
!!VRy-10:+25;
!!VRy-50:+25;
!!HEy-1&y-7>=4/y-7<=5/y-5=3:Wy-10; If the heroes are from Tower, then is no penalities on snow
!!HEy-1&y-7>=14/y-7<=15/y-5=4:Wy-50; If the heroes are from Fortress, then is no penalities on swamp
____________

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


Honorable
Undefeatable Hero
proud father of a princess
posted April 24, 2009 01:49 PM

Quote:
Ayeron is right, but would be a useless idea to do this: I can't see how pathfinding can have a bonus regardless the hero's level. If logistic you will gain a bonus every level, but what you gain with pathfinding? It will not move farther and it is not related hero's level. So once you reach expert it will be a waste. Correct me if I am wrong.
Maybe with speciality pathfinding (and expert pathfinding skill), hero could run around on any terrain as if he would travel
- on dirt road (till level 9),
- on "normal" road (forgot how it is called...)  till level 19
- on cobblestone road from level 20 on...


____________
Better judged by 12 than carried by 6.

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


Famous Hero
posted April 24, 2009 03:02 PM

I was thinking of something similar to the new pathfinding skill where army movement has a minimum of 9 (at expert level) with even the slowest units. Of course no terrain penalty and normal pathfinding are also applied. Maybe give +1% per level so when a hero is maxed in secondary skills at lv 23 (in general) he has also max speed with any troops. Somehow this specialisation has a stop somewhere contrary to the logistics specialists but it's already very interesting like that. Now we have a new banned hero .
____________
http://www.youtube.com/user/alkoriak#g/u

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


Admirable
Omnipresent Hero
Wog refugee
posted April 24, 2009 08:12 PM

Quote:
I did not forgot the I in the real script, typo I guess

So the UN command cannot be used with '!#'? even you change it to '!!'


I think it can be used with !# also. but you had 2 typo errors in your code and thats why is not working. Add the "I" and remove the double usage of ";" in your code. If it is not working with !#UN, then add it with !!UN in a !?GE command, day one or two.

Quote:
Maybe with speciality pathfinding (and expert pathfinding skill), hero could run around on any terrain as if he would travel
- on dirt road (till level 9),
- on "normal" road (forgot how it is called...)  till level 19
- on cobblestone road from level 20 on...



Well, anything can be scripted but then it will be another clone of a logistic specialist, with only a few values changed. Is it worth?

____________
Era II mods and utilities

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


Famous Hero
posted April 24, 2009 08:17 PM
Edited by Ayreon at 20:18, 24 Apr 2009.

Ok thanks, that's working now:)

Next question :P

ZVSE

!#LE27/19/0:D1/1; **disable LE for player blue (human)
!#LE27/19/0:I1; **enable for AI
!#LE27/19/0:L0; **let it happen more than once

!?LE27/19/0&-1000; **trigger if not human
!!HE-1:N?v9; **get hero number
!!AI&v9=89:D89/3/-1; **if hero is 89, delete seqnums
!!AI&v9=89:S89/3/1/11/17/0/5000000/0; **set new destination for 89
!!AI&v9=92:D92/3/-1; **if hero is 92, delete seqnums
!!AI&v9=92:S92/3/1/11/17/0/5000000/0; **set new destination for 92


This script should be directing the two AI heroes 89 and 92 from the green color (3) to 11/17/0. However, it will not work... I got them to go to one certain point, but these local events do not do the job.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted April 24, 2009 08:27 PM

!!AI&v9=89:S89/3/1/11/17/0/5000000/0; **set new destination for 89

Have you tried it with "3" or "2" at the end? Because when "0" AI will not stop (flag is not set) when reaching the square.
____________
Era II mods and utilities

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


Famous Hero
posted April 24, 2009 08:34 PM

Yeah, that worked. Thanks again
Only now the AI keeps hanging around the garrison without a specific reason, but I'll improvize around it
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted April 24, 2009 08:36 PM

Set it to patrol between 2 specific points. Or more(3-4), to have a better visual aesthetic effect.
____________
Era II mods and utilities

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


Famous Hero
posted April 25, 2009 01:11 PM
Edited by Ayreon at 13:27, 25 Apr 2009.

Hmm, no that was not the problem, I was smart enough to let a creature block their path

Now here's another question (i'm not boring you, am I? )

When I get an artifact from the adventure map, there's always a story next to it, but to those blank artifacts, there is no story. How can I alter that story?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted April 25, 2009 01:42 PM
Edited by Salamandre at 13:46, 25 Apr 2009.

Quote:
When I get an artifact from the adventure map, there's always a story next to it, but to those blank artifacts, there is no story. How can I alter that story?


For blank artefacts you have to create the story. Here is an example of story for a katana (artefact=162, blank)

!#VRz188:S^Leonidas Katana^;
!#VRz198:S^{Leonidas Katana}

A sword forged by Chronos itself which gives the power of gods to the owner. Any creature attempting to attack will receive two fatal strikes and will be incapable of retaliation. The sword is essentially defensive and does not work in attacker mode.^; **description
!#UN:A162/9/188;
!#UN:A162/10/198;

If the object is blank and on the map, then add:

!?OBx/y/z;
!!IF:M^custom message when picking the object^;
!!OBx/y/z:M-1/1/0; **disable further messages (remove the usual message-->"this artefact is blank and need to be scripted bla bla")
____________
Era II mods and utilities

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


Famous Hero
posted April 25, 2009 02:06 PM
Edited by Ayreon at 18:44, 25 Apr 2009.

Thanks again:D

EDIT:
Okay I am now trying to place a hero. I placed it on the map.
It may not walk, I want it to look like an Elementalist, but I'd rather not have it occupy a hero slot.
!?HE52/42/0; does not respond, it says it can't find a hero on those coördinates, and there definitely is one.
I can't tell the hero to !#OB52/42/0:S; either...

Can you tell me how to make those heroes stand still and be nice?

EDIT2:
nevermind, I looked at Alexander and used Sergey Editor to get rid of the problem. ;)

EDIT3:
What I do like to know is, how can I determine which artifacts can be sold in a black market?
____________

 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 ... 33 34 35 36 37 ... 50 100 150 200 250 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1092 seconds