Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gamedayspassed. What's wrong?
06-12-2011, 09:33 PM,
#1
Gamedayspassed. What's wrong?
Hello. I'm having problem with my timer to work. The idea is to set a variable through dialogue "Entertained to 1" and once one day passes it is set to 0 again by quest script.

scriptname MVTawernaPodZmijaRozmowyQuestScript

short Entertained
float BardTimer

Begin Gamemode

if Entertained == 1 ; this is set in dialogue to 1 to mark that PCalready spoke ;with NPC
set BardTimer to GameDaysPassed
endif

if GameDaysPassed > ( BardTimer + 1 )
set Entertained to 0
endif
end


So when Entertained is set to 1 ( by dialogue) you cannot talk about certain topic with NPC unless one day is up and Entertained is set to 0 again. But it doesn't work. Apparently the script doesn't change "Entetained" to 0 because after more than 1 day PC still cannot talk with NPC. Tell me please what am I doing wrong?
Reply


Messages In This Thread
Gamedayspassed. What's wrong? - by MarekVelgar - 06-12-2011, 09:33 PM
[No subject] - by Koniption - 06-12-2011, 11:36 PM
[No subject] - by MarekVelgar - 06-13-2011, 06:48 AM
[No subject] - by Koniption - 06-13-2011, 08:46 PM
[No subject] - by MarekVelgar - 06-14-2011, 10:16 AM
[No subject] - by sandor - 06-14-2011, 11:53 AM
[No subject] - by Koniption - 06-14-2011, 11:10 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)