stabledMounts

Méthode retournant toutes les informations sur les montures se trouvant dans l'étable.

🎮 Méthode

mount:stabledMounts()

📝 Arguments

Nom

Type

Description

💎 Valeur de retour

Type

Description

{ MountClientData }

Liste.

Il faut accéder à un enclos avant d'utiliser cette méthode.

Exemple

function move()
	global:printMessage("-----------------------------------------------")
	global:printMessage("Montures dans l'étable")
	global:printMessage("-----------------------------------------------")
	local stabledMounts = mount:stabledMounts()
	for _, stabledMount in ipairs(stabledMounts) do
		global:printSuccess("id: "..stabledMount.id)
		global:printSuccess("model: "..stabledMount.model)
		global:printSuccess("name: "..stabledMount.name)
		global:printSuccess("sex: "..tostring(stabledMount.sex))
		global:printSuccess("ownerId: "..stabledMount.ownerId)
		global:printSuccess("experience: "..stabledMount.experience)
		global:printSuccess("experienceForLevel: "..stabledMount.experienceForLevel)
		global:printSuccess("experienceForNextLevel: "..stabledMount.experienceForNextLevel)
		global:printSuccess("level: "..stabledMount.level)
		global:printSuccess("isRideable: "..tostring(stabledMount.isRideable))
		global:printSuccess("maxPods: "..stabledMount.maxPods)
		global:printSuccess("isWild: "..tostring(stabledMount.isWild))
		global:printSuccess("stamina: "..stabledMount.stamina)
		global:printSuccess("staminaMax: "..stabledMount.staminaMax)
		global:printSuccess("maturity "..stabledMount.maturity)
		global:printSuccess("maturityForAdult: "..stabledMount.maturityForAdult)
		global:printSuccess("energy: "..stabledMount.energy)
		global:printSuccess("energyMax: "..stabledMount.energyMax)
		global:printSuccess("serenity: "..stabledMount.serenity)
		global:printSuccess("serenityMax: "..stabledMount.serenityMax)
		global:printSuccess("aggressivityMax: "..stabledMount.aggressivityMax)
		global:printSuccess("love: "..stabledMount.love)
		global:printSuccess("loveMax: "..stabledMount.loveMax)
		global:printSuccess("fecondationTime: "..stabledMount.fecondationTime)
		global:printSuccess("isFecondationReady: "..tostring(stabledMount.isFecondationReady))
		global:printSuccess("boostLimiter: "..stabledMount.boostLimiter)
		global:printSuccess("boostMax: "..stabledMount.boostMax)
		global:printSuccess("reproductionCount: "..stabledMount.reproductionCount)
		global:printSuccess("reproductionCountMax: "..stabledMount.reproductionCountMax)
		global:printSuccess("harnessGID: "..stabledMount.harnessGID)
		global:printSuccess("useHarnessColors: "..tostring(stabledMount.useHarnessColors))
		global:printSuccess("Effects :")
		for _,effect in ipairs(stabledMount.effectList) do
			global:printSuccess("        ActionID: "..effect.actionId.." - Value: "..effect.value)
		end
		global:printSuccess("ancestors :")
		for _,ancestor in ipairs(stabledMount.ancestor) do
			global:printSuccess("        "..ancestor)
		end
		global:printSuccess("behaviors :")
		for _,behavior in ipairs(stabledMount.behaviors) do
			global:printSuccess("        "..behavior)
		end
		global:printMessage("-----------------------------------------------")
	end
	global:printMessage("-----------------------------------------------")
end

Dernière mise à jour