|
|
Felipe
Known Hero
Editing Heroes Without Limits
|
posted September 06, 2013 11:49 PM |
|
|
Annesh said: What script elements do I need to look at to give a creature the ability to cast a specific non-damage offensive spell once per fight? Is there a thread that already exists on this?
yes
http://heroescommunity.com/viewthread.php3?TID=27213
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted September 12, 2013 04:32 PM |
|
|
I found this very interesting script in acid cave that allowed the Archangels to resurrect themselves and the Phoenixes to rebirth at any point in the battle (and not just when they're all dead). I thought I should share it (and since it is in Polish, I made an English version of it).
**Phoenix and Archangel ressurections
!?MM0;
!!MM:M?z5;
!!MM:D?i;
!!BU&i>0/i<186:Ei/?y2;
!!BG:N?y8;
!!VRv5000:C-1/-1/-1/-1;
!!VRv5000:Sy2;
!!VRv5001:Si;
!!FU&y2<0|y2>41:E;
!!BMy2:T?v5002 N?v5003 B?v5004 E?v5005;
!!VRy10:Sv5004-v5003;
!!VRy12:Sv5003:5;
!!VRy12|v5002=13/v5002=150:S100*v5003;
!!BMv5000:E?y3 H?y4 L?y5;
!!VRy6:Sy4-y5;
!!VRy12|v5002=13/v5002=150:Sy12-y6;
!!VRy12|v5002=13/v5002=150:Sy12:y4;
!!VRy12&y12>y10:Sy10;
!!BMv5000:E?y13;
!!FU|y12<1/y13<1/y8<>v5000:E;
!!FU&v5002<>131/v5002<>158/v5002<>13/v5002<>150:E;
!!UN:R5/3/0;
!!UN:N3/10/v5002/1;
!!UN&v5003=1:N3/10/v5002/0;
!!VRz10&v5002<>13/v5002<>150:S^Rebirth the %Z10^;
!!VRz10|v5002=13/v5002=150:S^Ressurect the %Z10^;
!!MM:Mz10;
**VRz10:S^P:%Vi S:%Y2 %Y8^;
**MM:Mz10;
!?BG;
!!BG:A?y1;
**IF:M^%Y1^;
!!VRv5002&y1=1:S-1;
!?CM4;
!!CM:I?y10 S?y11;
**IF:M^%Y2 %Y3 %V5002^;
!!FU&v5002<>131/v5002<>158/v5002<>13/v5002<>150:E;
!!FU|y11<>12/y10>1:E;
!!VRy1:Sv5004-v5003;
!!VRy2:Sv5004:5;
!!VRy2|v5002=13/v5002=150:S100*v5003;
!!BMv5000:E?y3 H?y4 L?y5;
**VRy6:Sy4-y5;
**VRy2|v5002=13/v5002=150:Sy2-y6;
!!VRy15:Sy2;
!!VRy2|v5002=13/v5002=150:Sy2:y4;
!!VRy2&y2>y1:Sy1;
!!VRy2&v5002<>13/v5002<>150/y2>2/y2<5:S1;
!!BG:N?y8;
!!FU|y2<1/y3<1/y8<>v5000:E;
!!VRz9:S^^;
!!UN:N3/11/v5002/1;
!!UN&y2=1:N3/11/v5002/0;
!!VRz12:S^%Y2 %Z11! rise from the dead!^;
!!VRz13:S^resurect.wav^;
!!UN:R7/1;
!!SN:Pz13;
!!BMv5000:Ndy2;
!!BMv5000:V52;
!!BMv5000:Ed-1;
!!MM:Sz12;
!!BG:A2 D-1;
!!UN:R7/0;
!!CM:R0;
There is a minor problem though (and If someone knows how to fix this I could use the help). When I try to make the Phoenixes rebirth, the icon doesn't transform into the cast spell animation (while targeting the Phoenixes that is), but remains a big "?". Does anyone know how to fix this?
____________
Not idly do the leaves of Lorien fall.
|
|
felipe
Known Hero
Editing Heroes Without Limits
|
posted September 14, 2013 03:14 PM |
|
|
Is there a limit to the functions number?
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted September 14, 2013 04:25 PM |
|
|
I'm not sure what you're asking. If you're referring to the number of casts a creature has then that's modified through zcrtraits.txt.
____________
Not idly do the leaves of Lorien fall.
|
|
felipe
Known Hero
Editing Heroes Without Limits
|
posted September 14, 2013 11:50 PM |
|
|
I am asking about the functions number you can use through ERM.
!?FU350012;
!?FU9999999999;
!?FU9999999999999999999999999999999999;
...
Is there a limit?
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted September 15, 2013 12:47 AM |
|
|
|
chelseaperfect
Hired Hero
|
posted September 15, 2013 06:06 PM |
|
|
Please help me
I need a script to creature in my hero no rank and AI max ranks.
How should I do?
|
|
felipe
Known Hero
Editing Heroes Without Limits
|
posted September 15, 2013 06:33 PM |
|
|
Salamandre said: FU99999999999 is max.
Thanks
So I donīt need to economize
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted September 15, 2013 09:25 PM |
|
|
@Chelsea, without proper informations no one can make you that script.
Is a bit more complicated than just give experience line, as you need to specify the faction to exclude then apply only to other side.
Anyway, I suggest you to do what I did: learn from existing scripts. For instance, you have this feature in TEW4, all neutrals have max experience, while human not. The thing is looking like this but has MY conditions, you will need to specify yours:
ZVSE
[...]
!#UN:P906/1; [Stack Experience may not be gained from Battles]
[...]
!?BF;
[...]
!!DO9001/21/27/1&v8000<32/-206:P10; give max experience to neutrals/AI
!?FU9001; max experience to neutrals/AI
!!VRy1:Sx16+1*-1;
!!EAy1:Ex1/12/d/d;
|
|
chelseaperfect
Hired Hero
|
posted September 16, 2013 08:26 AM |
|
|
Thanks and help :(
Thanks, Salamandre. I tested seccessfully. I'm making a new map but i met a lot of difficulties in writing scripts.
Now I need a script to upgrade creature by mithril. I used !#MA but i unsuccessful (. Can you help me again?
|
|
Altair
Tavern Dweller
|
posted September 17, 2013 03:03 PM |
|
|
Hero_Of_Light said: I found this very interesting script in acid cave that allowed the Archangels to resurrect themselves and the Phoenixes to rebirth at any point in the battle (and not just when they're all dead). I thought I should share it (and since it is in Polish, I made an English version of it).
**Phoenix and Archangel ressurections
!?MM0;
!!MM:M?z5;
!!MM:D?i;
!!BU&i>0/i<186:Ei/?y2;
!!BG:N?y8;
!!VRv5000:C-1/-1/-1/-1;
!!VRv5000:Sy2;
!!VRv5001:Si;
!!FU&y2<0|y2>41:E;
!!BMy2:T?v5002 N?v5003 B?v5004 E?v5005;
!!VRy10:Sv5004-v5003;
!!VRy12:Sv5003:5;
!!VRy12|v5002=13/v5002=150:S100*v5003;
!!BMv5000:E?y3 H?y4 L?y5;
!!VRy6:Sy4-y5;
!!VRy12|v5002=13/v5002=150:Sy12-y6;
!!VRy12|v5002=13/v5002=150:Sy12:y4;
!!VRy12&y12>y10:Sy10;
!!BMv5000:E?y13;
!!FU|y12<1/y13<1/y8<>v5000:E;
!!FU&v5002<>131/v5002<>158/v5002<>13/v5002<>150:E;
!!UN:R5/3/0;
!!UN:N3/10/v5002/1;
!!UN&v5003=1:N3/10/v5002/0;
!!VRz10&v5002<>13/v5002<>150:S^Rebirth the %Z10^;
!!VRz10|v5002=13/v5002=150:S^Ressurect the %Z10^;
!!MM:Mz10;
**VRz10:S^P:%Vi S:%Y2 %Y8^;
**MM:Mz10;
!?BG;
!!BG:A?y1;
**IF:M^%Y1^;
!!VRv5002&y1=1:S-1;
!?CM4;
!!CM:I?y10 S?y11;
**IF:M^%Y2 %Y3 %V5002^;
!!FU&v5002<>131/v5002<>158/v5002<>13/v5002<>150:E;
!!FU|y11<>12/y10>1:E;
!!VRy1:Sv5004-v5003;
!!VRy2:Sv5004:5;
!!VRy2|v5002=13/v5002=150:S100*v5003;
!!BMv5000:E?y3 H?y4 L?y5;
**VRy6:Sy4-y5;
**VRy2|v5002=13/v5002=150:Sy2-y6;
!!VRy15:Sy2;
!!VRy2|v5002=13/v5002=150:Sy2:y4;
!!VRy2&y2>y1:Sy1;
!!VRy2&v5002<>13/v5002<>150/y2>2/y2<5:S1;
!!BG:N?y8;
!!FU|y2<1/y3<1/y8<>v5000:E;
!!VRz9:S^^;
!!UN:N3/11/v5002/1;
!!UN&y2=1:N3/11/v5002/0;
!!VRz12:S^%Y2 %Z11! rise from the dead!^;
!!VRz13:S^resurect.wav^;
!!UN:R7/1;
!!SN:Pz13;
!!BMv5000:Ndy2;
!!BMv5000:V52;
!!BMv5000:Ed-1;
!!MM:Sz12;
!!BG:A2 D-1;
!!UN:R7/0;
!!CM:R0;
There is a minor problem though (and If someone knows how to fix this I could use the help). When I try to make the Phoenixes rebirth, the icon doesn't transform into the cast spell animation (while targeting the Phoenixes that is), but remains a big "?". Does anyone know how to fix this?
You found my old script! :)
Icon doesn't transform into the cast spell, when Phoenixes don't have enough mana point.
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted September 17, 2013 03:48 PM |
|
|
No, the resurrection worked ok, it's just that the animation remained a question mark. It's no big deal, it's a great script and I will definitely use it on my upcoming mod. Thanks
____________
Not idly do the leaves of Lorien fall.
|
|
kivo
Famous Hero
|
posted September 17, 2013 07:12 PM |
|
|
Is there any possible way to change the position of the buttons on main screen? Such as New Game or Exit? I wanted to have them placed on a Heroes 2 background in different places.
Thanks.
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted September 17, 2013 09:57 PM |
|
|
I have a question too...
This command:
!!HE154:R2/1; [Set Female]
Supposedly sets the current hero to be female. However, when in battle, the hero animation stays the same (Might Heroes are male and Magic heroes are female in battle in case you didn't notice).
So I want to ask if there's anything else I can do to fix this.
____________
Not idly do the leaves of Lorien fall.
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted September 17, 2013 10:45 PM |
|
Edited by OxFEA at 22:48, 17 Sep 2013.
|
chelseaperfect said: Thanks, Salamandre. I tested seccessfully. I'm making a new map but i met a lot of difficulties in writing scripts.
Now I need a script to upgrade creature by mithril. I used !#MA but i unsuccessful (. Can you help me again?
It's impossible.Quote: So I want to ask if there's anything else I can do to fix this.
I'll try.
|
|
xeen
Tavern Dweller
|
posted September 17, 2013 11:16 PM |
|
|
New Artifacts and Wogify
Is there any way to make the following script work in a wogified map? This creates a new artifact with no particular properties. However, if you wogify a map, then the tooltips (text that appears when right-clicking) are not displayed correctly. Namely, something about an "Advanced University" pops up. Is there anyway to prevent this, or do custom artifacts not work with wogified maps in general?
ZVSE
!?OB5/163; Artifact 163
!!UNv998/v999/v1000;
!!UN:Iv998/v999/v1000/5/163;
!!ARv998/v999/v1000:M^{Energy Disk}
Rare magical "batteries" that can be used to power great works of magic.^; Show text when equipped
!#VRz429:S^{Energy Disk}
Rare magical "batteries" that can be used to power great works of magic.^;
!#HT5/163:T429; Show text when right-clicked
!#VRz10:S^{Energy Disk}
Rare magical "batteries" that can be used to power great works of magic.^; Set this text to "z10"
!#HT5/91:T10; Show "z10", when hero right-clicks the artifact
|
|
felipe
Known Hero
Editing Heroes Without Limits
|
posted September 18, 2013 12:00 AM |
|
|
xeen said: Is there any way to make the following script work in a wogified map? This creates a new artifact with no particular properties. However, if you wogify a map, then the tooltips (text that appears when right-clicking) are not displayed correctly. Namely, something about an "Advanced University" pops up. Is there anyway to prevent this, or do custom artifacts not work with wogified maps in general?
ZVSE
!?OB5/163; Artifact 163
!!UNv998/v999/v1000;
!!UN:Iv998/v999/v1000/5/163;
!!ARv998/v999/v1000:M^{Energy Disk}
Rare magical "batteries" that can be used to power great works of magic.^; Show text when equipped
!#VRz429:S^{Energy Disk}
Rare magical "batteries" that can be used to power great works of magic.^;
!#HT5/163:T429; Show text when right-clicked
!#VRz10:S^{Energy Disk}
Rare magical "batteries" that can be used to power great works of magic.^; Set this text to "z10"
!#HT5/91:T10; Show "z10", when hero right-clicks the artifact
Try !?CM trigger. It works for me with a lot of objects.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted September 18, 2013 06:36 AM |
|
|
Xeen, your problem is that you use low z vars to set a permanent name. For example, z10 is used a lot in all wog dialogs, thus will change from your instructions if the map is wogified.
Check claimed vars section in erm help.
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted September 18, 2013 09:21 PM |
|
|
Is there a way to prohibit a building to be built? I want to prohibit 5th level mage guild to be built in all Ramparts and Necropolis. What I mean is to make the mage guild level 4 in these towns the last one you can build. Is that possible?
____________
Not idly do the leaves of Lorien fall.
|
|
MoonWaker7
Tavern Dweller
|
posted September 21, 2013 03:01 PM |
|
|
Isn't there a way to change the original portrait to custom portrait through script/ERM?
ZVSE
!!HE152:L1^B21P_BS.pcx^;
!!HE152:L2^B21P_BL.pcx^;
|
|
|