Advertisement
abitoftaste

test example

Nov 18th, 2024
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. begin R_HouseLab_propertyNote
  2.  
  3. short PCSkipEquip
  4. short state
  5.  
  6. if ( MenuMode )
  7. elseif ( OnActivate )
  8. Activate
  9. set state to 1 ; flag for activated
  10. set PCSkipEquip to 1
  11. endif
  12.  
  13. if ( PCSkipEquip )
  14. else
  15. return
  16. endif
  17. set PCSkipEquip to 0
  18.  
  19. ; your logic below
  20. ; MessageBox "This runs when activating or equipping the book!"
  21.  
  22. if ( state ) ; activated
  23. set state to 0
  24. else ; equipped
  25. if ( R_HouseLab_noteTaken )
  26. else
  27. set R_HouseLab_noteTaken to 1
  28. endif
  29. endif
  30.  
  31. short i1
  32. set i1 to ( GetJournalIndex "R_HouseLab_TheAshpileMatter" )
  33. if ( i1 == 10 )
  34. Journal "R_HouseLab_TheAshpileMatter" 80
  35. elseif ( i1 == 30 )
  36. Journal "R_HouseLab_TheAshpileMatter" 40
  37. elseif ( i1 == 60 )
  38. Journal "R_HouseLab_TheAshpileMatter" 70
  39. else
  40. set i1 to 0
  41. endif
  42.  
  43. if ( i1 )
  44. AddTopic "Legion corpse"
  45. endif
  46.  
  47. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement