Author Topic: Can't use Purple Dragon Knight class as a condition in conversation?  (Read 384 times)

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0


                Lots of problems lately, haha...
anyway, I wanted the condition for text to appear to be PC being a Purple Dragon Knight. I used the original script wizard (well, it sucks really, but sometimes has its uses) to generate the script and tried it, but it didn't work. 

So I checked it and it turns out the script has a compilation error because of Purple Dragon Knight condition. If I changed it to any other class, it would compile just fine. But not for PDK.

Here's the generated script:

Edit: Nevermind, the post just does not allow me to put the script nicely... the line that is the problem is as follows:
if(GetLevelByclass(class_TYPE_PDK, GetPCSpeaker()) >= 1)


Is it a general bug with the toolset, that it doesn't accept PDK as a class, or just another something messed up on my side? ':?' 
Thanks for help.
               
               

               


                     Modifié par Grani, 08 juin 2012 - 11:32 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Can't use Purple Dragon Knight class as a condition in conversation?
« Reply #1 on: June 09, 2012, 12:41:22 am »


               replace _PDK with _PURPLE_DRAGON_KNIGHT
               
               

               
            

Legacy_Grani

  • Hero Member
  • *****
  • Posts: 1040
  • Karma: +0/-0
Can't use Purple Dragon Knight class as a condition in conversation?
« Reply #2 on: June 09, 2012, 12:42:45 am »


               Thanks! Damn this script wizard.