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: Several questions about what I can and canīt do with Era
Thread: Several questions about what I can and canīt do with Era This thread is 3 pages long: 1 2 3 · NEXT»
Pollo2002
Pollo2002


Famous Hero
posted September 08, 2016 05:12 PM
Edited by Pollo2002 at 19:06, 08 Sep 2016.

Several questions about what I can and canīt do with Era

I decided to give it a go and start modding again, my last attempt was 4 years ago so i remember little.

Here is the list of things that I would like to do and would like to know if itīs possible to do with era and a general idea on how it would be done.

1. Can I change the movement cost of walking over terrain?
What about Specifically making a road that is normal movement?

2. Can I create a shroud that only hide variable objects but still show the terrain like the obelisk do? I want to create a fog of war like effect.. I know that permant shroud can be created but is very annoying that it hides terrain we know.

3. Can I give mines the ability to create guards? And only if there are no guards present?

4. Can I create an adventure spell similar to heroes 2 Set elemental guardian?

5. I can make a secondary skill (maybe change resistance) so it prevents a % of damage of damage spells?

6. Can I make it so I can Simulate autocombat vs any stack on the map to see what the result may be?
____________

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


Famous Hero
posted September 08, 2016 09:16 PM
Edited by Pollo2002 at 21:17, 08 Sep 2016.

Is it possible to allow surrender under siege? or at least escape?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 08, 2016 09:52 PM
Edited by Salamandre at 21:59, 08 Sep 2016.

For what you ask there are no direct commands, but a chain of other commands which will trigger the result.

For example, to surrender under siege, you need to check when player clicks the surrender button (CM4 trigger), prohibit the standard reaction (CM:R0), then store in variables his army (BM), then end battle (BU:V) and finally place that hero in tavern (OW:V), with the army he had before surrendering (HE$:C0).

So every complex script requires knowing erm entirely, not just parts.

The best way to learn erm is to study existing mods, and obviously read the manual.

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


Promising
Famous Hero
feanor on DF2.ru
posted September 09, 2016 08:11 AM

1. Yes
2. No
3. Yes
4. Partly
5. Create - no, change - yes
6. No

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


Admirable
Omnipresent Hero
Wog refugee
posted September 09, 2016 09:13 AM

OxFEA said:

2. No


Are you sure? We can script each step to calculate all map squares and apply shroud on squares already visible (player bits) but with a given object on. Would be probably long to process, but not impossible.

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


Famous Hero
posted September 09, 2016 12:51 PM

Can I make it so the opponent player controls the AI on the ai battles?

At first i thought it would be easy, just in !!BA set the opponent player as the defender. But trying to build the script it seems im missing something.
Is it possible and Im missing it?
____________

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


Famous Hero
posted September 12, 2016 06:24 PM

I know there is a script somewhere to only allow an adventure spell be casted once per day.

Is there a way to make a script so during combat everytime a hero cast a spell, it dissapears from its spellbook until the end of the battle (Where the spellbook is restored), I assume yes.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 12, 2016 06:56 PM

Yes. Also you will need hero w vars to store the spells he has when battle start, so you can restore later. Or SN:W if you know how to use them, so no conflict with other mods/.
____________
Era II mods and utilities

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


Famous Hero
posted September 14, 2016 04:53 AM

Is there any mod that plays around with what morale does? Ive looked around and didnīt find any, Im considering change how morale works to make it less erratic, and Iīm looking for some insipriation or maybe just a solution.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 14, 2016 09:11 AM

Well, Phoenix mod set all morale to neutral, so no morale. Then combine this with the fact that you can script x stack to move twice or more, and you create a new sort of morale, acting on your equation.

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


Famous Hero
posted September 14, 2016 04:36 PM

Wow Phoenix mod seems quite ambitious im sure i can use a lot of ideas from there, they were willing to change the battle attributes frequently, someone knows if this works fine in multiplayer, or are there any reported bugs? Years ago before ERA I was warned that changing battle attributes vs players will tend to cause desynchs and whatnot. Era did change it?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 14, 2016 05:17 PM

Phoenix mod limits the wog options to safe ones, so multiplayer is possible.

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


Famous Hero
posted September 16, 2016 04:52 AM
Edited by Pollo2002 at 04:54, 16 Sep 2016.

Yes What i was talking actually is how safe is to use do battle changes in ERA and play multiplayer.

Im thinking in making buffs values change with spellpower.
And to do that i will use !!SS a lot, ive been experimenting with it in singleplayer and works great. What I will do is everytime a hero cast a spell, it checks hero spellpower and based on that change power effect of the spell.

I wonder if htere is some desynch going on there that will happen? Like active players cast this stonesking that gives 6 defense, but non active plaer sees it gives 3 defense and chaos ensues?

I never did scripting that affected battlefield in WOG because it was so taboo back then to do that for multiplayer like it was a recipe for bugs. Does era change that? Can i know do battlefield changes in PVP and the world not collapsing?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 16, 2016 06:34 AM

Check IP column in erm manual, it answers all your questions about multiplayer. I think there are no problems transferring data, but once the proper commands added, I suggest direct testing and see how it goes.

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


Famous Hero
posted September 16, 2016 06:04 PM

Iīm trying to nerf dimension door and I canīt think how, is there some mod that does it? like in the SptraisTxt you can put how many times you can cast it per day. But i would like to limit the range, and if possible only work on visible terrain.

I just canīt think of a way to do it, someone can think of one?
____________

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


Famous Hero
posted September 16, 2016 09:07 PM
Edited by Pollo2002 at 21:13, 16 Sep 2016.

Anyone but i know Salmandre knows because I spoted a thread talking about this, can you explain the rules for changing Flags in SS reciever?

http://heroescommunity.com/viewthread.php3?TID=8288&pagenumber=118

Ive searched but couldnt find an answer, i donīt understand how you know how much you have to add or substract to the variable to get the desired result. In the ERM help, in the SS reciever there is some data on what bit is stored the flag to the spell. But i have no idea how to use that information, you seem to use a number that you derive from that ,but I canīt just make out how it works.

i want to do the exact opposite of what you did on that thread, remove mass effect at expert level of stonesking. But I have no idea what to do with the variable specially perplexing is your use of |64.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 17, 2016 04:56 AM

!?PI;
!!SS46:F?y1; [stone skin]
!!VRy1:&-65; [remove mass target flag]
!!VRy1:|16; [add single spell flag]
!!SS46:Fy1; [set]
____________
Era II mods and utilities

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


Famous Hero
posted September 17, 2016 05:26 AM
Edited by Pollo2002 at 05:27, 17 Sep 2016.

Thanks a lot, Though im still not sure why you choose the values you choose i will think later about it like a puzzle to see if i figure it out now that i have more information.

In the meantime i managed to succesfully give the losing hero in a battle the correct experience. The problem is that the leveling up screen never appears to the losign player, the hero goes to the tavern with random levelups.
I wonder if there is a way around it. I guess I can store the experience variable somehwere and when i buy the hero, give it the experience. The problem is that there is no trigger for buying hero.

I guess I will have to cheat and make it trigger when I click the experience icon or something on the hero chart.


____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 17, 2016 06:05 AM

The values are in SS column, spell flags. You must convert the values into bits, so when you see:

0x00000001 - Battlefield spell
0x00000002 - MAP spell
0x00000004 - Has a time scale
0x00000008 - Creature Spell
0x00000010 - target - single stack
0x00000020 - target - single shooting stack
0x00000040 - has mass version at expert level

This means, 1,2,4,8,16,32,64 and so on.

I don't understand your problem with the hero, you are trying direct ways when there aren't. Use multiple triggers.

For instance, in !?BA0 trigger store both heroes ID. Then in !?BA1 check who is alive, so now the other will be dead. Edit stats to the dead hero. Simple.

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


Famous Hero
posted September 17, 2016 07:23 AM

If you give experience to a dead hero he w ill auto level randomly, that is my point

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 3 pages long: 1 2 3 · NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0387 seconds