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 379 pages long: 1 2 3 4 5 ... 80 160 240 320 ... 375 376 377 378 379 · «PREV / NEXT»
asandris
asandris

Tavern Dweller
posted February 06, 2020 12:21 AM

Help me, please, to correctly set a replacement for the Pixies instead of Centaurs in Centaur Stables dwelling on the map.

!#TM1:S1/999/7/255; [Weekly Timer for all players]
!?TM1;
!?OB17/6&1000; Centaur Stables
!!OB998:T?y1 U?y2;
!!FU|y1<>17/y2<>6:E;
!!DW998:M0/118/20; Pixies Growth 20


____________

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


Admirable
Omnipresent Hero
Wog refugee
posted February 06, 2020 01:01 AM
Edited by Salamandre at 01:08, 06 Feb 2020.

No need timer, just:

!?OB17/6&1000; Centaur Stables
!!DW998:M0/?y1/?y2;
!!DW998:M0/118/y2;

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

Tavern Dweller
posted February 06, 2020 09:45 AM
Edited by asandris at 09:46, 06 Feb 2020.

Salamandre said:
No need timer, just:

!?OB17/6&1000; Centaur Stables
!!DW998:M0/?y1/?y2;
!!DW998:M0/118/y2;

Salamandre, thank you very much.

How could I also set +1 Attack skill to Veil of Darkness (Necropolis) instead of Veil, like the Hall of Valhalla (Citadel) has it.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted February 06, 2020 11:40 AM

Well, a manual script could give any hero visiting the town having the veil +1 to attack then set a w var so it doesn't occur twice. But I think a better solution would be UN:C because I don't think, regular erm can remove the veil shroud.

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

Tavern Dweller
posted February 06, 2020 12:19 PM

Salamandre said:
Well, a manual script could give any hero visiting the town having the veil +1 to attack then set a w var so it doesn't occur twice. But I think a better solution would be UN:C because I don't think, regular erm can remove the veil shroud.

Could we deactivate the building itself (Veil of Darkness) for random maps? Or to change it with another town building?
____________

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


Honorable
Supreme Hero
posted February 06, 2020 12:24 PM

!?OB[type]/[subtype];
!!OB:S; disable to use for all players
!!HE-1:...; custom effect
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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

Tavern Dweller
posted February 06, 2020 12:33 PM
Edited by asandris at 12:34, 06 Feb 2020.

Bersy said:
!?OB[type]/[subtype];
!!OB:S; disable to use for all players
!!HE-1:...; custom effect


Thank you, Bersy.
____________

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


Honorable
Supreme Hero
posted February 06, 2020 01:03 PM

Sorry, I was thinking about map object. If you meant bulding in town, it will not work.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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

Tavern Dweller
posted February 06, 2020 01:16 PM

Bersy said:
Sorry, I was thinking about map object. If you meant bulding in town, it will not work.

Is there any way to manage it somehow?
____________

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


Responsible
Supreme Hero
posted February 07, 2020 07:22 PM

I wanted to make a new hero specialty where the hero gets a random set of spells every week. I applied this script:

!?TM21;  //every monday
** Aislin(#73)
!!VRy1:S0 R5; [Random Spell]
!!HE73:My1/1; [Starting Spell]
!!VRy2:S10 R5; [Random Spell]
!!HE73:My2/1; [Starting Spell]
!!VRy3:S27 R5; [Random Spell]
!!HE73:My3/1; [Starting Spell]
!!VRy4:S40 R5; [Random Spell]
!!HE73:My4/1; [Starting Spell]

And it kinda works but on the second day of week 2 it seems to work twice and gives a large number of new spells (it gives some spells on Monday and a lot more on Tuesday). What am I missing here?
____________
Not idly do the leaves of Lorien fall.

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


Honorable
Supreme Hero
posted February 07, 2020 09:15 PM

You need something like !?TM2&$once$=1; probably. Timer, that is run only once for game for the first player.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Responsible
Supreme Hero
posted February 07, 2020 09:25 PM

Nope, still occurs twice (once on Monday once on Tuesday).
____________
Not idly do the leaves of Lorien fall.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 07, 2020 09:51 PM

it doesn't occur tuesday, but Monday on AI turn so you receive results tuesday. Which means your timer runs more than once (insert a debut message after TM and you will see how many times)

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


Promising
Famous Hero
Researching Magic
posted February 07, 2020 09:52 PM
Edited by RerryR at 21:55, 07 Feb 2020.

!?TM2&$once$=1/$day$>1/$weekday$=$monday$/$AI$=0;                               [Trigger each monday]

or something like this:

[+] Added new event 'OnEveryDay', same as !?TM[xx], but occuring every day for every player/AI without any settings and before
   all other !?TM triggers.
   Example: !?FU(OnEveryDay)&-1000; every day for any AI

You need to experiment a bit

Edit: Sal was faster and is right, use !!IF:M^Now^, to debug

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


Responsible
Supreme Hero
posted February 07, 2020 11:04 PM

I think it works OK now. However, I don't fully get what you're saying. This won't work for AI players at all? Only for Human players?
____________
Not idly do the leaves of Lorien fall.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 07, 2020 11:41 PM

Supposing there is no multiplayer action, set your timer 21 with human flag (1000) then loop map for Aislin. He will get spells once (if one human player present) even if he is under AI control.

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


Honorable
Supreme Hero
posted February 08, 2020 12:23 AM

!?TM2&$once$=1/$day$=1; init only once at first day, day is not weekday, but absolute day
____________
Heroes 3 Era and everything for it. Releases folder for releases.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 08, 2020 12:43 AM

but he wants it to occur every week

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


Responsible
Supreme Hero
posted February 08, 2020 11:17 AM

That's OK guys, I used the command RerryR gave me and I think it works to my liking.

The premise of this speciality goes like this:

Clairvoyance: Learns a random set of spells at the start of every week.

This speciality will give a great bonus on the first couple of months, since it is most likely that the hero has little access to new spells. However, with each passing week, the probability of learning a new one will diminish until finally there's nothing left to learn.

So every week, a random set of spells will be available to be learned. Heroes with the Clairvoyance speciality will be able to learn them (if they don't know them already). I think it's a nice addition, because in a way it's like some heroes will have a sixth sense (hence clairvoyance) and learn the SAME set of spells intuetively.  

Spells will range from level 1 to 5, with low level spells to be more probable and higher level more rarely given. Town Portal, Fly and Dimension Door will be obviously out of the equation.

So what do you think? I will post the final script here when I am done so that if anyone is interested, he can use it as well.
____________
Not idly do the leaves of Lorien fall.

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


Honorable
Supreme Hero
posted February 08, 2020 11:41 AM

HoL, write please, if you have any issues with Extended Dwellings mod. It has replacement for CA.
____________
Heroes 3 Era and everything for it. Releases folder for releases.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 379 pages long: 1 2 3 4 5 ... 80 160 240 320 ... 375 376 377 378 379 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1504 seconds