NPC Codes

01/25/2012 00:04 warzie005#1
Is this right?

Code:
def npc(Client, Option):
    if(Option == 0):
        Text("What? A group of Cattle Thieves Stole the Saddles of the cavalry! Without the")
		Text(" Saddles, they won't be able to hold any drills. If you can help get the saddles")
		Text(" from the Cattle Thieves, I might give you a Steed as reward!")
        Link("Here is the saddle.", 1)
		Link("Where are the thieves?", 255)
        Finish()
    if(Option == 1):
        Text("Thanks for bringing it back! Please choose from one of these steeds!")
		Link("Black Steed.", 255)
		Finish()
    return 0
Or do I need to do it differntly?
01/25/2012 00:08 pro4never#2
I assume this is for albetros (you don't say) and for external python scripts (again you don't say anything to help us help you)

The only issue I see is your indenting...

You have text and links indented half the time but not the other times...

Python is picky about that. Make them line up and it should work.
01/25/2012 14:08 warzie005#3
Thanks!

It is now fully working. I used the Python to test the commands and then copied into the .npc file. Thanks!!