Aerisetta
Active member
Hi
Recently i learned about setglobavariable and I started to think about how I can incorporate some RPG style quest and dialogue in the game, however I also learned that globalvariables is not that ideal because once triggered it seems to stay triggered even if I start a new game, unless I alt-f4 the game.
More specifically, I wanted to create scenarios like this:
player talks to NPC, NPC says "go kill 10 boars"
If player plays the game normally, after killing 10 boars over 3 stages, the player returns to the NPC
player talks to NPC, the NPC says "thanks for killing 10 boars". Player gains +1000 score (or exp)
1. How do I keep count of the boars being killed? or any objective being done?
2. How to get the NPC to check the number of boars killed
3. How do I keep this information stored, but not permanently stored globally like in setglobalvariable?
Recently i learned about setglobavariable and I started to think about how I can incorporate some RPG style quest and dialogue in the game, however I also learned that globalvariables is not that ideal because once triggered it seems to stay triggered even if I start a new game, unless I alt-f4 the game.
More specifically, I wanted to create scenarios like this:
player talks to NPC, NPC says "go kill 10 boars"
If player plays the game normally, after killing 10 boars over 3 stages, the player returns to the NPC
player talks to NPC, the NPC says "thanks for killing 10 boars". Player gains +1000 score (or exp)
1. How do I keep count of the boars being killed? or any objective being done?
2. How to get the NPC to check the number of boars killed
3. How do I keep this information stored, but not permanently stored globally like in setglobalvariable?