|
Thread: Is there a way to bypass 32768 limit | |
|
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.
|
|
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)
____________
|
|
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
|
|
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.
____________
|
|
|
|