Kes explained it quite well, you are just not understanding the link with the numbers and the quest objectives.
Look at this quest as shown by Kes...
Code:
when 9
q[:name] = " Q #8 The Defrauded Armorer"
q[:icon_index] = 0
q[:level] = 0
q[:description] = "The armorer wants his life's savings back."
q[:objectives][0] = "Confront the cheater at Fallmont Manor."
q[:objectives][1] = "Find the money."
q[:objectives][2] = "Return the money to the armorer."
q[:prime_objectives] = [0,1,2]
q[:client] = "The Armorer"
q[:location] = "Dorgate"
q[:rewards] = [
[:gold, 300],
[:item, 181, 1],
]
when 9
q[objectives][0]
The bolded text is the first objective, and you would use...
reveal_objective(9, 0)
That is quest 9, objective 0.
When that objective is achieved, you want to mark it as completed and show the next stage, so the script call is:
complete_objective(9, 0)
You can then show the next objective...
reveal_objective(9, 1)
- or you could have started with reveal_objective(9, 0, 1, 2); this will show all the objectives for quest 9.
When that last one is achieved, the script call is
complete_objective(9, 2)
SO, if you have only 1 objective then you only reveal 1 objective (0), if you have 8 objectives then you would have to (to complete it) reveal 8 objectives (0, 1, 2, 3, 4, 5, 6, 7). Hense you would only complete as many objectives and you made in your quest.
So you could have
Code:
q[:objectives][0] = "blah blah"
or
Code:
q[:objectives][0] = "blah blah"
q[:objectives][1] = "blah blah"
q[:objectives][2] = "blah blah"
q[:objectives][3] = "blah blah"
q[:objectives][4] = "blah blah"
q[:objectives][5] = "blah blah"
q[:objectives][6] = "blah blah"