Skip to content
User Avatar
#4444
Auto-translated
Markel the Imperor
When visiting standard treasure chambers and adding resources, the player sees nice pictures depicting them.
How can this be achieved manually if the treasure chamber is scripted?

(The manual says that ChangeResource
Changes the amount of a specified resource for the player who owns the specified hero. At the same time, a "flying" message appears from this hero, indicating the change in the resource.
But if you write it in a script, it doesn't work/Attempt to call nil value ''ChangeResource).
Version 3.1
The trick should work if you use SetPlayerResource, while setting the fourth parameter to the name of the hero from whom the message with the resource picture should appear.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

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

Statistics

Welcome our newest member: leyu