07-20-2012, 08:31 AM
Hello everyone.
I have yet another problem.
How would I go about achieving this code. Basically I have two maps. You can go move between them easily. However, when the player finds a certain item (a key) in the second map and takes it back to the first map, a cave-in occurs making it impossible to go back to the second map.
So I guess I need a script area in the first map that checks if the key is in the inventory (or that the quest to find the key is completed), and if it returns true, then the cave-in needs to occur.
I saw this code to check if a quest is completed: "QuestIsCompleted(string& asName);", but I'm not sure how to use it. I'm assuming that the code will go along these lines? "check if quest is completed, if true, make entity cave-in active". Or is that impossible?
Thanks guys.
I have yet another problem.
How would I go about achieving this code. Basically I have two maps. You can go move between them easily. However, when the player finds a certain item (a key) in the second map and takes it back to the first map, a cave-in occurs making it impossible to go back to the second map.
So I guess I need a script area in the first map that checks if the key is in the inventory (or that the quest to find the key is completed), and if it returns true, then the cave-in needs to occur.
I saw this code to check if a quest is completed: "QuestIsCompleted(string& asName);", but I'm not sure how to use it. I'm assuming that the code will go along these lines? "check if quest is completed, if true, make entity cave-in active". Or is that impossible?
Thanks guys.