Skip to content
User Avatar
#1525
Auto-translated
Heroist
Yeah, I actually need it for heroes. Well, okay, I guess I'll have to manually enter it by ID... Thanks anyway.

Added 20 hours and 17 minutes ago
nn = GetDate(ABSOLUTE_DAY) / 7
---
n = random (179) + 1
AddHeroCreatures(hh[gen] , n , nn * ?)

I have this question: I need a random creature to appear for the hero, but its quantity should depend on the current week * a special coefficient, unique for each monster in the game; I've already defined it. The problem is that I can't fit all of this into one line. Maybe it's possible to create an array of 179 values, for example, c[0] = 1, c[1] = 10, c[179] = 2, etc., and then, instead of ?, substitute into the above function: c[n] ? But, unfortunately, it doesn't work. What should I do? I hope for help.
How do you create arrays? Are there any errors?
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4