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: [Wake of Gods] - Introduction/Modding/Scripting
Thread: [Wake of Gods] - Introduction/Modding/Scripting This thread is 33 pages long: 1 10 ... 16 17 18 19 20 ... 30 33 · «PREV / NEXT»
Magissia
Magissia


Adventuring Hero
posted November 07, 2011 10:03 AM

Artas you can extract 7zip containers with an up to date WinRar

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


Famous Hero
posted November 09, 2011 05:54 AM

Ok so this is what I have for my artifact, and I'm not sure what's wrong exactly.  Salamandre I (tried) followed your advice to use the activators for your amor of haste and substituted it so that it casts shield.  At least that was the plan.  I figured the 'action' was the 'DO' and the M54 is the code for shield.  But truthfully I'm stringing together codes that I don't even know what I need to complete them

Here is what I have so far... help is appreciated



ZVSE

[Set new description for Armor of Protection]
!#VRz303:S^Armor of Protection^;
!#VRz304:S^{Armor of Protection}
When worn, this magical armor Casts Mass Shield for your troops in battle.^;
!#UN:A167/9/303; [Set new description]
!#UN:A167/10/304;

[Start of battle trigger]
!?BA0;
!!IF:V71/0; [Initialize Flag 71 to False]
!!BA?v1/?v2; [Owner: Attacker v1, Defender v2]
!!VRv42:S-1; [Initialize v42 to -1]
!!VRv42&v1=0:S0; [Set v42 to 0 if Red player is attacker]
!!VRv42&v2=0:S1; [Set v42 to 1 if Red player is defender]
!!FU&v42<0:E; [Exit if Red player isn't in battle]

!!BA:Hv42/?v3; [Red player's hero: v3]
!!HEv3&v3>=0:A2/167/?v4/?v5; [Armor of Protection equipped? v5=1 if yes]
!!IF&v5=1/v3>=0:V71/1; [Set Flag 71 to True if Armor of Protection equipped]

[Armor of Protection casts Shield to all allied troops in battle]
!?BR&v997>=0/71;

!!DOM54/6/3&v42=0; [Cast Shield to friendly troops (attacking)]
!!DOM54/6/3&v42=1; [Cast Shield to friendly troops (defending)]
!!IF:V71/0; [Set Flag 71 to False so bonus only given once per battle]

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


Adventuring Hero
posted November 09, 2011 12:46 PM

@fanofHeroes

Why red player ? It is suposed to work only for player 1 ?
____________

My works

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


Admirable
Omnipresent Hero
Wog refugee
posted November 09, 2011 12:50 PM

Because he copied my Alexander script, where red player is human.
____________
Era II mods and utilities

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


Famous Hero
posted November 09, 2011 10:24 PM

lol I figured if I substituted the variables and commands, then I'd be able to get the artifact to cast the spell automatically. ok so if I remove the red script, I'll be left with these commands:

!!DOM54/6/3&v42=0: P;
!!DOM54/6/3&v42=1: P;

(I left a space before the 'P' intentionally cause otherwise it would display an emoticon)

My understanding is this: the 'DO' represents an action to do, M54 is for earth shield magic, 6 is the duration and 3 the level.  I'm missing something but I don't know what it is?

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


Admirable
Omnipresent Hero
Wog refugee
posted November 09, 2011 10:43 PM

ZVSE

[Set new description for Armor of Protection]
!#VRz303:S^Armor of Protection^;
!#VRz304:S^{Armor of Protection}
When worn, this magical armor Casts Mass Shield for your troops in battle.^;
!#UN:A167/9/303; [Set new description]
!#UN:A167/10/304;

[Start of battle trigger]
!?BA0;
!!IF:V71/0; [Initialize Flag 71 to False]
!!BA:H0/?y-98 H1/?y-99;
!!HEy-98:A2/167/?y1/?v44;
!!HEy-99&y-99>-1:A2/167/?y1/?v45;
!!IF|v44>0/v45>0:V71/1;

!?BR&v997>=0/71;
!!DO54/0/20/1&v44=1:P;
!!DO54/21/40/1&v45=1:P;
!!IF:V71/0; [Set Flag 71 to False so bonus only given once per battle]

!?FU54;
!!BMx16:M27/99/3;
____________
Era II mods and utilities

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


Famous Hero
posted November 10, 2011 06:19 AM

If only it could come so naturally to me

Thank you Salamandre, although when I put the code in, during combat, when I equip the artifact, it doesn't cast the shield spell on the army.  Should I adopt the 'If' statement under the conditions that the hero is wearing the artifact like you have for the Armor of haste?




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


Admirable
Omnipresent Hero
Wog refugee
posted November 10, 2011 10:36 AM
Edited by Salamandre at 10:36, 10 Nov 2011.

Tested and it works. Armor 167. Shield is not cast but applied, check your creatures stats.
____________
Era II mods and utilities

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


Famous Hero
posted November 10, 2011 04:48 PM

Hmmm for some reason it's not working for me.  Each creature's stats display no active spells.  Would there be anything that would conflict with its function? For example does the hero need to have the knowledge of the spell first?

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


Famous Hero
posted November 10, 2011 05:06 PM

I think there is an overlap of codes.  I applied your artifact "armor of haste" to the boots (169), so there are similar codes.  I switched the 303, 304 to 305 and 306 so that it would be addressed with the proper name.  Are there any other codes i need to switch so that there is no overlap? cause what's happening is that its showing the stats for the haste function

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


Famous Hero
posted November 10, 2011 05:17 PM

I got it to work alone yes! But my assumption was correct, for some reason it overlaps with your ERM code for the armor of haste and that code dominates the function.  I guess that's what I get for copying and pasting  

what can I change from them so that the overlap doesn't occur?


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


Adventuring Hero
posted November 10, 2011 05:38 PM

Hello

I think you need to change the vars number, it was overlapping because the vars was already used by the armor of haste

vars are v###

you have to check for the already claimed vars on the ERM html help file to see what wog scripts uses, and you need to check your maps scripts and make a list of used vars to make sure to don't use them twice on different items if they aren't linked in any way

Be sure to change every occurences of the var number or it won't work
____________

My works

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


Famous Hero
posted November 10, 2011 05:55 PM

Yes!! Thank you! Thanks, to both of you!!  

So for every artifact that I'm going to make, I'm basically gonna use a template and copy and paste them, and then change the variables.  So the only things I need to change are the artifact numbers, the V#s and the VRz numbers?

I also noticed a variance in the VRv #s.  one was a 42, the other a 44.  should these also be different?

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


Admirable
Omnipresent Hero
Wog refugee
posted November 10, 2011 06:07 PM

Same v-var can be used multiple times for short term storage-and if you know what you do-. A function not, it is unique.
____________
Era II mods and utilities

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


Adventuring Hero
posted November 10, 2011 07:06 PM

z vars should be diferent too (you can use the same if you plane to put the same name on two items)
____________

My works

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


Famous Hero
posted November 10, 2011 08:30 PM

Cheers thank you!!!

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


Famous Hero
posted November 10, 2011 08:44 PM

oh, one final question...

If i want the spell to be cast against the enemy troops, is there a different number i need to use? Like what I have below gives me shield, fire shield and stone skin.  Which numbers do I need to change so that the spells is retrospect to the enemy?


!?BR&v997>=0/71;
!!DO54/0/20/1&v44=1;
!!DO54/21/40/1&v45=1;
!!IF:V71/0; [Set Flag 71 to False so bonus only given once per battle]

!?FU54;
!!BMx16:M27/99/3;
!!BMx16:M46/99/3;
!!BMx16:M29/99/3;

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


Admirable
Omnipresent Hero
Wog refugee
posted November 10, 2011 09:10 PM


____________
Era II mods and utilities

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


Famous Hero
posted November 10, 2011 10:12 PM

hahaha I don't mean to be fishing in anyone's anything.  With the amount of knowledge I know of this erm stuff, I don't even know how to fish!

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


Admirable
Omnipresent Hero
Wog refugee
posted November 10, 2011 10:29 PM

You fish in my old script and try to modify it to something it was not designed for. And you get crabs.
____________
Era II mods and utilities

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 33 pages long: 1 10 ... 16 17 18 19 20 ... 30 33 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0928 seconds