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 4 - Lands of Axeoth > Thread: Is there a way to bypass 32768 limit
Thread: Is there a way to bypass 32768 limit
vulcancolak
vulcancolak


Famous Hero
posted March 13, 2023 06:04 PM

Is there a way to bypass 32768 limit

I want to create quest that requires 100.000 gold. I can take 100.000 from player but quest requirement limit is 32.768
I have tried to check it like this
Player have greater than or equal to 30.000 AND
Player have greater than or equal to 30.000 AND
Player have greater than or equal to 30.000 AND
Player have greater than or equal to 10.000
But still it requires 32.768 gold.


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


Responsible
Legendary Hero
Modding the Unmoddable
posted March 13, 2023 07:39 PM
Edited by NimoStar at 03:43, 14 Mar 2023.

This is pretty basic. Your text only checks the gold three times. So it will return true with just 30.000

you have to set to take gold after counting each time

Preferably set variable each time you take gold

Or, create three consecutive tower quests requiring 30 thousand gold each. This ensures towers disappear each time the player pays, thus clearing them without using scripting (since if someone is not very good at it...)

Alternatively, just ask like 1000 gems, since player can buy them (each gem costs 750 gold in regular default marketplace, do your calculations for the appropriate number)
____________
Never changing = never improving

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


Famous Hero
posted March 14, 2023 04:43 PM

NimoStar said:
This is pretty basic. Your text only checks the gold three times. So it will return true with just 30.000

you have to set to take gold after counting each time

Preferably set variable each time you take gold

Or, create three consecutive tower quests requiring 30 thousand gold each. This ensures towers disappear each time the player pays, thus clearing them without using scripting (since if someone is not very good at it...)

Alternatively, just ask like 1000 gems, since player can buy them (each gem costs 750 gold in regular default marketplace, do your calculations for the appropriate number)


I was already made it with sulphur. By the way i don't know how to use variable in this editor. Can you give me an example if it's possible

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


Responsible
Legendary Hero
Modding the Unmoddable
posted March 15, 2023 09:30 AM
Edited by NimoStar at 09:32, 15 Mar 2023.

A variable is just something you set to true or false (by default it is false)

So, say, you want to make a quest that lets you pass LATER on in the map when you reacha  certain point.

You will need a quest hut and a quest gate, for example

Place the quest hut anywhere before and the quest gate in a choke point.

Now, the quest hut will ask you to bring Ring of Flares

When you deliver Ring of Flares, "RING_OF_FLARE_PASS" is set to TRUE (by scripting, obviously)

Then, in the quest gate, there will be a condition

IF
RING_OF_FLARE_PASS = TRUE
then...

So the quest gate disappears if you have delivered the ring of flares to the quest hut beforehand.

This is only an example, variables can be used for countless things, such as a daily variable that lets you have a daily effect from a quest hut:

* A daily map event makes the condition TRUE.
* When you use a quest hut, you get an effect and the condition becomes FALSE for the day.
* You can also set a condition that it doesn't become TRUE until the hero fights, but this requires also hero scripting.

In this way you can create custom map objects, say, +6 attack until next combat.
____________
Never changing = never improving

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0231 seconds