//CREATEBOUNTYTAG
function CreateBountyTag takes unit base, string s, player p returns nothing
local location loc = GetUnitLoc( base )
local real height = GetUnitFlyHeight( base )
local real size = TextTagSize2Height( 9 )
local string txt = s
local texttag tt
if (GetLocalPlayer() != p) then
set txt = ""
endif
set tt = CreateTextTag()
call SetTextTagText( tt, txt, size )
call SetTextTagPos( tt, GetLocationX(loc), GetLocationY(loc), height )
call SetTextTagVelocityBJ( tt, 100, 90 )
call SetTextTagColor( tt, PercentTo255(100), PercentTo255(100), PercentTo255(100), PercentTo255(100))
call TriggerSleepAction( 1.00 )
call SetTextTagColor( tt, PercentTo255(100), PercentTo255(100), PercentTo255(100), PercentTo255(80))
call TriggerSleepAction( 0.25 )
call SetTextTagColor( tt, PercentTo255(100), PercentTo255(100), PercentTo255(100), PercentTo255(70))
call TriggerSleepAction( 0.25 )
call SetTextTagColor( tt, PercentTo255(100), PercentTo255(100), PercentTo255(100), PercentTo255(60))
call TriggerSleepAction( 0.25 )
call SetTextTagColor( tt, PercentTo255(100), PercentTo255(100), PercentTo255(100), PercentTo255(50))
call TriggerSleepAction( 0.25 )
call DestroyTextTag(tt)
call RemoveLocation(loc)
set tt = null
set loc = null
endfunction
Name | Type | is_array | initial_value |
AbilityGroup1 | group | Yes | |
AbilityGroup2 | group | Yes | |
AllUnitsHasSpawned | boolean | No | false |
AmountOfAttackers | integer | No | 0 |
Builder | unit | Yes | |
ChooseDiffTimer | timer | No | |
Citizen | unitcode | Yes | |
Citizens | integer | Yes | 15 |
Color1 | string | No | |
Color2 | string | No | |
ColorString | string | Yes | |
Defeat | rect | Yes | |
Dialog | dialog | No | |
DialogButton | button | Yes | |
Dummy | unit | Yes | |
EpidemyTimer | timer | No | |
GoldBounty | integer | Yes | 0 |
Green | string | Yes | |
Int | integer | No | 0 |
Level | integer | No | 0 |
LevelMessage | string | Yes | |
LevelName | string | Yes | |
LevelUnit | unitcode | Yes | |
Losers | force | No | |
LosingLevel | integer | Yes | 0 |
LumberBounty | integer | Yes | 0 |
Multiboard | multiboard | No | |
MultiboardPosition | integer | Yes | 0 |
NextWPToPassGroup | group | Yes | |
NoExtraUndead | boolean | No | false |
NumberOfUnits | integer | Yes | 0 |
PlayersChoseDiff | force | No | |
Red | string | Yes | |
SelectionGroup | force | No | |
SellingValue | real | No | 0.60 |
SoonDyingVillagers | group | No | |
Spawn | rect | Yes | |
SpawnLoopA | integer | No | 0 |
SpawnLoopB | integer | No | 0 |
StartGameTimer | timer | No | |
StartGameTimerWindow | timerdialog | No | |
TempAbilityPoint | location | No | |
TempAttackUnit | unit | No | |
TempGroup | group | No | |
TempPoint | location | No | |
TempResources | integer | Yes | 0 |
TempString | string | No | |
TempUnit1 | unit | Yes | |
TempUnit2 | unit | Yes | |
Tower | unitcode | Yes | |
UndeadDamageTimer | timer | No | |
WalkingAttackers | group | No | |
WP1 | rect | Yes | |
WP10 | rect | Yes | |
WP11 | rect | Yes | |
WP12 | rect | Yes | |
WP13 | rect | Yes | |
WP14 | rect | Yes | |
WP15 | rect | Yes | |
WP16 | rect | Yes | |
WP17 | rect | Yes | |
WP18 | rect | Yes | |
WP19 | rect | Yes | |
WP2 | rect | Yes | |
WP3 | rect | Yes | |
WP4 | rect | Yes | |
WP5 | rect | Yes | |
WP6 | rect | Yes | |
WP7 | rect | Yes | |
WP8 | rect | Yes | |
WP9 | rect | Yes |