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


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Fred79's Object Patch
Thread: Fred79's Object Patch This thread is 66 pages long: 1 2 3 4 5 ... 10 20 30 40 50 60 ... 62 63 64 65 66 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted October 29, 2021 04:47 PM
Edited by Salamandre at 16:48, 29 Oct 2021.

My question still remains

Are there any modifications done to the wog scripts in your s folder? because keeping them gives duplicata errors. Knowing that Era removed scripts causing crashes, as battle split and passable terrain.

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


Admirable
Omnipresent Hero
Wog refugee
posted October 29, 2021 04:58 PM

fred79 said:

1. sea barrels containing resources, instead of gold, like sea chests. i need the exact same setup as a sea chest, only with everything BUT gold in them.

2. creature eggs; where you have a 50/50 chance to either not have to fight, or fight 1 creature, for a reward of 1 of those type of creatures. i'll need text added for these(per type), as well.

3. solo green, gold, red, and black dragon arenas(similar to dragon utopias); where you only fight that dragon type, for a lesser or greater reward, depending on the type of dragon.


I need a pic showing each of this graphics in your maps (one for each), I couldn't find anything named barrel for example.
____________
Era II mods and utilities

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


Disgraceful
Undefeatable Hero
posted October 29, 2021 05:06 PM

yes, i did. i only rewrote some(the only one i can remember, being the mad scientist's lab; script 44, and script 12, which i rewrote as a fortune teller's tent).

the others i cut bits from:

Quote:
1. had to remove mithril enhancements, caused map to crash.

2. had to ban secondary skills enhancement, caused map to crash.
------------------------------------
3. this part of script 01 caused map to crash; had to remove it:

VRy2:Svyl &vxl; [get just our bit]
!!IF&y2>0:V3/1; [set flag 3 if our bit set]

**end of function



(deleted this part from script 01)

VRx1&x1<=20:-1 %10 +550;
!!VRx1&x1=21:S560;

(also deleted this from script 01 with the corresponding chunk with it)





i would say, leave in scripts 12 and 44, but delete the rest. thanks again.

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


Disgraceful
Undefeatable Hero
posted October 29, 2021 05:26 PM
Edited by fred79 at 17:30, 29 Oct 2021.

all graphics are named from left to right, top to bottom:

sea barrels:



WBNE.def
WBNW.def
WBUU.def
WBNN.def
WBWW.def
-----------------------------

creature eggs, and their corresponding creatures:



DragEgg1.def (red dragon)
DragEgg4.def (black dragon)
ShdDrgEg.def (shadow dragon, creature number 155)
DragEgg6.def (acid dragon, creature number 135)
DragEgg2.def (green dragon)
DragEgg3.def (gold dragon)
DiDrgEgg.def (diamond dragon)
CrDrgEgg.def (crystal dragon)
HydraEgg.def (hydra)
HlHydEgg.def (chaos/hell hydra)
DragEgg7.def, DragEgg5.def (frost dragon, creature number 132)
TnlSlgEg.def (tunnel slug, creature number 169)
DepOneEg.def (deep one, creature number 144)
Nest1.def    (roc)
AyssdEgg.def (ayssid, creature number 192)
DOccnmr.def, DOccnmv.def (arachnid, creature number 172)
WyvEgg1.def  (wyvern)
-----------------------------

dragon arena's:



GrenDrAr.def
GoldDrAr.def
RedDrAr.def
BlacDrAr.def




hope this helps.

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


Admirable
Omnipresent Hero
Wog refugee
posted October 29, 2021 06:02 PM

yeah well, not easy. You only changed graphics, but not type/subtype, therefore there is no way for a script to identify, let's say an arena, but with blue design.

The dragons eggs are identified as pandora box in the map.

So, unless each one is scripted manually (script is not difficult but then you have to add x/y/z coordinates for EACH of such objects) there is no way.

So, I can give script but then you have to enter coordinates for each of these objects.

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


Admirable
Omnipresent Hero
Wog refugee
posted October 29, 2021 06:06 PM

Give me some time, I will try to change their subtype in zeobjts.txt directly then see if game reacts to new setup.

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


Disgraceful
Undefeatable Hero
posted October 29, 2021 06:07 PM

if you type up universal scripts to put into timed events using their def names, i could just swap out all the objects on the maps. would that work?

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


Admirable
Omnipresent Hero
Wog refugee
posted October 29, 2021 06:12 PM

ERM does not handle defs names.

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


Admirable
Omnipresent Hero
Wog refugee
posted October 29, 2021 06:18 PM
Edited by Salamandre at 18:22, 29 Oct 2021.

ok I tested and the map accepts new subtypes. But that needs you change the subtype of each of those objects, can you do it?

For example, space bar on barrels and change 0 to 5 for example (then use same subtype (5) for each barrel!). Avoid 1-4 subtypes as they are sometimes used. Do same for eggs and arenas, should not be that long. Then send me the maps again, with the list of subtypes you gave.

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


Disgraceful
Undefeatable Hero
posted October 29, 2021 06:33 PM
Edited by fred79 at 18:53, 29 Oct 2021.

ok, will do. i've never worked on object scripts, so i didn't know what was required.

edit: i edit the zeobjts.txt file. it will take me a while to replace all the eggs and sea barrels in the maps, as there are a lot of them.

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


Admirable
Omnipresent Hero
Wog refugee
posted October 29, 2021 07:02 PM
Edited by Salamandre at 19:15, 29 Oct 2021.

No, I already tried that. Changing subtype in Zeobjts.txt works only for objects you will place from that moment, it didn't affect the existing. Which means the map stores in its own memory.

Take your time, it doesn't have to be done in the next hour.

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


Disgraceful
Undefeatable Hero
posted October 29, 2021 07:39 PM
Edited by fred79 at 21:01, 29 Oct 2021.

i know that, but placing objects/releasing maps in the future will run into the same issue. that's why i'm updating both the text file and the objects on the maps themselves. i'm done with the barrels, barring those below, which i forgot are paired with the sea barrels:



================================================
ok, i sent you the updated files. the types and subtypes are as follows:

1. the sea barrel(type 82) subtypes(both the floating and beached) are all 5.

i guess the generic text for all the sea barrels, both the beached and floating, could be, "you've found a sea barrel; but the lid is sealed shut. after cracking it open, you find..."

---------------------

2. for the creature eggs(pandora's box, #6 on the list), the creature types( ), egg subtypes( ) are:

(6) (82) (5)
(6) (26) (6)
(6) (27) (21)
(6) (83) (7)
(6) (155) (8)
(6) (132) (9)
(6) (135) (10)
(6) (132) (9)
(6) (133) (11)
(6) (151) (12)
(6) (110) (13)
(6) (157) (14)
(6) (169) (15)
(6) (144) (16)
(6) (108) (17)
(6) (92) (18)
(6) (192) (19)
(6) (172) (20)

"you come upon an * egg. as you near it, you:

a. are attacked!
b. find it to be unguarded.

the egg hatches, and the creature is eager to join your ranks"

((or something like that))
--------------------------

3. the dragon arenas are:

for green dragons(26), the subtype is (5).
red (82), (6)
black (83), (7)
gold (27), (8)


hope that's all clear enough. i'll leave you to come up with the text for the dragon arenas.

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


Admirable
Omnipresent Hero
Wog refugee
posted October 30, 2021 06:49 AM
Edited by Salamandre at 07:09, 30 Oct 2021.

I need:

1) maps with fixed subtypes so I can test (I got them in HCM, thanks)

2) What you want to occur for each of such objects, if 2 triggers, what percentage (for exemple 30% nothing, 30% battle etc), and what exact creatures to fight, then what exact reward (artifact which class, what resources and so on) and also if you want (for all of only some of those objects) that fight/reward to scale with game time (for example battle 10 archers month 1, 50 archers month 2 and so on)

Example :

sea barrel: 30% chance to get 2500 gold and fight with 10 trogs, 30% chance to get 5000 gold and fight with 60 trogs, 30% chance to get 7500 gold and 100 trogs, 10% chance to get one common artifact unguarded
Scaled/unscaled. If scaled, every month values (reward/monster to fight) increase by x%. Unscaled : no change, you get same thing 1 week or 24th month.



3) Is it possible to send me the map you used to make screen of all the objects you want me to script? That would save me a lot of time

4) Do you want scripts to be real time (player can reload to get a different outcome when visiting objects) or set in stone at game start (each object will give same outcome no matter if reload). I prefer second option personally.

All this must be very precise and complete so I can script smoothly and efficient.

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


Disgraceful
Undefeatable Hero
posted October 30, 2021 08:09 AM

2.

a: sea/beached barrels:

70% chance to get either: a) 5 wood, b) 5 sulfur, c) 5 mercury, d) 5 gems, e) 5 crystal, or f) 5 ore. 30% chance to get nothing. (all unscaled)

the text for all the sea barrels, both the beached and floating: " You've found a storage barrel, from the wreckage of a ship; but the lid is sealed shut. After cracking it open, you find *** "


b: creature eggs:

50% chance of fighting one creature of that type, to receive one creature of that type afterward, or 50% chance the egg is unguarded, and to receive one creature of that type for free. (all unscaled)

text: " You come upon an *** egg. As you near it, you:

a. are attacked!
b. find it to be unguarded.

The egg hatches, and the creature is eager to join your ranks. "


c: dragon arenas:

30% chance of fighting 4(one in each corner surrounding hero's army) *** dragons, for 4000 gold. 30% chance of fighting 8(stacks of 2 in each corner) *** dragons, for 8000 gold. 30% chance of fighting 12(stacks of 3 in each corner) *** dragons, for 12000 gold. 10% chance of fighting 16(stacks of 4 in each corner) *** dragons, for 16000 gold. (these should be scaled to the player if you can, but if you have to scale this to the month only, just raise by +4 for each 30/30/30% for each increasing month. the 10% can stay the same; the max will be all % 16 *** dragons, for 16000 gold)

if text is needed: " In the Dragon Arena, you will test your skills and risk your very life for great reward, against the fiercest of all winged creatures: dragons. Prepare yourself, hero! "



3. i'll make a quick one and send it to you via hcm after i post this.



4. i agree with you; set in stone at game start.

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


Admirable
Omnipresent Hero
Wog refugee
posted October 30, 2021 08:13 AM
Edited by Salamandre at 08:16, 30 Oct 2021.

fred79 said:

b: creature eggs:

50% chance of fighting one creature of that type, to receive one creature of that type afterward,


I need  the creature type (for each), I'm not familiar on how your eggs work

fred79 said:

c: dragon arenas:

30% chance of fighting 4(one in each corner surrounding hero's army) *** dragons,


Same, I need to know which dragons you fight. There are many dragons in the game, including level 8.

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


Disgraceful
Undefeatable Hero
posted October 30, 2021 08:38 AM
Edited by fred79 at 08:42, 30 Oct 2021.

i posted that above. the eggs work like pandora's boxes:

fred79 said:


2. for the creature eggs(pandora's box, #6 on the list), the creature types( ), egg subtypes( ) are:

(6) (82) (5)
(6) (26) (6)
(6) (27) (21)
(6) (83) (7)
(6) (155) (8)
(6) (132) (9)
(6) (135) (10)
(6) (132) (9)
(6) (133) (11)
(6) (151) (12)
(6) (110) (13)
(6) (157) (14)
(6) (169) (15)
(6) (144) (16)
(6) (108) (17)
(6) (92) (18)
(6) (192) (19)
(6) (172) (20)

--------------------------

3. the dragon arenas are:

for green dragons(26), the subtype is (5).
red (82), (6)
black (83), (7)
gold (27), (8)




goddamn hc's floodprotect is infuriating. not being able to snowing change an existing post for a goddamn minute is absolutely retarded. since when was EDITING part of floodprotect?

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


Admirable
Omnipresent Hero
Wog refugee
posted October 30, 2021 09:27 AM

oki, got all. Give me a few days, while you think at a name for your mod.


____________
Era II mods and utilities

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


Disgraceful
Undefeatable Hero
posted October 30, 2021 09:31 AM

will do. it's just going to be "fred's maps", since other will come out later. thanks again for your help.

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


Disgraceful
Undefeatable Hero
posted November 02, 2021 10:52 PM

any progress with the scripts, sal? i'm still tweaking the latest releasable map(structurally and graphically) on my end.

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


Admirable
Omnipresent Hero
Wog refugee
posted November 03, 2021 12:05 PM
Edited by Salamandre at 13:20, 03 Nov 2021.

fred, do you want all these objects to work same if AI visits them or give something else, as primary skills or whatever? Because AI in most cases, will not take the creature if its army is already full

My suggestion: leave the eggs (pandora boxes) only customizable for human, and act as pandora boxes for AI, same for Arenas, human gets the fight, AI gets Arena.


 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 66 pages long: 1 2 3 4 5 ... 10 20 30 40 50 60 ... 62 63 64 65 66 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0926 seconds