|
Thread: Programming for WoG/SoD? | This thread is pages long: 1 2 3 · «PREV |
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted September 15, 2009 09:09 PM |
|
|
Quote:
Also, I'm almost done UnWoGifying H3Sprite and H3Bitmap LODs, that is, reverting skill icons to what they were in the final HoMM3.
You will be happy with what I found. It reverts the skill icons to original.
____________
Era II mods and utilities
|
|
GreatEmerald
Hired Hero
|
posted September 15, 2009 10:02 PM |
|
|
I already have them back to original, I only need the resources bar and the videos. Oh, and how do you create .wog files?
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted September 15, 2009 10:11 PM |
|
|
You will need 5 txt files (extract them from any patch)
1)action.txt, contains:
[REGEDIT]
[INSTALL]
2)H3bitmap.txt
write inside your bmp names destined to bitmap.lod
3)H3SPRITE.TXT
write inside the name of the defs you want to go in h3sprite.lod
4)INFORM.TXT, contains
[GeneralName]
Emerald restore patch
[WhatAboutVrotAbout]
Your patch name
5)InstMult.txt, contains
[PICS]
[MUSIC]
Compress those 5 .txt files and your defs/bmp in a rar file, then change name extension to .wog. Place in update and run it. If confused, just look in any editor patch to get the idea how they work.
____________
Era II mods and utilities
|
|
GreatEmerald
Hired Hero
|
posted September 16, 2009 12:17 AM |
|
|
Hmm, but I can add Bitmaps and Sprites with command line tools... What about videos?
|
|
GreatEmerald
Hired Hero
|
posted September 20, 2009 04:19 PM |
|
|
Two more technical questions:
In Experience Adding, does Hatred Damage count as additional damage, or overall damage? For example, if I write the damage to be 5, WoG shows it as +50%, so does that mean that it will hit for 150% of damage, or only 50%?
And is there a way to add spell point drain ability, like Wraiths or Familiars have?
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted September 21, 2009 04:23 PM |
|
|
50% more damage
I don't think you can script drain mana. Even "reduce cost mana" which has a ID actually can't be scripted, I tried it without success.
____________
Era II mods and utilities
|
|
GreatEmerald
Hired Hero
|
posted September 22, 2009 10:20 PM |
|
|
OK, thanks. Too bad that SP drain isn't available yet, though.
I'm almost done modding all the creatures I need, and I'm looking into ways of creating new creatures... However, I don't seem to find any guides about that at all. For example, if I want to clone a Gog, make it of ID 174 and apply another LOD to it, what should I do?
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted September 22, 2009 11:05 PM |
|
|
Well, there is a way you can add 4 new creatures, that are in gaps between conflux creatures (they are named NOT USED (1-4) in crtraits) some hex editing needed to get rid of warnings about missing sound files - replace bad1, bad2, bad3, bad4 with beginnings of sound files, and import defs of unit's combat animation (without extension) to h3sprite.lod. Needs DOS editing of the .exe file.
If too hard, you can replace graphics of the existent ones right now. Want the GoG to replace the paladin commander? Then replace the def.
____________
Era II mods and utilities
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted September 23, 2009 05:00 AM |
|
|
I mean you can't script mana drain when using abilities. Of course you can script it directly in battle with basic commands:
1) Check if it is human vs AI hero battle (if neutral-->exit)
2) Check if Hero launched spell (every turn check)
3) If previous conditions OK check that Hero launching spell has >0 mana.
4) Check if battle ended that turn (if yes, exit)
5) Check if the creature draining mana is still alive after launching spell (if not, exit)
6) Now drain # mana and add it to the opponent mana pool.
Never tested, so it may needs some adjustments, but not big deal.
____________
Era II mods and utilities
|
|
|