Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Scriptname aaaHalfDragonUnlockScript extends Quest
  2.  
  3. Quest Property aaaHalfDragonUnlock Auto
  4.  
  5. GlobalVariable Property aaaHalfDragonQuestPointsGathered Auto
  6.  
  7. Function SomeFunction()
  8. RegisterForTrackedStatsEvent() ; Before we can use OnTrackedStatsEvent we must register.
  9. EndFunction
  10.  
  11. ; -----
  12.  
  13. Event OnTrackedStatsEvent(string asStatFilter, int aiStatValue)
  14. if (asStatFilter == "Dragon Souls Collected")
  15. if (aiStatValue >= 1)
  16. if (aiStatValue < 10)
  17. aaaHalfDragonUnlock.SetObjectivedisplayed(20)
  18. aaaHalfDragonUnlock.SetStage(20)
  19. aaaHalfDragonQuestPointsGathered.SetValue(aiStatValue)
  20. elseif (aiStatValue >= 10)
  21. aaaHalfDragonUnlock.SetObjectivedisplayed(200)
  22. aaaHalfDragonUnlock.SetStage(200)
  23. aaaHalfDragonQuestPointsGathered.SetValue(aiStatValue)
  24. endif
  25. endif
  26. endif
  27. endEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement