[General] Multiple quests that don't work. Why? Help!

Status
Not open for further replies.
Level 11
Joined
Nov 25, 2014
Messages
526
I have created quest1, and set quest1 as last created quest. I've completed the whole quest thingy and begin to design a second quest called quest2 and set it as last created quest.

The problem is, when I test them separately, they work. But when I test the game by performing quest2 before quest1, it didn't work.

I've heard that the editor confuses the variable "last created quest" even though I have assigned the variable .

How should I fix this?
 
You'll have to show the triggers involved, and you'll have to explain in further detail how they didn't work. Did it complete quest 1 when it was supposed to complete quest 2?

There isn't a bug with "last created quest". As long as you assign the variables directly after you've created that particular quest (and I assume you have a separate variable for each quest), then it should work just fine. :)
 
Level 11
Joined
Nov 25, 2014
Messages
526
Ok, it's something like this:
For quest1,

Quest - create a required quest...
set quest1 = (last created quest)

Then to complete quest1, a unit must pick up an item. So the trigger follows:

Event
A unit acquires an item

Condition
Quest1 is enabled equal to true
Item type of item being manipulated equal to requireditem

Action
Mark quest1 as completed
Turn off this trigger.

That's for quest1


For quest2, I have to defend a base for 2 minutes, so I skip the event part and go straight to the conditions and actions

Quest - create a required quest...
Set quest2 = (last created quest)

Then to win this quest, I set after 120s,

Conditions
Quest2 is enabled equal to true
Life of protectedunit greater than or equal to 1

Action
Quest - mark quest2 as completed
 
Level 11
Joined
Nov 25, 2014
Messages
526
Can't find any so far. I only found those like how to create quest but I can't find one that teaches you to make a few quests in a single map. I have tried to learn from those tutorials who guide how to create quests. But when I started repeating it to creates a second quests, it fails
 
Status
Not open for further replies.
Top