Skip to content
#2059
Auto-translated
Ascet2
I need all the resources; it takes too long to write out their names completely.
Too long? Is copying too long?

SetPlayerResource(1, 0, GetPlayerResource(1,0)+10)
SetPlayerResource(1, 1, GetPlayerResource(1,1)+10)
SetPlayerResource(1, 2, GetPlayerResource(1,2)+5)
SetPlayerResource(1, 3, GetPlayerResource(1,3)+5)
SetPlayerResource(1, 4, GetPlayerResource(1,4)+5)
SetPlayerResource(1, 5, GetPlayerResource(1,5)+5)
SetPlayerResource(1, 6, GetPlayerResource(1,6)+10000)

Added 34 minutes ago
inQizitOr
I also wanted to create a StartCombat script in my map, but it's not popular – it's not used in custom maps or in Nival's maps...
http://forum.heroesworld.net/forum//topic/at/518870/

Example:
MasteR
StartCombat (hero, nil, 2,CREATURE_THANE, 20,CREATURE_WARLORD, 20, nil);


Added 19 minutes ago
For convenience, you can use this program:
http://hmm5.sklabs.ru/

It has many hints and syntax checking.

Added 5 hours 7 minutes ago
And this map is suitable for studying scripts:
http://hmm5.sklabs.ru/woe.html

Statistics

Welcome our newest member: dodoD0D0