Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile

<a href="http://www.game-advertising-online.com/" target=_blank>Game Advertising Online</a><br> banner requires iframes

LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info 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 thread is 242 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 (90) 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 ]
fersch
fersch


Known Hero
Heral knight
posted August 19, 2011 08:08 AM

Well im trying to replace the satyr from grove but satyr isnt in the defka list.. so do i replace gnoll and gnoll marauder?

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


Honorable
Undefeatable Hero
posted August 19, 2011 08:16 AM

There is no such thing as satyr in Heroes. Any mod has afaik to replace creatures, while the original defs names are kept. First you have to know what creature the satyr replaced, then replace that one. Probably gnolls.
____________

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


Known Hero
Heral knight
posted August 19, 2011 08:19 AM

Thank you, should map and battle DEF be the same file?

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


Honorable
Undefeatable Hero
posted August 19, 2011 08:24 AM

Of course not. They are different sizes.
____________

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


Known Hero
Heral knight
posted August 19, 2011 08:35 AM

Well do you know what i put where?

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


Honorable
Undefeatable Hero
posted August 19, 2011 08:38 AM

If you have both defs to replace, usually the bigger is the battle def and the smaller is the map def. Check the sizes and insert the right ones...
____________

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


Known Hero
Heral knight
posted August 19, 2011 08:52 AM

Yes! it worked thank you so much!

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


Promising
Supreme Hero
posted August 19, 2011 09:13 AM

@Alee

You were right. The script didn't work on more than one Castles. The commands you suggested on changing did the trick. I tested it on four Castles and it worked.

As for the Rampart i made it work to. I already did most of the bold changes you pointed out but i was missing this little thing:

!!UN:U98/1/x16/1;

And it messed the whole script. Now both Castle and Rampart have third slots without any problems. I pray i don't get any other hardships with this script.

In addition, i managed to make the script add third slot for the Portal of Glory too. Here is the script:

****third slots

!#TM21:S8/999/7/1; //1st day timer

//already existing dwellings

!?PI;
!!UN:U98/0/?i; //searching for all castles
!!FU&i=0:E;
!!DO25665/1/i/1:P;

!?FU25665; //searching for all castles
!!UN:U98/0/x16/1;
!!CA1:T?y-1 B3/42; //if upgraded Training ground is built
!!CA1&y-1=0/1:M1/5/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D5/2/165/i; //set our creatures' number accordingly
!!CA1:T?y-1 B3/43; //if upgraded Portal of Glory is built
!!CA1&y-1=0/1:M1/6/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D6/2/169/i; //set our creatures' number accordingly
 
//newly built dwellings

!?TH0; //on entering City hall
!!IF:V598/0; //set flag 598 to false
!!CA-1:T?y-1 B3/42; //check whether Training ground is built
!!IF&-1:V598/1; //if no, set 598 to true
!!IF:V599/0; //set flag 599 to false
!!CA-1:T?y-1 B3/43; //check whether Training ground is built
!!IF&-1:V599/1; //if no, set 599 to true

!?TH1&598; //on leaving City hall + 598 is true
!!CA-1:T?y-1 B3/42; //check whether Training ground has just been built
!!CA1&y-1=0/1:M1/5/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D5/2/165/i; //set our creatures' number accordingly

!?TH1&599; //on leaving City hall + 598 is true
!!CA-1:T?y-1 B3/43; //check whether Portal of Glory has just been built
!!CA1&y-1=0/1:M1/6/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D6/2/169/i; //set our creatures' number accordingly
 
//growth

!?TM21;  //every monday
!!UN:U98/0/?i; //same search as above
!!FU&i=0:E;
!!DO25666/1/i/1:P;

!?FU25666;
!!UN:U98/0/x16/1;
!!CA1:T?y-1 B3/42;
!!CA1:T?y-2 B3/43;
!!FU&y-1<>0|-1:E; //checks for town type and dwelling status
!!CA1&y-1=0/1:M1/5/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D5/2/165/i; //set our creatures' number accordingly
!!FU&y-2<>0|-1:E; //checks for town type and dwelling status
!!CA1&y-2=0/1:M1/6/d/?i; //get current number of standard creatures
!!CA1&y-2=0/1:D6/2/169/i; //set our creatures' number accordingly

!?CM1; //every click in a city
!!CA-1:T?y-1 B3/42;
!!CA-1:T?y-2 B3/43;
!!FU&y-1<>0|-1:E; //check for town type and dwelling status
!!CA-1:M1/5/d/?i; //get number of standard creatures available
!!CA-1:D5/2/165/?j; //get number of our creatures available
!!CA-1&j<i:M1/5/d/j; //if number of ours is less, we assume they have been hired
!!CA-1&i<j:D5/2/165/i; //vice versa
!!FU&y-2<>0|-1:E; //check for town type and dwelling status
!!CA-1:M1/6/d/?i; //get number of standard creatures available
!!CA-1:D6/2/169/?j; //get number of our creatures available
!!CA-1&j<i:M1/6/d/j; //if number of ours is less, we assume they have been hired
!!CA-1&i<j:D6/2/169/i; //vice versa
 
!?FU88888;
!!CA-1:T?y-1 B3/42;
!!CA-1:T?y-2 B3/43;
!!FU&y-1<>0|-1:E; //check for town type and dwelling status
!!CA-1:M1/5/d/?i; //get number of standard creatures available
!!CA-1:D5/2/165/?j; //get number of our creatures available
!!CA-1&j<i:M1/5/d/j; //if number of ours is less, we assume they have been hired
!!CA-1&i<j:D5/2/165/i; //vice versa
!!FU&y-2<>0|-1:E; //check for town type and dwelling status
!!CA-1:M1/6/d/?i; //get number of standard creatures available
!!CA-1:D6/2/169/?j; //get number of our creatures available
!!CA-1&j<i:M1/6/d/j; //if number of ours is less, we assume they have been hired
!!CA-1&i<j:D6/2/169/i; //vice versa

By copying - pasting the parts that check the building number and population growth you can make this script work for every single dwelling in town.
____________
Not idly do the leaves of Lorien fall.

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


Promising
Famous Hero
feanor on DF2.ru
posted August 19, 2011 09:31 AM

Quote:

!!CA-1:T?y-1 B3/42;
!!CA-1:T?y-2 B3/43;

Result of B3/43 will overwrite result of B3/42.
Also, y-1 and y-2 will keep the same value

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


Honorable
Undefeatable Hero
posted August 19, 2011 09:59 AM

Is there any way to make the editor take new graphics from H3custom.lod?
So far the games take them, but editor never.
____________

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


Promising
Supreme Hero
posted August 19, 2011 10:43 AM

@OxFEA

You're right. I edited it a bit but stuck on the entering the City Hall check. I tried this (and other combinations) and it didn't work:

!?TH0; //on entering City hall
!!IF:V598/0; //set flag 598 to false
!!CA-1:T?y-1 B3/42; //check whether Training ground is built
!!IF&-1:V598/1; //if no, set 598 to true

!?TH1&598; //on leaving City hall + 598 is true
!!CA-1:T?y-1 B3/42; //check whether Training ground has just been built
!!CA1&y-1=0/1:M1/5/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D5/2/165/i; //set our creatures' number accordingly


!?TH0; //on entering City hall
!!IF:V599/0; //set flag 599 to false
!!CA-1:T?y-2 B3/43; //check whether Portal of Glory is built
!!IF&-1:V599/1; //if no, set 599 to true

!?TH1&599; //on leaving City hall + 599 is true
!!CA-1:T?y-2 B3/43; //check whether Portal of Glory has just been built
!!CA1&y-2=0/1:M1/6/d/?i; //get current number of standard creatures
!!CA1&y-2=0/1:D6/2/169/i; //set our creatures' number accordingly

Can you point to me where the problem is?
____________
Not idly do the leaves of Lorien fall.

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


Known Hero
Heral knight
posted August 19, 2011 10:46 AM

If you replace a creature with a def file, does that creature still have the same stats even though it looks different?

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


Hired Hero
Erathia Guard
posted August 19, 2011 10:51 AM
Edited by FallenAngel at 10:52, 19 Aug 2011.

fersch, def file contains only graphics

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


Known Hero
Heral knight
posted August 19, 2011 10:59 AM

Quote:
fersch, def file contains only graphics



Thank you, is there anyway to change the stats manually?

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


Promising
Famous Hero
feanor on DF2.ru
posted August 19, 2011 11:00 AM
Edited by OxFEA at 11:12, 19 Aug 2011.

Quote:
on the entering the City Hall check

Is this check necessary?

Add check for "if j=-2 (third slot doesn't initialzed) then j=i" to !?CM1 and !?FU88888 and remove TH triggers

Something like:
[smileys]
!!CA-1:M1/6/d/?i; //get number of standard creatures available
!!CA-1:D6/2/169/?j; //get number of our creatures available
!!CA-1&j=-2:D6/2/169/i;
!!CA-1&j<i:M1/6/d/j; //if number of ours is less, we assume they have been hired
!!CA-1&i<j:D6/2/169/i; //vice versa


Quote:
Thank you, is there anyway to change the stats manually?

May be you should read some manuals? It is not so difficult and much, much faster and interesting than waiting of answer.

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


Hired Hero
Erathia Guard
posted August 19, 2011 11:03 AM

fersch, you can change stats in zcrtrait.txt. You can find it in Data folder or in h3bitmap.lod.

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


Promising
Supreme Hero
posted August 19, 2011 11:19 AM

@OxFEA

I think it is. Because now when i build the upgraded version of the building the two original units are reset to -2 growth while the third one is the only that works ok. But if i don't buy it and revisit the dwelling then all three are set to -2 so... Is this what you meant?

!#TM21:S8/999/7/1; //1st day timer

//already existing dwellings

!?PI;
!!UN:U98/0/?i; //searching for all castles
!!FU&i=0:E;
!!DO25665/1/i/1:P;

!?FU25665; //searching for all castles
!!UN:U98/0/x16/1;
!!CA1:T?y-1 B3/42; //if upgraded Training ground is built
!!CA1&y-1=0/1:M1/5/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D5/2/165/i; //set our creatures' number accordingly
!!CA1:T?y-1 B3/43; //if upgraded Portal of Glory is built
!!CA1&y-1=0/1:M1/6/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D6/2/169/i; //set our creatures' number accordingly

//growth

!?TM21;  //every monday
!!UN:U98/0/?i; //same search as above
!!FU&i=0:E;
!!DO25666/1/i/1:P;

!?FU25666;
!!UN:U98/0/x16/1;
!!CA1:T?y-1 B3/42;
!!FU&y-1<>0|-1:E; //checks for town type and dwelling status
!!CA1&y-1=0/1:M1/5/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D5/2/165/i; //set our creatures' number accordingly
!!CA1:T?y-1 B3/43;
!!FU&y-1<>0|-1:E; //checks for town type and dwelling status
!!CA1&y-1=0/1:M1/6/d/?i; //get current number of standard creatures
!!CA1&y-1=0/1:D6/2/169/i; //set our creatures' number accordingly
 
!?CM1; //every click in a city
!!CA-1:T?y-1 B3/42;
!!FU&y-1<>0|-1:E; //check for town type and dwelling status
!!CA-1:M1/5/d/?i; //get number of standard creatures available
!!CA-1:D5/2/165/?j; //get number of our creatures available
!!CA-1&j=-2:D5/2/165/i;
!!CA-1&j<i:M1/5/d/j; //if number of ours is less, we assume they have been hired
!!CA-1&i<j:D5/2/165/i; //vice versa
!!CA-1:T?y-2 B3/43;
!!FU&y-2<>0|-1:E; //check for town type and dwelling status
!!CA-1:M1/6/d/?i; //get number of standard creatures available
!!CA-1:D6/2/169/?j; //get number of our creatures available
!!CA-1&j=-2:D6/2/169/i;
!!CA-1&j<i:M1/6/d/j; //if number of ours is less, we assume they have been hired
!!CA-1&i<j:D6/2/169/i; //vice versa

!?FU88888;
!!CA-1:T?y-1 B3/42;
!!FU&y-1<>0|-1:E; //check for town type and dwelling status
!!CA-1:M1/5/d/?i; //get number of standard creatures available
!!CA-1:D5/2/165/?j; //get number of our creatures available
!!CA-1&j=-2:D5/2/165/i;
!!CA-1&j<i:M1/5/d/j; //if number of ours is less, we assume they have been hired
!!CA-1&i<j:D5/2/165/i; //vice versa
!!CA-1:T?y-2 B3/43;
!!FU&y-2<>0|-1:E; //check for town type and dwelling status
!!CA-1:M1/6/d/?i; //get number of standard creatures available
!!CA-1:D6/2/169/?j; //get number of our creatures available
!!CA-1&j=-2:D6/2/169/i;
!!CA-1&j<i:M1/6/d/j; //if number of ours is less, we assume they have been hired
!!CA-1&i<j:D6/2/169/i; //vice versa

____________
Not idly do the leaves of Lorien fall.

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


Known Hero
Heral knight
posted August 19, 2011 02:30 PM

@FallenAngel Thanks!

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


Promising
Supreme Hero
posted August 19, 2011 03:35 PM

Well, it's a pity but i think i'll be abandoning this third slot script. None of the version i posted doesn't work when the buildings aren't built to begin with. When i start a game and build my way to the Training grounds it gives me an ERM error saying that:

!!CA isn't a castle and then posts the script from the begining

And so the recruits are rendered to -2 and what i don't know what else. It's a pity because when all the buildings are build the script works perfectly (for other Castle towns, for statue of Legion, for Rampart, you name it). There must be something wrong with the dwelling building checking thing i don't know.

Anyway, if anyone can (and is willing) to make this work i would appreciate it if he shares it.
____________
Not idly do the leaves of Lorien fall.

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


Known Hero
posted August 19, 2011 04:09 PM
Edited by Aleee at 16:30, 19 Aug 2011.

I'm almost sure that in my version with Town Hall checks everything should be OK.
And you have to be more specific. When exactly do you have the error: after clicking, building, growth, etc.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
[ This thread is 242 pages long: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 (90) 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 ] < Prev Thread . . . Next Thread >
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.4351 seconds