|
Thread: [Wake of Gods] - Introduction/Modding/Scripting | This thread is pages long: 1 10 ... 16 17 18 19 20 ... 30 33 · «PREV / NEXT» |
|
Magissia
Adventuring Hero
|
posted November 07, 2011 10:03 AM |
|
|
Artas you can extract 7zip containers with an up to date WinRar
|
|
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]
|
|
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
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted November 09, 2011 12:50 PM |
|
|
|
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?
|
|
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
|
|
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?
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted November 10, 2011 10:36 AM |
|
|
Tested and it works. Armor 167. Shield is not cast but applied, check your creatures stats.
____________
Era II mods and utilities
|
|
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?
|
|
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
|
|
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?
|
|
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
|
|
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?
|
|
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
|
|
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
|
|
fanofheroes
Famous Hero
|
posted November 10, 2011 08:30 PM |
|
|
Cheers thank you!!!
|
|
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;
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted November 10, 2011 09:10 PM |
|
|
|
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!
|
|
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
|
|
|