• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

help for triggering (jass/GUI)

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
You really need to decribe your problem more clearly. You could do something like this:

  • Untitled Trigger 019
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(smart))
      • (Target unit of issued order) Equal to Death Knight 0045 <gen>
    • Actions
      • Set Temp_Loc_1 = (Position of (Triggerin unit))
      • Set Temp_Loc_2 = (Position of (Target unit of issued order))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Distance between Temp_Loc_1 and Temp_Loc_2) Less than 600.00
        • Then - Actions
          • Game - Display to (All players) the text: OK
        • Else - Actions
      • Custom script: call RemoveLocation(udg_Temp_Loc_1)
      • Custom script: call RemoveLocation(udg_Temp_Loc_2)
If you have a unit selected, you right click on some other unit and the units are close enough to eachother, then it displays that text. Replace that desplay trigger with "Trgger - run"...

  • Quest Create
    • Events
    • Conditions
    • Actions
      • Quest - Create a Required quest titled Main Quest with the description This is a main ques..., using icon path ReplaceableTextures\CommandButtons\BTNAmbush.blp
      • Quest - Enable (Last created quest)
      • Quest - Create a quest requirement for (Last created quest) with the description Don't die
      • Quest - Create a defeat condition with the description If you die, you los...
      • Quest - Mark (Last created quest) as Undiscovered
Run this trigger to create a quest.

  • Quest Discover
    • Events
    • Conditions
    • Actions
      • Quest - Mark (Last created quest) as Discovered
      • Quest - Display to (All players) the Quest Discovered message: Main Quest - Do so...
      • Quest - Flash the quest dialog button
Run this trigger to discover a quest.

Complete quest trigger should be easy to create.
 
Status
Not open for further replies.
Top