Heroes of Might and Magic Community
please log in.! Register | Today's Posts | Search! | FAQ/Rules | AvatarList | MemberList | Profile

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

Heroes 1 (Heroes 2 (Heroes 3 (Heroes 4 (Heroes 5 (Heroes 6 ()

Login:     Username:     Password:    
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: ERM help and discussion
Thread: ERM help and discussion [ This thread is 227 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 ]
OxFEA
OxFEA


Promising
Famous Hero
feanor on DF2.ru
posted August 26, 2010 02:51 PM
Edited by OxFEA at 14:53, 26 Aug 2010.

Who removes the catapult? oO
I remove the catapult-artifact. Catapult-creature in siege battles doesn't linked with it.

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


Honorable
Undefeatable Hero
posted August 26, 2010 03:25 PM

I know, was kidding.

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


Promising
Famous Hero
feanor on DF2.ru
posted August 27, 2010 12:40 AM

Function to change building position:

!!VRy1:S0; //city (e.g. Castle)
!!VRy2:S5; //building ID (e.g Tavern)

!!VRy6:S2; //frames num in new def
!!VRy3:S250; //new x
!!VRy4:S200; //new y

!!VRy5:Sy1 *44 +y2 *6 +6859276;

!!UN:Cy5/2/y6;
!!VRy5:+2;
!!UN:Cy5/2/y3;
!!VRy5:+2;
!!UN:Cy5/2/y4;


For more information try to see this post (with translator)
http://forum.df2.ru/index.php?showtopic=6803&view=findpost&p=192935

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


Honorable
Undefeatable Hero
posted August 27, 2010 07:16 AM
Edited by Salamandre at 07:20, 27 Aug 2010.

wow, BIG thanks Feanor. It seems that now we can make towns exactly as we like, and no more handcuffed by those x/y coordinates

Where to insert the code? In new map? In Data/s?
The x/y new coordinates are for the center of the object or another location?

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


Promising
Famous Hero
feanor on DF2.ru
posted August 27, 2010 07:31 AM

Quote:
Where to insert the code? In new map? In Data/s?

No matter. It need be called in !?PI and !?GM0 triggers, as any other script with UN:C.

Quote:
The x/y new coordinates are for the center of the object or another location?

Left upper corner of sprite, from left upper corner of screen.

Also, there are table of z-cordinates (depthes) exist. Maybe later I'll write script or Era plugin for changing it.

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


Promising
Supreme Hero
posted August 27, 2010 07:36 AM

Now that you mentioned town buildings...

Is there a command to change a building's cost on resources?

For example to make the Cyclop's Cave cost 20 wood, 30 ore and 3000 gold instead of its original cost (where will anyone find 20 crystals for this thing?)

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


Honorable
Undefeatable Hero
posted August 27, 2010 07:36 AM
Edited by Salamandre at 07:38, 27 Aug 2010.

Thank you. Why it needs to know how many frames are in? Usually the original defs have for most of them 1 frame, if not animated, but inserting more frames worked very well, so we could animate every building without telling how many frames are. Is it necessary or optional?

@Hero of Light: this was obvious for balance purpose. With stronghold you can have rocs day 1 and behe day 2, so now if get cyclops day 3, it will be not a town, but a killing machine.

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


Promising
Supreme Hero
HC's avatar uploader
posted August 27, 2010 07:42 AM
Edited by LizardWarrior at 08:04, 27 Aug 2010.

How do I can eliminate elementals ressistances and vulnerabilities?I need they for Romanian Town.Also who I can make conflux lvl 4 undead and life drainer?

edit:someone can tell me what's wrong with this script?
ZVSE

!!UN:T8/0/0/118 T8/0/1/119;
!!UN:T8/1/0/112 T8/1/1/127;
!!UN:T8/2/0/143 T8/2/1/137;
!!UN:T8/3/0/62 T8/3/1/63;
!!UN:T8/4/0/113 T8/4/1/194;
!!UN:T8/6/0/168 T8/6/1/168;

____________
Romanian_town-check out my heroes III town:Romanian Town v 2.0

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


Promising
Famous Hero
feanor on DF2.ru
posted August 27, 2010 08:19 AM

Quote:
Is there a command to change a building's cost on resources?

AFAIK, in pure ERM - no. I saw function for changing building costs, but it was written in assembler. Of course, them can be changed directly in memory - but I forget adresses.
Quote:
Why it needs to know how many frames are in?

Don't know. You may set 999 as value - game willn't crash.
Quote:
How do I can eliminate elementals ressistances and vulnerabilities?

!!UN:C7995184/4/134744072;
!!UN:C7995188/4/134744072;
!!UN:C7995192/4/134744072;
!!UN:C7995196/4/134744072;
clear elemental resistances except fire and mind (flag abilities -try to do them yourself )

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


Promising
Supreme Hero
HC's avatar uploader
posted August 27, 2010 08:20 AM

thanks
____________
Romanian_town-check out my heroes III town:Romanian Town v 2.0

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


Promising
Supreme Hero
posted August 27, 2010 02:24 PM
Edited by Hero_Of_Light at 16:10, 27 Aug 2010.

Quote:

@Hero of Light: this was obvious for balance purpose. With stronghold you can have rocs day 1 and behe day 2, so now if get cyclops day 3, it will be not a town, but a killing machine.


Yeah OK it was only a suggestion. If I know how to change the building cost I may change the others as well...

Is there a way to change the resource cost or not?

EDIT

Oh I see that it can't be done through ERM... OK I'll try to find another way.

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


Promising
Supreme Hero
posted August 28, 2010 12:01 PM

Quote:

How do I can eliminate elementals ressistances and vulnerabilities?


!!UN:C7995184/4/134744072;
!!UN:C7995188/4/134744072;
!!UN:C7995192/4/134744072;
!!UN:C7995196/4/134744072;
clear elemental resistances except fire and mind (flag abilities -try to do them yourself )


Actually a better question about it is this:

Is there a way of removing ALL monster flags of a creature? Because If so then the 4 Gods and Santa Gremlins could be usable (those creatures suck). And If there isn't an ERM command about that, might there be a way to replace them?

For instance swordsmen have no monster flags at all (they are only alive) and so If you could find a way to copy this ability and paste it on those creatures, then you can start anew on them...

Does anyone know anything about this?

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


Promising
Famous Hero
feanor on DF2.ru
posted August 28, 2010 03:52 PM

Quote:
Is there a way of removing ALL monster flags of a creature?

No. You need search all non-flag abilities in code.
Quote:
And If there isn't an ERM command about that, might there be a way to replace them?

And what? o_O
All abilities are linked with the creature number.

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


Promising
Supreme Hero
posted August 28, 2010 05:11 PM

More's the pity...

Oh well, I guess the 4 Gods and Santa Gremlins will have to be useless for EVER.

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


Honorable
Undefeatable Hero
posted August 28, 2010 05:17 PM
Edited by Salamandre at 19:33, 28 Aug 2010.

Have you tried to change their type in BM/BG trigger? I could change santa gremlins to anything else last time. However, first give full frames to gods, so no crash.

And please, don't talk non sense about what you don't know how to use. There is even a TOP WoG map about only Santa Gremlins

The name is "just another map", and it is fantastic. Only Santa Gremlins in it. There is nothing useless in Heroes-WoG when you know and wish to deal with.

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


Adventuring Hero
Photoshop Nab
posted August 28, 2010 11:21 PM

Quote:
Quote:

@Hero of Light: this was obvious for balance purpose. With stronghold you can have rocs day 1 and behe day 2, so now if get cyclops day 3, it will be not a town, but a killing machine.


Yeah OK it was only a suggestion. If I know how to change the building cost I may change the others as well...

Is there a way to change the resource cost or not?

EDIT

Oh I see that it can't be done through ERM... OK I'll try to find another way.


You looking for this?


This can be done by editing BUILDING.txt file from h3bitmap.lod

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


Promising
Supreme Hero
posted August 29, 2010 05:29 AM

Yep... Thanks a lot

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


Promising
Famous Hero
feanor on DF2.ru
posted August 29, 2010 10:36 AM
Edited by OxFEA at 10:41, 29 Aug 2010.

!?FU9000;
!!UN:C6919480/4/?y1;
!!VRy1:+128644;
!!UN:Cy1/4/?y2;
!!VRy3:Sx1 *7 + x2 *4 + y2;
!!UN:Cy3/4/x3;

Control of black markets:
x1 - market number (0..31)
x2 - slot number (0..6)
x3 - artifact ID (0..31)

!!FU9000:P0/0/3; - set catapult to 1st slot of 1st market.

For 358F, TE and ERA.

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


Honorable
Undefeatable Hero
posted August 29, 2010 11:10 AM

How that, market number?

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


Promising
Famous Hero
feanor on DF2.ru
posted August 29, 2010 11:16 AM

Control number of BM (OB:C)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
[ This thread is 227 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 ] < Prev Thread . . . Next Thread >
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1312 seconds