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 412 pages long: 1 ... 39 40 41 42 43 ... 50 100 150 200 250 300 350 400 412 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted July 20, 2009 10:02 PM
Edited by Salamandre at 22:08, 20 Jul 2009.

Yes, use a timer enabled for any computer player each day, followed by !!UN:H etc.

@Castor:

Yes, use:

!?BA&v998=x/v999=y/v1000=l/1000; (x/y/l=coordinates)
Then:

!!BA:M

M#1/#2/$1/$2;   Set the Monsters that are fighting the battle.
  #1 = Attacker's monsters (0) or defender's monsters (1) See format C
  #2 = Slot number (0..6)
  $1 = Monster type (use -1 for a slot with no monsters)
  $2 = Number of monsters
Example:
!!BA:M1/2/164/1 M1/3/165/1 M1/4/166/1;



____________
Era II mods and utilities

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


Famous Hero
Fresh Air.
posted July 21, 2009 12:11 AM

Like this?

ZVSE

!#UN:H/52/60/-1/0/5;

I dont know what im missing,it throws no error.I go to the location,wander around & everything is normal.

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


Famous Hero
Fresh Air.
posted July 21, 2009 12:15 AM

Ok, i realised ive been very stupid and the code should start with !! instead of !#....anyway...now it throws an exception that says i have a syntax error...REALLY?ANOTHER?

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


Admirable
Omnipresent Hero
Wog refugee
posted July 21, 2009 01:24 AM
Edited by Salamandre at 01:26, 21 Jul 2009.

OK, assuming that in your code blue player is AI:

ZVSE

!#TM53:S1/999/1/2;
!?TM53;
!!UN:H52/60/0/1/50;

52,60 and 0 I assume are the coordinates, change them to yours
1 is blue player
50 is the radius of the shroud (change to whatever you want)

When blue player is eliminated, the code will stop. If want code to work all game, then enable the TM for human color.
____________
Era II mods and utilities

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


Famous Hero
Fresh Air.
posted July 21, 2009 03:27 AM

THANKS!!  Now im trying to set 2 areas of fog but i think it cant be done, it doesnt throw exceptions but it just doesnt work for the second area

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


Admirable
Omnipresent Hero
Wog refugee
posted July 21, 2009 04:05 AM

It works for as many as you want. Add another !!UN:H with other coordinates to the script.
____________
Era II mods and utilities

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


Famous Hero
Fresh Air.
posted July 21, 2009 04:55 PM

Hi there...me again...i cant make it work, i added another line of code:
ZVSE

!#TM53:S1/999/1/63;
!?TM53;
!!UN:H53/54/0/1/30;
!!UN:H98/18/0/1/20;

but i get nothing... then i made 2 timed events with only one difference: the last line of the code...still nothing...
i have a "doubt"...żcould it be that my code is set to work on all players(63)so the second one doesnt work?
Dunno...just guessing...i want the following code to work:

!#TM53:S1/999/1/63;
!?TM53;
!!UN:H53/54/0/1/30;

!#TM54:S1/999/1/7; (7 for blue, red & tan players)
!?TM54;
!!UN:H98/18/0/1/20;

Ive even put these two in differents events but still nothing...learning is so annoying but the EXP is sweet!

By the way...thanks for the attention!!!!

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


Admirable
Omnipresent Hero
Wog refugee
posted July 21, 2009 05:32 PM

Quote:

!#TM53:S1/999/1/63;



All players is 255, not 63.

!#TM53:S1/999/1/255;
____________
Era II mods and utilities

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


Famous Hero
Fresh Air.
posted July 21, 2009 06:31 PM

You re right Salamandre! But since i have 6 players, the bit total ascends to:

Included:
red=1
blue=2
tan=4
green=8
orange=16
purple=32
-------
63

Left out:
teal=64
pink=128

Please excuse me,sometimes i cant seem to explain myself very well in english & i forget to write important caracteristichs of the map.
IŽll let you now when i get this events to work!

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


Admirable
Omnipresent Hero
Wog refugee
posted July 21, 2009 06:51 PM
Edited by Salamandre at 18:55, 21 Jul 2009.

The code is correct, dunno why you can't get it to work.

Try this.

ZVSE

!#TM53:S1/999/1/2;
!?TM53;
!!FU1000:P;

!?FU1000;
!!UN:H53/54/0/1/30;
!!UN:H98/18/0/1/20;
!!IF:M^Shroud was added^;

Do you get the message?

If not, that means TM53 is used in another of your script.
____________
Era II mods and utilities

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


Famous Hero
Fresh Air.
posted July 22, 2009 05:55 PM

Ok Salamandre,
Ive started a new map & tested with only my previous script but doesnt work(meaning that 1st area is with fog & 2nd area is NOT)...

then i tried with ur code with the message...the message shows but then an error window appears with the following message:

ERM Syntax Error
File:monsters
Line:5280
ERROR!! Attemp to use "!!BM" in non-human battle(use Flag 1000 for cheking)

What?jaja

Mmm the map im scripting is intended to be wogified...but havent touched the original settings of the wog options...could the problem be here?
It seems strange to me that the code works in only one area...

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


Admirable
Omnipresent Hero
Wog refugee
posted July 22, 2009 06:00 PM
Edited by Salamandre at 18:01, 22 Jul 2009.

Try this in another event:

ZVSE

!?PI;

!#UN:P5/0; [Map isn't wogified]

Start the game, type the code WOGEYEOFSAURON (cheat) and the map will be revealed. Press end turn, next turn it should show 2 shrouded areas.

If still does not work, send me your map, I guess there is a typo somewhere. I will fix it in no time.




____________
Era II mods and utilities

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


Famous Hero
Fresh Air.
posted July 22, 2009 06:18 PM

IT WORKS! ITS ALIVE!
TOO BAD YOU HAVE ERASED EINSTEINS QUOTE...I WOULD RE-WRITE IF I WERE YOU...
ITS A HORRIBLE NOOOOOB MISTAKE...i had not realized that the working fog is on 53-54...so X & Y are similar...
but on 98 & 18 theres a BIGGGG DIFFERENCE...SORRY FOR ALL THIS TROUBLE...simply changed the code to:
!!UN:H18/98/0/1/20; on the second fog...

RESUMING...the code works fine IF WRITTEN PROPERLY, EVEN WOGIFIED


Thanks SALAMANDRE/Valery for ur infinit patience.

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


Famous Hero
Fresh Air.
posted July 24, 2009 10:12 AM

How about this...i want a location to start with a creature(either set by code or by design[i mean dragging the creature to the location])but if the creature is killed, then a random stronger monster appears. Which is the best way to accomplish this?If possible.                      

Does any of u know? Thanks even for reading this!!

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


Famous Hero
Fresh Air.
posted July 31, 2009 02:27 AM

I have one question, is it possible in multiplayer mode to do the following?: 1 hero of 1 player completes a quest & that affects another player.

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


Admirable
Omnipresent Hero
Wog refugee
posted August 09, 2009 12:56 AM
Edited by Salamandre at 01:07, 09 Aug 2009.

Check existing maps.

@Pei: Yes, but you are too evasive. Can't help without more infos.
____________
Era II mods and utilities

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


Admirable
Omnipresent Hero
Wog refugee
posted August 12, 2009 01:47 PM

If there is one thing I am ashamed, it is my "deep" mathematics knowledge. So, if one master them enough to explain me a simple concept, please:

I need to enable only might classes, so the long formula would be:

!?HL-1;
!!HE-1:B2/?v234; **check for class
!!FU|v234=1/v234=3/v234=5/v234=7/v234=9/v234=11/v234=13/v234=15:E; **if magic class, exit
**magic classes: 1,3,5,7,etc
**might classes: 2,4,6,8,etc

Now I see Bad used a different formula, which is shorter:

!!HE-1:B2/?y-7 Ed/?y-8;
!!VRy-99:Sy-7 %2; // only for casters
!!FU&y-99=0:E; // exit the function, if it is a fighter class

It is the:
!!VRy-99:Sy-7 %2; // only for casters
which bother me, as I can't understand it.

GrayFace answered:

He did it right. % is division reminder. So, if it is 0, the number is even, otherwise it's odd. Spellcasters classes are odd.This way is better because it would work if new character classes are added.


Even, odd...any care to explain me this?

____________
Era II mods and utilities

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


Promising
Legendary Hero
fallen artist
posted August 12, 2009 01:51 PM
Edited by Warmonger at 13:52, 12 Aug 2009.

Wiki?

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


Admirable
Omnipresent Hero
Wog refugee
posted August 12, 2009 01:59 PM

Well, yes, but the part I can't get is why:

2 %2=0
4 %2=0
6 %2=0

etc. I must be blinded.
____________
Era II mods and utilities

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


Promising
Legendary Hero
fallen artist
posted August 12, 2009 02:04 PM
Edited by Warmonger at 14:05, 12 Aug 2009.

% here returns the remainder left from integer division. 2/2 = 1 with remainder 0, 3/2 = 1, remainder 1 etc. Quite simply even numbers are these which have remainder from division by 2 equal to zero and odd have it equal to 1.

I wonder how the hell did you code all these maps if you don't know basic operators

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 412 pages long: 1 ... 39 40 41 42 43 ... 50 100 150 200 250 300 350 400 412 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.5456 seconds