|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted August 26, 2010 08:51 PM |
|
Edited by OxFEA at 20:53, 26 Aug 2010.
|
Who removes the catapult? oO
I remove the catapult-artifact. Catapult-creature in siege battles doesn't linked with it.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 26, 2010 09:25 PM |
|
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted August 27, 2010 06: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
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 27, 2010 01:16 PM |
|
|
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?
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted August 27, 2010 01:31 PM |
|
|
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.
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted August 27, 2010 01:36 PM |
|
|
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?)
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 27, 2010 01:36 PM |
|
|
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.
|
|
LizardWarrior
Honorable
Legendary Hero
the reckoning is at hand
|
posted August 27, 2010 01:42 PM |
|
|
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;
____________
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted August 27, 2010 02:19 PM |
|
|
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 )
|
|
LizardWarrior
Honorable
Legendary Hero
the reckoning is at hand
|
posted August 27, 2010 02:20 PM |
|
|
thanks
____________
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted August 27, 2010 08:24 PM |
|
|
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.
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted August 28, 2010 06: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?
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted August 28, 2010 09: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.
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted August 28, 2010 11:11 PM |
|
|
More's the pity...
Oh well, I guess the 4 Gods and Santa Gremlins will have to be useless for EVER.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 28, 2010 11:17 PM |
|
|
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.
|
|
bucazaurus
Adventuring Hero
Photoshop Nab
|
posted August 29, 2010 05:21 AM |
|
|
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
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted August 29, 2010 11:29 AM |
|
|
Yep... Thanks a lot
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted August 29, 2010 04:36 PM |
|
Edited by OxFEA at 16: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.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted August 29, 2010 05:10 PM |
|
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted August 29, 2010 05:16 PM |
|
|
Control number of BM (OB:C)
|
|
|