Jump to content

Same if conditional function returns different values in different quests?


napafo

Recommended Posts

I have a quest script which i made so it check if the player has a certain perk, however it returns false even though i added the perk to the pc. I also made a different quest with two simple functions

 

 

function checkperk1()
if (game.getplayer().hasperk(vampirism))
debug.messagebox("yes")
else
debug.messagebox("no")
endif
EndFunction

function checkperk2()
if (playerref.hasperk(vampirism))
debug.messagebox("yes")
else
debug.messagebox("no")
endif
EndFunction

 

 

They both return yes, but when i call them from the original quest they return no.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...