|
|
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?
|
|
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.
|
|
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
____________
|
|
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.
|
|
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.
____________
|
|
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.
|
|
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.
|
|
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.
|
|
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?
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
beatcomet
Tavern Dweller
|
posted September 25, 2015 12:30 PM |
|
|
Is there a way of getting the distance in hexes between stacks?
|
|
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.
|
|
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
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted September 26, 2015 05:03 PM |
|
|
|
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;
|
|
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?
____________
|
|
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
|
|
|