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: Rampart / Conflux Growth script for Dungeon?
Thread: Rampart / Conflux Growth script for Dungeon?
pdesbois
pdesbois


Adventuring Hero
posted July 09, 2011 05:53 AM
Edited by angelito at 09:47, 09 Jul 2011.

Rampart / Conflux Growth script for Dungeon?

Can anyone help me on this: I like very much the idea to 'take' one lvl 7 creature, in case Castle structure was built, but have been unsuccessful in doing that for Dungeon instead.

The script (or part of it, I dont know) is as follows:

!?TM2&$weekday$=1/$once$=1; get town coords and change every Rampart/Conflux ONCE every monday
!!UN&v2367=1:P67/?y-1; check if Neutral Town script67 is active
!!VRv2367&y-1=1:S0; if so, disable reduction in Neutral "Conflux" Town
!!UN|v2366=1/v2367=1:U98/-1/?v2324; store how many towns there are
!!VRv2325|v2366=1/v2367=1:S-1; set index to -1 for new quick UN:U search
!!DO2334/1/v2324/1|v2366=1/v2367=1:P; call Rampart/Conflux mod loop

!?FU2334; each Rampart/Conflux with Castle gets one lvl 7 creature less
!!IF:V1/0; init flag 1
!!UN:U98/-1/-1/2325; get coordinates (v2325..2327) (uses new quick UN:U index -1 instead of x16)
!!OBv2325/v2326/v2327:U?y1; check town type (1=Rampart, 8=Conflux)
!!CAv2325/v2326/v2327:B3/9; check if Castle built in that town
!!VRy1&-1:S-10; forget about that town if no Castle
!!CAv2325/v2326/v2327&y1=1/v2366=1:M1/6/d-1/d-1; subtract one lvl 7 if OK and Rampart options active

From ERM_S I know Dungeon number is 5 (just as Rampart is 1, Conflux is 8 etc), but I cannot change the number accordingly.

If anyone can guide me t hru it, I'd appreciate it!

Many thanx!

EDIT: obviously I didnt put smileys in there, they just appeared as consequence of typing...

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


Honorable
Undefeatable Hero
proud father of a princess
posted July 09, 2011 09:48 AM

Smileys deactivated...thread moved to the WOG section.
____________
Better judged by 12 than carried by 6.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0214 seconds