Aller au contenu

Photo

Can't use Purple Dragon Knight class as a condition in conversation?


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Grani

Grani
  • Members
  • 558 messages
 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 .


#2
Shadooow

Shadooow
  • Members
  • 4 471 messages
replace _PDK with _PURPLE_DRAGON_KNIGHT

#3
Grani

Grani
  • Members
  • 558 messages
Thanks! Damn this script wizard.