paddockedMounts

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

🎮 Méthode

mount:paddockedMounts()

📝 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'enclos")
	global:printMessage("-----------------------------------------------")
	local paddockedMounts = mount:paddockedMounts()
	for _, paddockedMount in ipairs(paddockedMounts) do
		global:printSuccess("id: "..paddockedMount.id)
		global:printSuccess("model: "..paddockedMount.model)
		global:printSuccess("name: "..paddockedMount.name)
		global:printSuccess("sex: "..tostring(paddockedMount.sex))
		global:printSuccess("ownerId: "..paddockedMount.ownerId)
		global:printSuccess("experience: "..paddockedMount.experience)
		global:printSuccess("experienceForLevel: "..paddockedMount.experienceForLevel)
		global:printSuccess("experienceForNextLevel: "..paddockedMount.experienceForNextLevel)
		global:printSuccess("level: "..paddockedMount.level)
		global:printSuccess("isRideable: "..tostring(paddockedMount.isRideable))
		global:printSuccess("maxPods: "..paddockedMount.maxPods)
		global:printSuccess("isWild: "..tostring(paddockedMount.isWild))
		global:printSuccess("stamina: "..paddockedMount.stamina)
		global:printSuccess("staminaMax: "..paddockedMount.staminaMax)
		global:printSuccess("maturity "..paddockedMount.maturity)
		global:printSuccess("maturityForAdult: "..paddockedMount.maturityForAdult)
		global:printSuccess("energy: "..paddockedMount.energy)
		global:printSuccess("energyMax: "..paddockedMount.energyMax)
		global:printSuccess("serenity: "..paddockedMount.serenity)
		global:printSuccess("serenityMax: "..paddockedMount.serenityMax)
		global:printSuccess("aggressivityMax: "..paddockedMount.aggressivityMax)
		global:printSuccess("love: "..paddockedMount.love)
		global:printSuccess("loveMax: "..paddockedMount.loveMax)
		global:printSuccess("fecondationTime: "..paddockedMount.fecondationTime)
		global:printSuccess("isFecondationReady: "..tostring(paddockedMount.isFecondationReady))
		global:printSuccess("boostLimiter: "..paddockedMount.boostLimiter)
		global:printSuccess("boostMax: "..paddockedMount.boostMax)
		global:printSuccess("reproductionCount: "..paddockedMount.reproductionCount)
		global:printSuccess("reproductionCountMax: "..paddockedMount.reproductionCountMax)
		global:printSuccess("harnessGID: "..paddockedMount.harnessGID)
		global:printSuccess("useHarnessColors: "..tostring(paddockedMount.useHarnessColors))
		global:printSuccess("Effects :")
		for _,effect in ipairs(paddockedMount.effectList) do
			global:printSuccess("        ActionID: "..effect.actionId.." - Value: "..effect.value)
		end
		global:printSuccess("ancestors :")
		for _,ancestor in ipairs(paddockedMount.ancestor) do
			global:printSuccess("        "..ancestor)
		end
		global:printSuccess("behaviors :")
		for _,behavior in ipairs(paddockedMount.behaviors) do
			global:printSuccess("        "..behavior)
		end
		global:printMessage("-----------------------------------------------")
	end
	global:printMessage("-----------------------------------------------")
end

Dernière mise à jour