inventoryMounts
Méthode retournant toutes les informations sur les montures présents dans l'inventaire.
🎮 Méthode
mount:inventoryMounts()
📝 Arguments
Nom
Type
Description
💎 Valeur de retour
Type
Description
Liste.
Liste.
Exemple
function move()
global:printMessage("-----------------------------------------------")
global:printMessage("Montures dans l'inventaire")
global:printMessage("-----------------------------------------------")
local inventoryMounts = mount:inventoryMounts()
for _,inventoryMount in ipairs(inventoryMounts) do
global:printSuccess("ID "..inventoryMount.id)
global:printSuccess("Expiration Date "..inventoryMount.expirationDate)
global:printSuccess("Inventory GID "..inventoryMount.gid)
global:printSuccess("Inventory UID "..inventoryMount.uid)
global:printSuccess("....................................")
global:printSuccess("id: "..inventoryMount.mount.id)
global:printSuccess("model: "..inventoryMount.mount.model)
global:printSuccess("name: "..inventoryMount.mount.name)
global:printSuccess("sex: "..tostring(inventoryMount.mount.sex))
global:printSuccess("ownerId: "..inventoryMount.mount.ownerId)
global:printSuccess("experience: "..inventoryMount.mount.experience)
global:printSuccess("experienceForLevel: "..inventoryMount.mount.experienceForLevel)
global:printSuccess("experienceForNextLevel: "..inventoryMount.mount.experienceForNextLevel)
global:printSuccess("level: "..inventoryMount.mount.level)
global:printSuccess("isRideable: "..tostring(inventoryMount.mount.isRideable))
global:printSuccess("maxPods: "..inventoryMount.mount.maxPods)
global:printSuccess("isWild: "..tostring(inventoryMount.mount.isWild))
global:printSuccess("stamina: "..inventoryMount.mount.stamina)
global:printSuccess("staminaMax: "..inventoryMount.mount.staminaMax)
global:printSuccess("maturity "..inventoryMount.mount.maturity)
global:printSuccess("maturityForAdult: "..inventoryMount.mount.maturityForAdult)
global:printSuccess("energy: "..inventoryMount.mount.energy)
global:printSuccess("energyMax: "..inventoryMount.mount.energyMax)
global:printSuccess("serenity: "..inventoryMount.mount.serenity)
global:printSuccess("serenityMax: "..inventoryMount.mount.serenityMax)
global:printSuccess("aggressivityMax: "..inventoryMount.mount.aggressivityMax)
global:printSuccess("love: "..inventoryMount.mount.love)
global:printSuccess("loveMax: "..inventoryMount.mount.loveMax)
global:printSuccess("fecondationTime: "..inventoryMount.mount.fecondationTime)
global:printSuccess("isFecondationReady: "..tostring(inventoryMount.mount.isFecondationReady))
global:printSuccess("boostLimiter: "..inventoryMount.mount.boostLimiter)
global:printSuccess("boostMax: "..inventoryMount.mount.boostMax)
global:printSuccess("reproductionCount: "..inventoryMount.mount.reproductionCount)
global:printSuccess("reproductionCountMax: "..inventoryMount.mount.reproductionCountMax)
global:printSuccess("harnessGID: "..inventoryMount.mount.harnessGID)
global:printSuccess("useHarnessColors: "..tostring(inventoryMount.mount.useHarnessColors))
global:printSuccess("Effects :")
for _,effect in ipairs(inventoryMount.mount.effectList) do
global:printSuccess(" ActionID: "..effect.actionId.." - Value: "..effect.value)
end
global:printSuccess("ancestors :")
for _,ancestor in ipairs(inventoryMount.mount.ancestor) do
global:printSuccess(" "..ancestor)
end
global:printSuccess("behaviors :")
for _,behavior in ipairs(inventoryMount.mount.behaviors) do
global:printSuccess(" "..behavior)
end
global:printMessage("-----------------------------------------------")
end
global:printMessage("-----------------------------------------------")
end
Dernière mise à jour