Ico // every shader request beginning with "Ico/" will use this shader
{
{
NoMipMap
map Menu/Art/Ico/Toto NoLoad // Toto will be replaced by the name of the request
rgbGen Entity
alphaGen Entity
blendFunc blend
AddressMode Border 0x00000000
}
}
def $s1 StatTeam1Set1
def $s2 StatTeam2Set1
item FuncGetNbWinnerSet
{
OnAction
{
SetCfg $s1 $StatTeam1Set$1
SetCfg $s2 $StatTeam2Set$1
}
OnActionIf /$s1/Score /$s2/Score 999999
{
MulAddMulCfg /Intern/NbSetTeam1 1 1
}
OnActionIf /$s2/Score /$s1/Score 999999
{
MulAddMulCfg /Intern/NbSetTeam2 1 1
}
Invisible
}
item
{
OnEnter
OnAction
{
SetCfg /Intern/NbSetTeam1 0
SetCfg /Intern/NbSetTeam2 0
}
Invisible
}
// Computation of the number of winning sets
def Num 1
LoopMacro 5
item
{
OnEnter
OnActionIf /Intern/CurrentSet Num+1 /Intern/NbSet
{
Function FuncGetNbWinnerSet Num
}
add Num 1
Invisible
}
LoopEnd
Return to Modding - TE2013 [Fr]
Users browsing this forum: CCBot [Bot] and 1 guest