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: help for script
Thread: help for script
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted June 27, 2008 02:28 AM

help for script

I have here a script which does the following: visiting an event ressurect the azure dragons defeated at x/y and replace the mithril pile already took with a new one. My problem is that the new mithril pile comes by 5 units each time. And I would need only one unit. Any help where this is located please?


ZVSE

** Valley Of Mithril script

!#VRv80:S1; [# of dragons]

!?LE21/21/0; [local event trigger]

!!OB22/21/0:T?y1U?y2; [get type/subtype where dragons are]
!!VRv80&y1<>54:*2; [double dragons]
!!UN&y1<>54:I22/21/0/54/132; [place new dragons]
!!MO22/21/0&y1<>54:Gv80; [set # of dragons]

!!VRv30:C23; [mithril x]
!!VRv50:C21; [mithril y]

!!DO3/0/14/1; [refill all mithril squares that are empty]

!?FU3; [handle replacing one square of mithril, index x16]
!!VRv81:Sx16;
!!VRv81:+30;
!!VRv81:Svv81; [now v81 is mithril x]
!!VRv82:Sx16;
!!VRv82:+50;
!!VRv82:Svv82; [now v82 is mithril y]
!!VRv83:S0; [mithril level]
!!OB81:T?y1U?y2; [get type/subtype where mithril goes]
!!UN&y1<>79:Iv81/v82/0/79/7; [place new mithril]

 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.0403 seconds