Jass:SetHeroStat
Aus Mappedia
| Funktion: SetHeroStat | |
|---|---|
| Parameter: | unit integer integer |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function SetHeroStat takes unit whichHero, integer whichStat, integer value returns nothing // Ignore requests for negative hero stats. if (value <= 0) then return endif if (whichStat == bj_HEROSTAT_STR) then call SetHeroStr(whichHero, value, true) elseif (whichStat == bj_HEROSTAT_AGI) then call SetHeroAgi(whichHero, value, true) elseif (whichStat == bj_HEROSTAT_INT) then call SetHeroInt(whichHero, value, true) else // Unrecognized hero stat - ignore the request. endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| unit | whichHero | |
| integer | whichStat | |
| integer | value |

russische Team, stehen wir nun im Halbfinale vor einem weiteren Giganten der e-Sports-Szene:
Finnland! Die Skandinavier hatten es im Gegensatz zu unserem