Jump to content

Python - Ajouter l'ID des compétences dans la description


Recommended Posts

  • Administrateur

Hey,

 

Ce tutoriel vous permet d'afficher pour vos personnages GM, les ID des compétences dans la description. A l'exemple du tutoriel : Ajouter l'ID des items dans la description.

 

Révélation

250549fuckxayah.png

 

Fichier : UiToolTIP.py (root)

Chercher :

	def __SetSkillTitle(self, skillIndex, skillGrade):
		self.SetTitle(skill.GetSkillName(skillIndex, skillGrade))
		self.__AppendSkillGradeName(skillIndex, skillGrade)

Remplacer :

	def __SetSkillTitle(self, skillIndex, skillGrade):
		if chr.IsGameMaster(player.GetMainCharacterIndex()):
			self.AppendTextLine("[ Skill VNum : %d ]" % skillIndex, self.NORMAL_COLOR)
			self.AppendSpace(5)
		self.SetTitle(skill.GetSkillName(skillIndex, skillGrade))
		self.__AppendSkillGradeName(skillIndex, skillGrade)

 

Cordialement,

ASIKOO

  • Like 3
  • Je te vois... 1

logo.png

 

miaw-network.png
 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.