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: ERM help and discussion
Thread: ERM help and discussion This Popular Thread is 407 pages long: 1 50 ... 52 53 54 55 56 ... 100 150 200 250 300 350 400 407 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted February 12, 2010 09:11 PM bonus applied by angelito on 26 Feb 2010.

It is not hard at all, when we look at the whole code it seems unreadable but it is basic.

Example:

You want monk attack/defend/walk/shot to sound different, ok?

Shot.
!?BG0;
!!BG:A?v4 N?v5; **what stack does, which stack is
!!BMv5:T?v6; what type of stack
!!FU&v6<>8/v4<>7:E; if not monk and shot, exit script
!!VRz1:S^DATA/monkshot.82m^;
!!SN:Pz1;

Walk
!?BG0;
!!BG:A?v4 N?v5; **what stack does, which stack is
!!BMv5:T?v6; what type of stack
!!FU&v6<>8/v4<>2:E; if not monk and walk, exit script
!!VRz1:S^DATA/monkwalk.82m^;
!!SN:Pz1;

Attack
!?BG0;
!!BG:A?v4 N?v5; **what stack does, which stack is
!!BMv5:T?v6; what type of stack
!!FU&v6<>8/v4<>6:E; if not monk and walk, exit script
!!VRz1:S^DATA/monkattk.82m^;
!!SN:Pz1;

Defend
!?BG0;
!!BG:A?v4 N?v5; **what stack does, which stack is
!!BMv5:T?v6; what type of stack
!!FU&v6<>8/v4<>3:E; if not monk and walk, exit script
!!VRz1:S^DATA/monkdef.82m^;
!!SN:Pz1;

With a bit of work you can compile the code in one alone, here I wrote separate to show how it works. Just use the conditions (attack/shot/defend/walk) in the SN:Pz1  (&v4<>$) and remove it from !!FU[...]
Here you already have 4 actions which will use a custom sound only for monk. Create 4 82m files, place them in DATA, use the whole code above. All you miss is death and getting hit, but it is better than nothing.
____________
Era II mods and utilities

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


Supreme Hero
posted February 13, 2010 04:01 PM

"!!VRz1:S^DATA/monkdef.82m^;"

In this way, would it be possible to play *.wavs? Because I've got a problem, I cannot re-name the *.wavs to *.82ms..
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted February 13, 2010 07:46 PM

.wav to .82m, not wavs to .82ms
____________
Era II mods and utilities

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


Supreme Hero
posted February 13, 2010 08:22 PM

Yes, I meant that . Is it possible?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted February 13, 2010 08:59 PM

if you show me an extension called "wavs"...
____________
Era II mods and utilities

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

Tavern Dweller
posted February 21, 2010 01:01 AM

hi guys. I have another question:
I want to ask a player a question and i want him to choose an answer. For example

Question:
What is the best creature?

Anwers:
Supreme archangel
Hell baron
Sacred phoenix
Ghost behemoth

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


Admirable
Omnipresent Hero
Wog refugee
posted February 21, 2010 01:41 AM
Edited by Salamandre at 02:05, 21 Feb 2010.

!!VRz1:S^Which is the best creature?^;
!!VRz2:S^Supreme Archangel^; v1=1
!!VRz3:S^Hell Baron^;  v1=2
!!VRz4:S^Sacred Phoenix^; v1=4
!!VRz5:S^Ghost Behemoth^; v1=8
!!VRz6:S^None of them, it is me Popeye the strongest! (exit)^;v1=16
!!IF:G1/1/0/z1/z2/z3/z4/z5/z6;
!!FU&v1=16:E;
!!FU1&v1=1:P;
[.......]
!!FU4&v1=8:P;

!?FU1;
!!IF:M^Supreme archangel? Of course!^;
[.....]
up to FU4.
____________
Era II mods and utilities

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

Tavern Dweller
posted February 21, 2010 11:21 AM

works great! Thanks alot m8
I have another question. I want the player if he answers Wrong to be defeated. For example:

!!VRz2:S^How much healt does an Darkness dragon has?^;
!!VRz3:S^300^; (wrong)
!!VRz4:S^400^; (wrong)
!!VRz5:S^500^; (wrong)
!!VRz6:S^600^; (Right)
!!IF:G1/1/0/z2/z3/z4/z5/z6;
!!IF&v1=1:M^Wrong answer! You lost!^;
!!IF&v1=2:M^Wrong answer! You lost!^;
!!IF&v1=4:M^Wrong answer! You lost!^;
!!IF&v1=8:M^That is correct!^;





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


Responsible
Supreme Hero
posted February 21, 2010 12:36 PM

It's not really a question but I thought I'd share it with you.

I started tweaking hero's specialties when I realized the following:

When you give a spell specialization it doesn't work If you don't specify the boost. For example:

** Astral(#40)
!!HE40:X3/18;
!!HE40:M18/1; [Starting Spell: Implosion]
!!HE40:M60/0; [Loose Hypnotize]

This command gives Astral the Implosion specialty in the hero screen and the spell to his spell book. But the damage dealt is the same. Can anyone give me the command to make it work? If not it's fine.

However when you give a creature specialization it works just the same with all creature specializations (+1 speed and +1 attack/defense):

** Catherine (#146) specialises to Angels
!!HE146:X1/12; [Master of Creatures]
!#VRz999:S^Increases the attack and defense of Angels and Archangels.^; [Set up text]
!!UN:G2/146/2/999;

The most astonishing discovery came from secondary skills. I thought there should be heroes specializations for all the skills. And I figured out it works, with a 5% bonus per level as usual:

** Melodia(#29)
!!HE29:X0/9; [Master of Skills: Luck]
!#VRz978:S^Receives a 5% per level bonus to her Luck skill.^; [Set up text]
!!UN:G2/29/2/978;

** Valeska(#1)
!!HE1:X0/6; [Master of Skills: Leadership]
!!HE1:S6/2; [Starting Skills: Advanced Leadership]
!#VRz953:S^Receives a 5% bonus per level to her Leadership skill.^; [Set up text]
!!UN:G2/1/2/953;

When I gave specialties in those two secondary skills I thought it wouldn't work. However when reaching level 20, Melodia had: 5*20=100% boost to her luck skill, giving her a total of 6 Luck! (Same with Leadership)

That works also for these Secondary skills (some of which were made in a Wog to have a percentage bonus):Diplomacy, Pathfinding, Scouting, Learning and even Scholar.  

I thought I'd post this because some of you are recreating Heroes and I think it would be nice to make heroes with new specialties (I already did). For example there are so many heroes with Eagle Eye specialty, they could be made to have something else.
 

____________
Not idly do the leaves of Lorien fall.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 21, 2010 02:06 PM
Edited by Salamandre at 14:26, 21 Feb 2010.

Quote:
I have another question. I want the player if he answers Wrong to be defeated.


!!VRz2:S^How much health does an Darkness dragon has?^;
!!VRz3:S^300^; (wrong)
!!VRz4:S^400^; (wrong)
!!VRz5:S^500^; (wrong)
!!VRz6:S^600^; (Right)
!!IF:G1/1/0/z2/z3/z4/z5/z6;
!!IF&v1=1:M^Wrong answer! You lost!^;
!!IF&v1=2:M^Wrong answer! You lost!^;
!!IF&v1=4:M^Wrong answer! You lost!^;
!!IF&v1=8:M^That is correct!^;
!!FU&v1=8:E;
!!IF|v1=1/v1=2/v1=4:M^Burn in fire for your ignorance^;
!!UN:Q0/1; lose game

Usually the players hate to lose game just for answering wrong to a simple question, so you may want to change it to a penalty, like losing money.

Hero of Light
Quote:
This command gives Astral the Implosion specialty in the hero screen and the spell to his spell book. But the damage dealt is the same. Can anyone give me the command to make it work? If not it's fine.


It works perfectly. On combat game log messages you will get the notification "X took a $$ extra damage"
____________
Era II mods and utilities

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

Tavern Dweller
posted February 21, 2010 06:29 PM
Edited by angelito at 19:04, 21 Feb 2010.

Is there any command which makes 8th level dwellings to function as regular ones?

I tried with next wog option seting command, but it doesn't work.

!#UN:P137/0; [Level 8 Creature Dwellings option is disabled]

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

Tavern Dweller
posted February 21, 2010 07:26 PM

Works great, thanks Salamandre. I'm working at some sort of quiz level now so thats why the player loses if he answers wrong.
script now looks like this:

!!VRz2:S^How much health does an Darkness dragon has?^;
!!VRz3:S^300^;
!!VRz4:S^400^;
!!VRz5:S^500^;
!!VRz6:S^600^;
!!IF:G1/1/0/z2/z3/z4/z5/z6;
!!IF&v1=1:M^Wrong answer! You lost!^;
!!IF&v1=2:M^Wrong answer! You lost!^;
!!IF&v1=4:M^Wrong answer! You lost!^;
!!IF&v1=8:M^That is correct! On to the next question!^;
!!UN&v1=1:Q0/1;
!!UN&v1=2:Q0/1;
!!UN&v1=4:Q0/1;

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


Admirable
Omnipresent Hero
Wog refugee
posted February 21, 2010 08:31 PM

Quote:
Is there any command which makes 8th level dwellings to function as regular ones?

I tried with next wog option seting command, but it doesn't work.

!#UN:P137/0; [Level 8 Creature Dwellings option is disabled]


Try this? (or zero, try both to see)
!#UN:P1;
____________
Era II mods and utilities

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

Tavern Dweller
posted February 21, 2010 09:12 PM

Quote:
Try this? (or zero, try both to see)
!#UN1;



Tried both (!#UN1/0; and !#UN1/1 without results.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 21, 2010 09:32 PM

Use the small red cross on left to disable smiles. What exactly you want with 8th level dwellings? I never used them but UN:P1 says they will work as normal ones.
____________
Era II mods and utilities

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

Tavern Dweller
posted February 21, 2010 10:38 PM

Ok, I found it. It's !#UN:P0/1;

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


Responsible
Supreme Hero
posted February 24, 2010 05:54 PM

OK it may be a bit hard but I thought I'd ask.

I found out that they finally posted something I've been waiting for a long time in this page:

http://translate.google.pl/translate?hl=pl&sl=pl&tl=en&u=http%3A%2F%2Fwogtreasurechest.dbv.pl%2Fdownloads.php%3Fcat_id%3D1

A PIRATE-CORSAIR! (and a nice animation too)

I always thought It would be a nice addition. So I thought that a corsair would be cool to have the same specialty as the Navigation skill in Wog has (adds +2 attack defense in naval battles)

Does anyone have this command so that the corsair has +2 attack defense when on water? (Or even better a +1 speed and enhanced damage would be nice)

____________
Not idly do the leaves of Lorien fall.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 27, 2010 02:52 AM

It is very easy, I used for example ID=150 (supreme archangel)

ZVSE

!?BA0;
!!TR998:T?y1/?y2/d/d/d/d/d/d; check battle square terrain type
!!FU&y1<>08:E; if no water, exit
!!IF:V99/1;
!!MA:D150/?v3; Store archangels initial defense
!!VRy4:Sv3;
!!VRy4:+2;
!!MA:D150/y4; +2 def for ID=150
!?BA1&99;
!!IF:V99/0;
!!MA:D150/v3; after battle, restore initial stats
____________
Era II mods and utilities

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


Known Hero
posted February 27, 2010 07:52 AM
Edited by angelito at 12:44, 27 Feb 2010.

Just a little remark: in such cases you don't need to do a chain like

!!MA:D150/?v3;
!!VRy4:Sv3;
!!VRy4:+2;
!!MA:D150/y4;

it is quite enough to write

!!MA:D150/?v3;
!!MA:D150/d+2;

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


Admirable
Omnipresent Hero
Wog refugee
posted February 27, 2010 08:00 AM

You are right, I just got over cautious with variables since using 1 million of them in battle scripts. My bad.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 407 pages long: 1 50 ... 52 53 54 55 56 ... 100 150 200 250 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.3547 seconds