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 2 3 4 5 ... 80 160 240 320 400 ... 403 404 405 406 407 · «PREV / NEXT»
bloodsucker
bloodsucker


Legendary Hero
posted November 01, 2023 01:06 PM

Means, it gives 1 random primary skill each day during a period of seven days (here enters the timer... I'm not sure if any timer running everyday can be used or if I have to look for one that is not being used, like with variables). As I said I was thinking I would find this in the blessing.
Also doesn't have one to give mithril...
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted November 01, 2023 02:18 PM
Edited by Salamandre at 14:24, 01 Nov 2023.

Still vague, you know how scripting works. What's the ID, then name of the object, what message gives when hover mouse or right click on it, before the visit, after the visit,  what becomes the object after that week, should be disabled for ever and what message. Does it work on a single hero (i.e. if Alamar visits it, is closed to everyone else for that week) or anyone, and if the latest, can more heroes visit after the first hero during that day and such. What cost, then is the cost multiplied for each additional visit or not, etc. Because in a script all those conditions are interlinked.

Beside, you know how random works, its a dice. So by reloading you can get the only skill you want.  

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


Legendary Hero
posted November 01, 2023 03:25 PM
Edited by bloodsucker at 15:41, 01 Nov 2023.

Ok. I think there something similar, I'll look for it later, The Magic Mushrooms.
What I want is an object like a school of war/magic where you are offered to pay to receive One point to a primary skill everyday, for seven days for the price of seven thousand. It's open to everyone on player's (me) side but you can have only one at a time, can visit it often with the same hero.
But my biggest problem is I'm not sure if timers conflict and didn't understood enough to be sure (but I'm now inclined to think it doesn't). So, maybe if you answer this I can do it myself: can timers of different scripts cause conflicting problems (like with variables) or can I use !?TM2 for everyday, as I see used often?

____________

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


Admirable
Omnipresent Hero
Wog refugee
posted November 01, 2023 03:38 PM
Edited by Salamandre at 15:45, 01 Nov 2023.

You don't need timer most of times. You have :

Hero variables (w vars)
Terrain variable (POx/y/z:B or POx/y/z:V)
Check day (VRc)

So let's say Alamar visits the object and buys one skill, you set his w1 variable to 1, then set the current day to PO (object square).

If Alamar visits again that day, you check PO and compare to current day, if they match, you prohibit visit. When Alamar visits the next day, you do same calculation and now current day doesn't match PO, so he can buy again, then you set his w1 variable to 2 and set again PO to current day. Do same until w1=7 then the object is closed for Alamar.

It's a simple script but can become very complex depending if there are more heroes that can visit same day and so. In that case, you should only use w vars to store both day and visits, then current day for check

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


Legendary Hero
posted November 01, 2023 03:49 PM

You're right, it's quite hard to explain a simple thing in terms that leave no space for doubts/errors. All I need to check is an hero's variable that I set for seven days. I did something like that years ago but I don't remember what happened to that mod (in quite unorganized and now my memory isn't good anymore...),
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted November 01, 2023 04:02 PM

Ok, try to write the script then post for check, so there is a progress bonus.

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

Tavern Dweller
posted November 08, 2023 10:13 AM
Edited by Globtroger at 10:14, 08 Nov 2023.

Hello HC, novice wogger here.

I'm currently making a map for WoG/ERA but I need help understanding a few things related to ERM. I'm reading through the list of claimed variables in ERM help and from what I understand, variables that are not in parentheses are claimed for wog scripts. Variables in parentheses are free to be used but only temporarily as they will be overwritten at some point.

This seems really limiting, like you can't store any data for a longer period of time, is there really no way to generate new variable id's? I've seen this thread about integrating LUA script into WoG which sounded really promising... Was that ever accomplished or is it an abandoned idea?

http://heroescommunity.com/viewthread.php3?TID=33943

Lastly, if there is no way to add new variables, is there a list anywhere that would tell me what wog scripts use which variables. That way, maybe I can disable a few scripts and borrow their variables for my needs.

Please let me know your thoughts.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted November 08, 2023 02:02 PM

It only depends on if your map uses internal scripts or WoG external scripts. If internal, then all variables are free and there are enough of them, you won't run out.

But if you use some WoG scripts, just write down their variables, as they are specified in script header, then use the others.
____________
Era II mods and utilities

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

Tavern Dweller
posted November 08, 2023 02:29 PM

Salamandre said:
It only depends on if your map uses internal scripts or WoG external scripts. If internal, then all variables are free and there are enough of them, you won't run out.

But if you use some WoG scripts, just write down their variables, as they are specified in script header, then use the others.


What exactly is the difference between internal and external scripts. Are internal scripts the ones that you write in timed events whilst external ones get added during wogification?

Does that mean that as long as I add team scripts using wogification rather than manually copying them into timed events, I can use all the vars?

That would be epic...
____________

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

Tavern Dweller
posted November 08, 2023 02:38 PM

Or is it that I can use the vars reserved for the scripts that I'm not using. So if I don't like Karmic Battles or Monster mutterings, then I can use their variables as long as the script isn't applied during wogification?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted November 08, 2023 02:38 PM

In Era we don't use anymore scripts in map events, but in a file added to the mod/map using same structure as the game (data/s folders)

What I mean is, if you write your own scripts and don't use any of wog scripts, then all vars are available.

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


Admirable
Omnipresent Hero
Wog refugee
posted November 08, 2023 02:39 PM

Globtroger said:
So if I don't like Karmic Battles or Monster mutterings, then I can use their variables as long as the script isn't applied during wogification?


Exactly.

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

Tavern Dweller
posted November 08, 2023 02:43 PM

Salamandre said:
What I mean is, if you write your own scripts and don't use any of wog scripts, then all vars are available.


Okay, I get it now, thanks

Salamandre said:
In Era we don't use anymore scripts in map events, but in a file added to the mod/map using same structure as the game (data/s folders)


What's the advantage to this, do you see your script included in wogification menu? Asking, because I know it's still possible to do it the old school way.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted November 08, 2023 02:49 PM

I think the best way to understand is to download some Era mods then look in the folder and see how they're done. Download first the ones having the [Scenario] tag, they are maps.

https://drive.google.com/drive/u/0/folders/1an21yfqr_qluzAJ19HruQ2zmrL05qu2v

Is rather easy and repetitive. Using a script file external to your map allows you to modify scripts on the fly, during the game for example. Which you couldn't do if the script was in map events.

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

Tavern Dweller
posted November 08, 2023 03:04 PM

Salamandre said:
I think the best way to understand is to download some Era mods then look in the folder and see how they're done. Download first the ones having the [Scenario] tag, they are maps.

https://drive.google.com/drive/u/0/folders/1an21yfqr_qluzAJ19HruQ2zmrL05qu2v

Is rather easy and repetitive. Using a script file external to your map allows you to modify scripts on the fly, during the game for example. Which you couldn't do if the script was in map events.


Okay thanks for all the help, I'll have a look. Also thanks for that link, I found a working copy of the tree animation mod that I wanted so much. The one hosted on heroes3wog.net is bugged and throws up a weird error.
____________

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

Tavern Dweller
posted November 09, 2023 01:38 PM

Can anybody help? What is wrong with this code?

!!IF:Mv2/2/^Well done! Would you like to accept the reward?^;
  !!if&v2=0:;
     !!IF:M^Too bad! Don't hesitate to visit again if you change your mind...^;
  !!el:;
     !!IF:M^Excellent! Here's the promised reward.^;
  !!en:;

The popup appears but after I choose yes or no, it always shows the Too bad! message, regardless of my choice, what am I doing wrong?
____________

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


Legendary Hero
posted November 09, 2023 01:52 PM

Is the Resurrection power of Archangels a property we can access through ERM? I increased their health but now I need five to resurrect one...
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted November 09, 2023 04:59 PM
Edited by Salamandre at 18:03, 09 Nov 2023.

1 archangel can resurrect 100 HP. So you need to boost the spell accordingly.

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


Admirable
Omnipresent Hero
Wog refugee
posted November 09, 2023 11:17 PM
Edited by Salamandre at 23:18, 09 Nov 2023.

Globtroger said:
Can anybody help? What is wrong with this code?


use IF:Q1^my text^ instead, answer will be stored in flag 1, there is a problem with IF:M

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

Tavern Dweller
posted November 10, 2023 09:07 AM
Edited by Globtroger at 09:08, 10 Nov 2023.

Salamandre said:
use IF:Q1^my text^ instead, answer will be stored in flag 1, there is a problem with IF:M


Thanks, someone also said that over at the Discord server. There is one way to use the IF:M tag as I figured out by trial and error but it's not very obvious from the documentation and it looks dodgy...

  !!IF:M?v2/2/^Well done! Do you want the reward?^;
  !!if&v2<30726:;
     !!IF:M^Here's the reward.^;
  !!el:;
     !!IF:M^Too bad!^;
  !!en:;

You need a question mark before the variable name for it to return a value. Now it returns either 30725 or 30726 depending on the option that you choose. I went with If:Q...
____________

 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 2 3 4 5 ... 80 160 240 320 400 ... 403 404 405 406 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.3993 seconds