Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Chest system [GUI] v1.0

Submitted by Situ
This bundle is marked as substandard. It may contain bugs, not perform optimally or otherwise be in violation of the submission rules.
It´s a system to unlock closed chests. It´s based on the gothic 2 chestsystem. You have to unlock the chest by pressing the right/left arrowkey in the right order. I made this for some rpg maps, its only SINGLE player usable.
tar chest
  • Chest tar
    • Ereignisse
      • Spieler - Spieler 1 (Rot) Auswählen a unit
    • Bedingungen
      • (Unit-type of (Triggering unit)) Gleich Truhe
    • Aktionen
      • Set Chests_Chest = (Triggering unit)

Activate
  • Activate
    • Ereignisse
      • Spieler - Spieler 1 (Rot) Drücken the Aufwärtspfeil key
    • Bedingungen
      • (Chests_Chest is selected by Spieler 1 (Rot)) Gleich True
    • Aktionen
      • Set Leak[1] = (Position of Chests_Chest)
      • Set Leak[2] = (Position of Paladin 0006 <gen>)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Distance between Leak[1] and Leak[2]) Kleiner gleich 150.00
          • (Custom value of Chests_Chest) Gleich 0
        • 'THEN'-Aktionen
          • Set Chests_Counter = 1
          • Set Leak[3] = (Leak[1] offset by 125.00 towards (Facing of Chests_Chest) degrees)
          • Einheit - Move Paladin 0006 <gen> instantly to Leak[3]
          • Einheit - Make Paladin 0006 <gen> face Chests_Chest over 0.00 seconds
          • -------- important: your chests have to be exactly the angles 0,90,180 or 270 --------
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • (Facing of Chests_Chest) Gleich 0.00
            • 'THEN'-Aktionen
              • Kamera - Übernehmen Chestcam180 <gen> for Spieler 1 (Rot) over 1.00 seconds
            • 'ELSE'-Aktionen
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • 'IF'-Bedingungen
                  • (Facing of Chests_Chest) Gleich 90.00
                • 'THEN'-Aktionen
                  • Kamera - Übernehmen Chestcam270 <gen> for Spieler 1 (Rot) over 1.00 seconds
                • 'ELSE'-Aktionen
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • 'IF'-Bedingungen
                      • (Facing of Chests_Chest) Gleich 180.00
                    • 'THEN'-Aktionen
                      • Kamera - Übernehmen Chestcam0 <gen> for Spieler 1 (Rot) over 1.00 seconds
                    • 'ELSE'-Aktionen
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • 'IF'-Bedingungen
                          • (Facing of Chests_Chest) Gleich 270.00
                        • 'THEN'-Aktionen
                          • Kamera - Übernehmen Chestcam90 <gen> for Spieler 1 (Rot) over 1.00 seconds
                        • 'ELSE'-Aktionen
          • Kamera - Lock camera target for Spieler 1 (Rot) to Chests_Chest, offset by (0.00, 0.00) using Vorgabe-Drehung
          • Einheit - Pause ein Paladin 0006 <gen>
          • Custom script: call RemoveLocation (udg_Leak[1])
          • Custom script: call RemoveLocation (udg_Leak[2])
          • Auslöser - Turn on Leave <gen>
          • Auslöser - Turn on Left <gen>
          • Auslöser - Turn on Right <gen>
          • Auslöser - Turn off Chest tar <gen>
          • Auslöser - Turn off (This trigger)
        • 'ELSE'-Aktionen
          • Spiel - Display to Spielergruppe - Spieler 1 (Rot) the text: chest is to far

Open
  • Open
    • Ereignisse
    • Bedingungen
    • Aktionen
      • Spiel - Display to (All players) the text: unlock chest!
      • Set Leak[1] = (Position of Chests_Chest)
      • Spezialeffekt - Create a special effect at Leak[1] using UI\Feedback\GoldCredit\GoldCredit.mdl
      • Sound - Play Open <gen>
      • Custom script: call RemoveLocation (udg_Leak[1])
      • Animation - Play Chests_Chest's morph animation
      • Held - Create Klauen des Angriffs +15 and give it to Paladin 0006 <gen>
      • Auslöser - Run Leave <gen> (checking conditions)

Left
  • Left
    • Ereignisse
      • Spieler - Spieler 1 (Rot) Drücken the Linkspfeil key
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Level of Chests_Spell[Chests_Counter] for Chests_Chest) Gleich 2
        • 'THEN'-Aktionen
          • Set Chests_Counter = (Chests_Counter + 1)
          • Spiel - Display to (All players) the text: good..
          • Sound - Play Hit <gen>
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • (Level of Chests_Spell[Chests_Counter] for Chests_Chest) Gleich 1
            • 'THEN'-Aktionen
              • Einheit - Set the custom value of Chests_Chest to 1
              • Auslöser - Run Open <gen> (ignoring conditions)
            • 'ELSE'-Aktionen
        • 'ELSE'-Aktionen
          • Set Chests_Counter = 1
          • Spiel - Display to (All players) the text: fail, start again..
          • Sound - Play Hitfail <gen>

Right
  • Right
    • Ereignisse
      • Spieler - Spieler 1 (Rot) Drücken the Rechtspfeil key
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Level of Chests_Spell[Chests_Counter] for Chests_Chest) Gleich 3
        • 'THEN'-Aktionen
          • Set Chests_Counter = (Chests_Counter + 1)
          • Spiel - Display to (All players) the text: good..
          • Sound - Play Hit <gen>
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • (Level of Chests_Spell[Chests_Counter] for Chests_Chest) Gleich 1
            • 'THEN'-Aktionen
              • Einheit - Set the custom value of Chests_Chest to 1
              • Auslöser - Run Open <gen> (ignoring conditions)
            • 'ELSE'-Aktionen
        • 'ELSE'-Aktionen
          • Set Chests_Counter = 1
          • Spiel - Display to (All players) the text: fail, start again..
          • Sound - Play Hitfail <gen>

Leave
  • Leave
    • Ereignisse
      • Spieler - Spieler 1 (Rot) Drücken the Abwärtspfeil key
    • Bedingungen
    • Aktionen
      • Einheit - Pause aus Paladin 0006 <gen>
      • Kamera - Reset camera for Spieler 1 (Rot) to standard game-view over 1.00 seconds
      • Kamera - Lock camera target for Spieler 1 (Rot) to Paladin 0006 <gen>, offset by (0.00, 0.00) using Vorgabe-Drehung
      • Auslöser - Turn on Activate <gen>
      • Auslöser - Turn on Chest tar <gen>
      • Auslöser - Turn off Right <gen>
      • Auslöser - Turn off Left <gen>
      • Auslöser - Turn off (This trigger)


Keywords:
chest, system, key
Contents

Chest-System (Map)

Reviews
Moderator
12th Dec 2015 IcemanBo: Too long as NeedsFix. Rejected. The system is quite fun, I remember something similar being in Gothic 2. Only supports one player Leaks not cleared and leakes not cleared properly Displays text messages to all...
  1. 12th Dec 2015
    IcemanBo: Too long as NeedsFix. Rejected.

    Maker, Chest System v1.0 10:19, 9th Nov 2011

    The system is quite fun, I remember something similar being in Gothic 2.

    • Only supports one player
    • Leaks not cleared and leakes not cleared properly
    • Displays text messages to all players when they should be displayed for a player
    • Needs a configuration trigger, now the system is limited to pre-set values
    • Uses custom values. Use a hashtable or some indexing system.

      However now you can try again and again with no cost until you succeed. Make it require lockpicks for example.
     
  2. xIceShotx

    xIceShotx

    Joined:
    Aug 31, 2011
    Messages:
    115
    Resources:
    1
    Spells:
    1
    Resources:
    1
    post triggers please
     
  3. Situ

    Situ

    Joined:
    Feb 6, 2010
    Messages:
    168
    Resources:
    7
    Skins:
    5
    Template:
    2
    Resources:
    7
    triggers added :wink:
     
  4. Kauss

    Kauss

    Joined:
    Nov 4, 2011
    Messages:
    29
    Resources:
    0
    Resources:
    0
    - Very unique system (i had never seen before)
    - Each chest has different codes to get it unlocked
    - Some triggers are not in English
     
  5. Magtheridon96

    Magtheridon96

    Joined:
    Dec 12, 2008
    Messages:
    6,003
    Resources:
    26
    Maps:
    1
    Spells:
    8
    Tutorials:
    7
    JASS:
    10
    Resources:
    26
    - Not configurable (Players can't create their own codes easily)
    - Uses Custom values (Use hashtables instead)
    - Map-specific (Only works inside the testmap)

    [highlight]Unacceptable[/highlight] in its current state.

    edit
    I really hope you can improve this system, it's quite fun :D
     
    Last edited: Nov 9, 2011
  6. xIceShotx

    xIceShotx

    Joined:
    Aug 31, 2011
    Messages:
    115
    Resources:
    1
    Spells:
    1
    Resources:
    1
    It's kind of hard to really see bugs and stuff, because its in spanish i think
     
  7. Magtheridon96

    Magtheridon96

    Joined:
    Dec 12, 2008
    Messages:
    6,003
    Resources:
    26
    Maps:
    1
    Spells:
    8
    Tutorials:
    7
    JASS:
    10
    Resources:
    26
    Nope, it's german.
     
  8. xIceShotx

    xIceShotx

    Joined:
    Aug 31, 2011
    Messages:
    115
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Lol, i found out google translate would be the best to translate it :p, although it doesnt get Everything right, it is still understandable.