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 ... 267 268 269 270 271 ... 300 350 400 407 · «PREV / NEXT»
Beatcomet
Beatcomet

Tavern Dweller
posted September 21, 2015 09:13 AM

Sorting in erm

I made a fairly simple script in erm that records battle  results and stores them in variables for each player. My question is if there's an efficent way to sort them by top score. Also is there a way of checking how many plauers are ingame?

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


Admirable
Omnipresent Hero
Wog refugee
posted September 21, 2015 10:15 AM

To check player use !!OW receiver, store results. For your first question, is too vague to answer. I have no idea how you store battle results thus can't answer how to create top score from -which is a procedure I use myself for Atlantis, 300 spartans and Tew4, score is customized after achievements.

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

Tavern Dweller
posted September 21, 2015 10:56 AM

Salamandre said:
To check player use !!OW receiver, store results. For your first question, is too vague to answer. I have no idea how you store battle results thus can't answer how to create top score from -which is a procedure I use myself for Atlantis, 300 spartans and Tew4, score is customized after achievements.


I set up 8 variables, one for each player. Initially they are set to 0 and every won battle gives the winning player 1 point.
As for sorting, I found a way around it by making a variable for the top player and another one for his current score, afte someone wins a battle his score updates and then is checked to see if it's higher that the top player, he is set as the new top player.

As for the number of players, I don't see how I can check that using !!OW reciever, since I'm new to this some more information would be great.

Thank you and have a wonderful day
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 21, 2015 11:05 AM

Since you tell that you use a variable after battle, I assume you are using erm commands, specifically !?BA1 (post battle codes). So if you have erm manual (erm help), just look at OW receiver.

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

Tavern Dweller
posted September 21, 2015 02:20 PM

Salamandre said:
Since you tell that you use a variable after battle, I assume you are using erm commands, specifically !?BA1 (post battle codes). So if you have erm manual (erm help), just look at OW receiver.


I managed to get all those things through now there's one more thing I need assistance with. I want to give a player resources after a certain condition is made but I keep messing that up. Here's what I did :

!!OW&v2155>=2157:Ry1/6/dv2158;

v2155 stores the top player's wins
v2157 is the minimum amount reqired to clain the bounty
v2158 is the current bounty
y1 is the player caliming the bounty

The thing is that I'm not using it right so I'm getting an error.
____________

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


Legendary Hero
posted September 21, 2015 07:21 PM

beatcomet said:
Here's what I did :

!!OW&v2155>=2157:Ry1/6/dv2158;

v2155 stores the top player's wins
v2157 is the minimum amount reqired to clain the bounty
v2158 is the current bounty
y1 is the player caliming the bounty

The thing is that I'm not using it right so I'm getting an error


????
Please, show script from ZVSE. Here I already find this condition >=2157 strange, I think u wanted >=v2157. Tons of other things may be wrong when setting those variables.

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


Admirable
Omnipresent Hero
Wog refugee
posted September 21, 2015 08:19 PM

yep he is right, show the entire script. But from quick view, should be v2157 indeed.

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


Disgraceful
Undefeatable Hero
posted September 22, 2015 12:16 AM
Edited by fred79 at 00:18, 22 Sep 2015.

i want to completely disable(read: remove permanently in the WoG scripts setup) two WoG scripts: specifically, the diamond dragon's flying ability, and the ghost behemoth's fly(or move-through-objects) ability.

not pertinent at the moment, but also something i want to do: disable all of the santa gremlin's abilities, and instead make it able to fly.

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

Tavern Dweller
posted September 22, 2015 12:52 AM

Salamandre said:
yep he is right, show the entire script. But from quick view, should be v2157 indeed.


other than that is everything else correctly setup?

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


Legendary Hero
posted September 22, 2015 01:55 AM

beatcomet said:
Salamandre said:
yep he is right, show the entire script. But from quick view, should be v2157 indeed.


other than that is everything else correctly setup?

Well, from what I can read now it says:
If 0 >=0 then player (none) gold is increased by 0.
show the entire script

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

Tavern Dweller
posted September 22, 2015 06:47 AM

bloodsucker said:
beatcomet said:
Salamandre said:
yep he is right, show the entire script. But from quick view, should be v2157 indeed.


other than that is everything else correctly setup?

Well, from what I can read now it says:
If 0 >=0 then player (none) gold is increased by 0.
show the entire script


Laptop is dead so the entire script is gone. Gonna try and recreate it in the next couple of days

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


Adventuring Hero
wandering hero
posted September 23, 2015 02:30 PM

Hello there, I have problem with some script from ERA probably.... during battle a windows pops up (ERM syntax erorr skipped...) Ey1/2?y2;

Have anyone idea what's wrong? The game is unplayable :/
____________
Freedom comes at a price

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


Admirable
Omnipresent Hero
Wog refugee
posted September 23, 2015 03:24 PM

The faster way would be to paste here some lines from your wogcrashlog or at least write here correctly the text from error. (or a screen if you can't). And a list of mods in use.

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

Tavern Dweller
posted September 25, 2015 12:30 PM

Is there a way of getting the distance in hexes between stacks?

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


Admirable
Omnipresent Hero
Wog refugee
posted September 25, 2015 06:46 PM

Sure there is, Bersy used it in Yona mod, but is coded Delphi, not erm. For erm, I don't know any mod doing that, it is possible ofc but not 5 minutes work.

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


Promising
Legendary Hero
Pain relief cream seller
posted September 25, 2015 09:32 PM

So... Is there a way to apply binary patches in .bin files through ERM on the fly?
____________
Noli offendere Patriam Agathae quia ultrix iniuriarum est.

ANTUDO

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


Promising
Famous Hero
feanor on DF2.ru
posted September 26, 2015 05:03 PM

UN:C

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


Adventuring Hero
posted September 26, 2015 05:41 PM

beatcomet said:
Is there a way of getting the distance in hexes between stacks?



codes from <bers pack.erm>

; Calculate distance between two positions
; Arguments: Pos1, Pos2, ?Res
!?FU111111;
!!VRy1:Sx1%17;
!!VRy2:Sx1:17;
!!VRy3:Sx2%17;
!!VRy4:Sx2:17;
!!VRy5:Sy2-y4;
!!VRy5&y5<0:*-1;
!!VRy6:Sy1-y3*2;
!!VRy7:Sy2&1;
!!VRy8:Sy4&1;
!!VRy6:-y7+y8;
!!VRy6&y6<0:*-1;
!!VRy6:-y5;
!!VRy7:Sy5*2;
!!VRy7&y6>0:+y6;
!!VRy7::2;
!!VRx3:Sy7;

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


Famous Hero
posted September 26, 2015 08:02 PM

In the past one of the two reasons I dropped my project is that i found some combat scripts be impossible to work in multiplayer (the other part was losing all my work)

I think I will restart my work if the following script is possible to make work in multiplier.

My goal is that during battle, every turn that passes, is cheaper to surrender (and eventually be Free)

Is possible to make this script in ERM and work in multiplayer?
____________

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


Adventuring Hero
wandering hero
posted September 29, 2015 10:08 PM

Hello there, here I report an ERM script Error  My mods:
Wog
yona
WoG Revised
WoG PLUS
Fast Battle Animation
NIM Rampart
Secondary Skills Scrolling
Overflow_Fix
Hms Improved
Master of Craft
Adventure Pillars
Heroes Renovated
Random hero
Animated trees
New Objects Patch
New Interface Mod
new difficult button
Morn battlefields
HOTA_objects
FREDOBJ
Alpha Objects
Masters of Summoning
Random skin
____________
Freedom comes at a price

 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 ... 267 268 269 270 271 ... 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.5964 seconds