• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Chest system [GUI] v1.0

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
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.
  • 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
    • 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
    • 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
    • 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
    • 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
    • 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
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...

Moderator

M

Moderator

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.
 
Level 2
Joined
Nov 4, 2011
Messages
28
- Very unique system (i had never seen before)
- Each chest has different codes to get it unlocked
- Some triggers are not in English
 
Top