| 07-04-2004, 04:40 PM | #1 |
These are the last two triggers in this quest, and they don't work. Code:
StarKeyReq3
Events
Unit - A unit Loses an item
Conditions
((Owner of (Triggering unit)) is in Heros) Equal to True
(StarKeyQst is discovered) Equal to True
(Item-type of (Item being manipulated)) Equal to DemonStar
Actions
Trigger - Turn on StarKeyEnd <gen>
Wait 0.00 seconds
If (((Item being manipulated) is in Item <gen>) Equal to True) then do (Set Key1 = True) else do (Do nothing)
If (((Item being manipulated) is in Item Copy <gen>) Equal to True) then do (Set Key2 = True) else do (Do nothing)
Wait 0.00 seconds
If ((Key1 Equal to True) and (Key2 Equal to True)) then do (Trigger - Turn off (This trigger)) else do (Do nothing)And this one is off initially. Code:
StarKeyEnd
Events
Time - Every 2.00 seconds of game time
Conditions
Key1 Equal to True
Key2 Equal to True
Actions
Quest - Mark StarKeyReq3 as Completed
Quest - Display to (All players) the Quest Completed message: |cffffcc00QUEST COM...
Quest - Mark StarKeyQst as Completed
Special Effect - Create a special effect at (Center of SFX12 <gen>) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at (Center of SFX13 <gen>) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
Special Effect - Destroy (Last created special effect)
Special Effect - Create a special effect at (Center of SFX14 <gen>) using Abilities\Spells\Undead\AnimateDead\AnimateDeadTarget.mdl
Special Effect - Destroy (Last created special effect)
Destructible - Make Dungeon Gate (Horizontal) 1240 <gen> Vulnerable
Destructible - Kill Dungeon Gate (Horizontal) 1240 <gen>
Trigger - Turn off (This trigger)But, when I test it in-game, nothing happens. |
| 07-04-2004, 05:10 PM | #2 |
Probably because for both Key 1 and Two has to be True for the second trigger to turn on. And for theese two to be true, you'll have to pick up the same item in two different areas, Item and Item Copy. Other than that, there seems to be no problem whatsoever. |
| 07-04-2004, 05:53 PM | #3 |
No, that's not it, because only both variables must be true, that doesn't mean that the item is in both regions at the time, it only had to be there once so that the variable was set to true. Why do you have those wait commands? If any triggers run in between, then it is possible that they overwrite "item being manipulated". I'm not sure on this, some event responses work throughout the trigger, while others are global and can be changed by other triggers while your trigger still runs. I don't know what kind is the "item being manipulated". Maybe you should try inserting some debug messages that at different points in your triggers display the status of some variables with the "game - text message" action. That will help you pin point the exact problem. |
