Jump to content
×
×
  • Create New...
  • 0

Function Porblem


Esquire

Question

hi i try to do align system for Man and Woman, Exygo give that function but he don't work.

def GetAlignmentTitleName(alignment):
	import chr 
	import player

	sex = chr.RaceToSex(player.GetRace())

	if alignment >= 12000:
		if sex == 1:
			return TITLE_NAME_LIST[0]
		else:
			return TITLE_NAME_LIST[10]

what is the problem with this function pls help...

Link to comment
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

2 answers to this question

Recommended Posts

  • 0

No one can say what is wrong with this function.
Matter how it is used.

 

This topic should be deleted because you have not given enough information.

 

def GetAlignmentTitleName(alignment):
	import chr 
	import player

	race	= player.GetRace()
	sex	= chr.RaceToSex(race)
	align	= player.GetAlignmentData()

	if align >= 12000:
		if sex == 1:
			# Do stuff
		else:
			# Do stuff

 

 

USE YOU BRAIN WHEN YOU POST A QUESTION. And who is that exygo ? 

Link to comment

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


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.