Quest Development
Posted: Mon Jan 19, 2009 9:50 pm
I ran into a quest the other day which I think will require some more server support. I was thinking of ways this can be done because I'm fairly certain I can implement it, I just wanted to get an opinion first.
The quest is, you have 8 steps given to you right away. You have to plant seeds into 8 plant boxes. The problem is, if I used AddQuestStepSpell, the same spell would update all 8 steps at once. Also, each planter box updates its own corresponding quest step (so you can't click the same planter box 8 times).
I thought of two ways so far:
1) Make it so every time you cast a spell on a spawn, a function from the target's spawn script is called. This would require making another type of quest step that can only be updated via SetStepComplete.
2) If that doesn't sound like a good idea, I could always implement an GetID LUA function to compare which planter box the target is in the cast function of the spell, and update the step by figuring out which planter box was the target of the spell.
Either way, I think we're going to need some kind of "dummy" quest step that can only be updated by SetStepComplete or SetStepQuantityComplete. What do you guys think?
The quest is, you have 8 steps given to you right away. You have to plant seeds into 8 plant boxes. The problem is, if I used AddQuestStepSpell, the same spell would update all 8 steps at once. Also, each planter box updates its own corresponding quest step (so you can't click the same planter box 8 times).
I thought of two ways so far:
1) Make it so every time you cast a spell on a spawn, a function from the target's spawn script is called. This would require making another type of quest step that can only be updated via SetStepComplete.
2) If that doesn't sound like a good idea, I could always implement an GetID LUA function to compare which planter box the target is in the cast function of the spell, and update the step by figuring out which planter box was the target of the spell.
Either way, I think we're going to need some kind of "dummy" quest step that can only be updated by SetStepComplete or SetStepQuantityComplete. What do you guys think?