|
|
bloodsucker
Legendary Hero
|
posted January 05, 2015 04:52 PM |
|
|
Salamandre said: well, you can find examples of this in dragon slaughter mod (tds) or conquistador.
Did u changed Conquistador after first Leaders update? It says the maximum number will remain at 4000 and I don't recall to have ever fight a bigger number (except in TDS, of course). Also, I looked for the code there and while there are parts I can't even begin to understand (one unusually undocumented), I couldn't point where it was.
|
|
hcl
Adventuring Hero
|
posted January 06, 2015 01:44 AM |
|
Edited by hcl at 05:41, 06 Jan 2015.
|
Thx again, sal!
last but not least, is it possible to add a new timer to an already running game?
eg: new mod with new timer, activating the mod, start homm, load game?
for me it doesnt look like, only works if i hook an existing one.
p.s
How do i determine if a stack of creatures is placed by a hero (if the hardcoded option is set)?
found that placed creatures even grow, thought they get the no-growth option but that is not the case. maybe "exploitable" kinda, leaving the stack, let is grow , get it back -> profit.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted January 06, 2015 09:19 AM |
|
|
Timers are set in instructions, and instructions run at game start. Change them to receivers:
!#TM22:S1/1/999/255; this will not work if added, too late
Use this, add code, press F12:
!?CM0; when click everywhere
!!TM22:S1/1/999/255; this will enable the timer.
Now you can delete this code, press F12 and continue game, timer will be activated.
Monsters, normally you have:
O#; Set/Check/Get the grow checkbox.
if #=1 then the amount of monsters won't grow, if not 1, they will
So it can be used to check if stack was added by player. But if player didn't change checkbox, then no way.
|
|
Khadras
Famous Hero
|
posted January 06, 2015 12:22 PM |
|
Edited by Khadras at 12:28, 06 Jan 2015.
|
How to modify recruitment town screen
Hi! I want to see in left down part of town screen how many creatures remains unrecruited, not creatures growth. I see that into a mod, and i don't know what file i must modify. Can someone help me? I installed last hd launcher and it has modified town screen and i guess i need a modification there too.
|
|
hcl
Adventuring Hero
|
posted January 06, 2015 02:42 PM |
|
|
Khadras said: Hi! I want to see in left down part of town screen how many creatures remains unrecruited, not creatures growth. I see that into a mod, and i don't know what file i must modify. Can someone help me? I installed last hd launcher and it has modified town screen and i guess i need a modification there too.
thats part of HDmod and should be discussed here:
http://heroescommunity.com/viewthread.php3?TID=33708&pagenumber=1
but to answer you
open Hdmod -> chose the right exe -> go to tweaks section ->
find and set:
<UI.Ext.TownMgr> = 1 , 1
<UI.Ext.TownMgr.AvailableInsteadGrowth> = 1
and you get the #available_creatures instead of #growt in townscreen
|
|
hcl
Adventuring Hero
|
posted January 06, 2015 03:14 PM |
|
Edited by hcl at 15:15, 06 Jan 2015.
|
Salamandre said:
..
!?CM0; when click everywhere
!!TM22:S1/1/999/255; this will enable the timer.
bah, i thought
!!TMxy:S ...; and
!?TMxy;
would work already when set as receiver on its own instead of instruction. So the click is the trick, nice!
Salamandre said:
Monsters, normally you have:
O#; Set/Check/Get the grow checkbox.
if #=1 then the amount of monsters won't grow, if not 1, they will
yea, i know, i used the O thing alrd in
!!MOv1/v2/v3:O?y1 , and _hoped_ salva had coded his leave stack thing
that way.
problem is, that the hardcoded script (Option 002)doesnt seem to set the checkbox to 1, and since there are no other flags for that, the only way (just a first idea) may be to check all squares around the player all the time if there are new stacks suddenly and mark them properly.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted January 06, 2015 03:26 PM |
|
|
The best way to learn erm is to play the existing mods. TDS is flagging all monsters on day 1, by setting their square value (PO). Later in game, to make difference between original stacks and stacks issued from "week of", you just check the PO. If modified, monster is original, if returns 0, monster is new.
|
|
Mister_kalu
Known Hero
|
posted January 06, 2015 03:42 PM |
|
|
Mister_kalu said: Salamandre, do you have the script to remove an object from the map, but not instantly. like a normal vanish when you pick some item, that means gradually
i know you have the answer
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted January 06, 2015 03:43 PM |
|
|
Such thing does not exist. erm has nothing to do with the way defs are displayed in game.
|
|
Mister_kalu
Known Hero
|
posted January 06, 2015 04:15 PM |
|
|
Salamandre said: Such thing does not exist. erm has nothing to do with the way defs are displayed in game.
yes ,at least ,doesn't appear on the help, but, what are you doing, when some items needs to be eliminated like a normal use? are you using UN and nothing else? seems to be plane and artificial. again this is a puzzle it can only be solved with "black magic"
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted January 06, 2015 04:17 PM |
|
|
I think piles of resources and artifacts are coded differently in the source code. ERM has only one command to delete objects (UN:O) and it is instant. You should ask VCMI guys for that, I have no clue about.
____________
Era II mods and utilities
|
|
chelseaperfect
Hired Hero
|
posted January 07, 2015 03:54 PM |
|
|
How to do fix this bug?
I'm making a map size 252x252 in ERA II
I'm going to finish this work but my map have a bug:
When I make more ONLY one object, my map notify the bug in load game time and game out
I think my map exceeding object?
Can you help me, please
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted January 07, 2015 06:34 PM |
|
|
Try this in instructions first:
ZVSE
!#UN:C4892718/1/183; 65000 objects allowed
If still error, then indeed your map could be too stuffed.
|
|
mister_kalu
Known Hero
|
posted January 08, 2015 01:28 AM |
|
|
i have one question, maybe simple
for example my hero is in the position v998/v999/v1000 in a marletto tower,or any other object with "of one visit " learning Stone, star axis... many others.
how do you get the number of a specific object in the map, is with UN: U?
i need this number to use !!HE:V
the Miscellaneous Object Receivers doesn't have help about some of this objects, i don't know why.
thaks
|
|
Hawaiing
Adventuring Hero
|
posted January 08, 2015 03:00 AM |
|
|
mister_kalu said: i have one question, maybe simple
for example my hero is in the position v998/v999/v1000 in a marletto tower,or any other object with "of one visit " learning Stone, star axis... many others.
how do you get the number of a specific object in the map, is with UN: U?
i need this number to use !!HE:V
the Miscellaneous Object Receivers doesn't have help about some of this objects, i don't know why.
thaks
OB:C get it.
!!OB998:C?y1;
|
|
chelseaperfect
Hired Hero
|
posted January 08, 2015 03:04 AM |
|
|
Salamandre said: Try this in instructions first:
ZVSE
!#UN:C4892718/1/183; 65000 objects allowed
If still error, then indeed your map could be too stuffed.
I had your help scrip, but still error. Maybe my map had >65000 obj :(. Maybe I remove the unimportant parts of the map.
|
|
mister_kalu
Known Hero
|
posted January 08, 2015 03:31 AM |
|
|
Hawaiing said:
mister_kalu said: i have one question, maybe simple
for example my hero is in the position v998/v999/v1000 in a marletto tower,or any other object with "of one visit " learning Stone, star axis... many others.
how do you get the number of a specific object in the map, is with UN: U?
i need this number to use !!HE:V
the Miscellaneous Object Receivers doesn't have help about some of this objects, i don't know why.
thaks
OB:C get it.
!!OB998:C?y1;
Yes man thank you , so what is the meaning of control Word? number of??
|
|
Hawaiing
Adventuring Hero
|
posted January 08, 2015 04:09 AM |
|
Edited by Hawaiing at 04:16, 08 Jan 2015.
|
mister_kalu said:
Yes man thank you , so what is the meaning of control Word? number of??
!?OB23;
!!OB998:C?y1;
!!HExx:V1/y1/?y2;[Marletto tower visited or not]
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted January 08, 2015 09:39 AM |
|
|
chelseaperfect said:
I had your help scrip, but still error. Maybe my map had >65000 obj
Put this script in your map:
ZVSE
!?CM0;
!!VRv2:S0;
!!DO15555/2/231/1:P;
!!IF:M^%V2^;
!?FU15555;
!!UN:Ux16/-1/?y1;
!!VRv2&y1>0:+y1;
Start game, right click anywhere, you will get a number. Write here that number.
|
|
chelseaperfect
Hired Hero
|
posted January 08, 2015 05:53 PM |
|
|
Salamandre said:
chelseaperfect said:
I had your help scrip, but still error. Maybe my map had >65000 obj
Put this script in your map:
ZVSE
!?CM0;
!!VRv2:S0;
!!DO15555/2/231/1:P;
!!IF:M^%V2^;
!?FU15555;
!!UN:Ux16/-1/?y1;
!!VRv2&y1>0:+y1;
Start game, right click anywhere, you will get a number. Write here that number.
That number is 3744.What is problem?
|
|
|