Returns information about an ability required for purchasing a trainer service
See also Trainer functions.
Signature:
ability,
hasReq
=
GetTrainerServiceAbilityReq(index,
abilityIndex)
Arguments:
index
- Index of an entry in the trainer service listing (between 1 andGetNumTrainerServices()
) (number
)abilityIndex
- Index of one of the service's ability requirements (between 1 andGetTrainerServiceNumAbilityReq(index)
) (number
)
Returns:
ability
- Name of the required ability (string
)hasReq
- 1 if the player has the required ability; otherwise nil (1nil
)