Auto-translated
Hello everyone! I suggest that in this thread, you share tips on mapmaking in Heroes IV. Unusual scripts, special artwork, and more. Here's an example of a script from me:
Let's say that after capturing a certain town, you need to end up in a specific location. You have one week. How can you implement this time limit using scripts? In the town's properties, on the "capture" tab, create an event: if the town is captured by a specific player, assign the variable, let's say "Time," to 8. Now, in the calendar events, create a daily event: if the variable "Time" is greater than 1, then "Time" minus 1; otherwise, if the variable "Time" = 1, then [the desired action, signifying the end of the time limit], and assign the variable "Time" to 0; otherwise, do nothing.
This is how you can create time limits with any duration and any conditions. You can also warn the player how many days are left until the time limit: if the variable "..." = (let's say) 3, then display the message "you have two days left until the end of the time limit."
Let's say that after capturing a certain town, you need to end up in a specific location. You have one week. How can you implement this time limit using scripts? In the town's properties, on the "capture" tab, create an event: if the town is captured by a specific player, assign the variable, let's say "Time," to 8. Now, in the calendar events, create a daily event: if the variable "Time" is greater than 1, then "Time" minus 1; otherwise, if the variable "Time" = 1, then [the desired action, signifying the end of the time limit], and assign the variable "Time" to 0; otherwise, do nothing.
This is how you can create time limits with any duration and any conditions. You can also warn the player how many days are left until the time limit: if the variable "..." = (let's say) 3, then display the message "you have two days left until the end of the time limit."
Наш мир полон тайн и чудес.
Многие их ищут, многим они вовсе не нужны, а многие даже не замечают их, не понимают что они вокруг нас, каждый день, везде.
А эти чудеса порой, сокрыты в обычных, привычных предметах.
Многие их ищут, многим они вовсе не нужны, а многие даже не замечают их, не понимают что они вокруг нас, каждый день, везде.
А эти чудеса порой, сокрыты в обычных, привычных предметах.