| 07-05-2002, 08:15 AM | #1 |
Guest | how do you set values for quest and quest requirement variables? so i dont have to use "most recently created quest/requirement", etc... sorry its just frustrating me...maybe i'm going about it the wrong way |
| 07-05-2002, 09:04 AM | #2 |
Well your not too far away from the topic, infact ill help you! First of all, make a quest variable type, then whenever you create a quest, do actions Set - (questvariable) (Last created quest) so now you have your own quest that has the name with the quest type variable that you created. Let me explain further and give examples... EXAMPLE: First of all go to the variables panel (trigger section->edit->variables) add a variable that has the name "GoNorth" and its type to Quest. Note: This is just an example name, you can freely make a name. Events: Map Initialization Actions: Quest - Create an optional Quest entitled "Go North" Set - GoNorthQuest = (Last created quest) In this situation the variable GoNorthQuest is set from the last created quest from above. Then for the QuestComplete Condition. Events: Unit enters <region> Action: Quest - Mark "GoNorthQuest" as completed. As you can see the variable can be actually used, so you dont have to use tons of (Last created quest) functions. Note: You can freely make a different event, this is just an example. And I love to help n00bs so bring yer problems here at the forums. |
| 07-05-2002, 09:39 PM | #3 |
Guest | "Set - GoNorthQuest = (Last created quest)" thats exactly what i needed to know, thanks (i kept trying to set the variables value within the variable editor, and quest (missions) variable types cant be assigned through there. thanks again. |
