- function pokemonreturn takes integer playerslot, integer pkcondition returns nothing
-
-
-
- set udg_TempInt3 = playernumberid( udg_Playerhero[ playerslot ] )
- call DisplayTextToForce( GetPlayersAll(), ( "TempInt3 is " + I2S( udg_TempInt3 )) )
- if(( udg_Playerhero[ playerslot ] == udg_PokemonTrainer[ playerslot ] ) and ( pkcondition != 1 )) then
- call DisplayTextToForce( GetPlayersAll(), "Map error 8" )
- endif
- if(( udg_ReturnPreventerCondition[ playerslot ] == false ) or ( pkcondition == 1 ) ) then
- if( udg_Playerhero[ playerslot ] == udg_PokemonTeam[ udg_Activepokemon[ playerslot ]] ) then
-
- if( udg_HP[ AIslot( playerslot ) ] != 0 ) then
- call UnitRemoveAbilityBJ( 'A01R', udg_Playerhero[ playerslot ] )
- endif
- set udg_TempRect = playeritemrects( playerslot )
- set udg_TempX = GetRectCenterX( udg_TempRect )
- set udg_TempY = GetRectCenterY( udg_TempRect )
- call SetUnitX( udg_Playerhero[ playerslot ], udg_TempX )
- call SetUnitY( udg_Playerhero[ playerslot ], udg_TempY )
- set udg_NoPokemon[ playerslot ] = true
- set udg_NoPokemonInt[ playerslot ] = 10
-
- call SetTextTagPosUnitBJ( udg_NoPokemonText[ playerslot ], udg_Playerhero[ playerslot ], 0 )
- call SetTextTagTextBJ ( udg_NoPokemonText[ playerslot ], I2S( udg_NoPokemonInt[ playerslot ] ), 10 )
- call ShowTextTagForceBJ ( true, udg_NoPokemonText[ playerslot ], GetPlayersAll() )
-
-
-
-
select language
-
select style
goto line: