Quest Start help

Started by ncw14, Thu 20/12/2007 00:22:07

Previous topic - Next topic

ncw14

I have 2 quests, a reward for quest one is
inventory item number 8, the devils weapon
i want you to have to have that weapon in order to start next quest how would i script that in

second quest starts at room 16

Creator

Try this:
Code: ags

if (player.ActiveInventory == iDw) { //iDw is the script name for "Devil's Weapon"
  player.ChangeRoom(16);
}


That should work to start the second quest.

Ashen

That'd move the player to Room 16 when they make the Devil's Weapon their active Item (and without some modificaton, EVER TIME they make it active), not allow them to start the quest only if they have it in their Inventory.
ncw14, you could try reading the BFAQ: Checking if player has a certain Inventory Item.
So, wherever they pick the quest up from (talking to an NPC, etc):
Code: ags

if (player.InventoryQuantity[iDw.ID] == 0) {
   Display("You can't start this quest without the Devil's Weapon.");
}
else {
  // Player has DW, so start quest.
}


I hate to have three locked threads of yours on the run, in such a short time, but this really does seem to deserve it. Are you even trying to look things up in the manual/BFAQ/forums first?
I know what you're thinking ... Don't think that.

Creator

Oops. Sorry. InventoryQuantity is what I meant. I always get those two mixed up. Sorry if I confused you there ncw14.

SMF spam blocked by CleanTalk