瀏覽代碼

Basic code for tracking different instruments and such, and their characteristics.

netuttki 5 月之前
父節點
當前提交
d5672d370a
共有 1 個文件被更改,包括 162 次插入0 次删除
  1. 162 0
      locations/music_equipment.qsrc

+ 162 - 0
locations/music_equipment.qsrc

@@ -0,0 +1,162 @@
+#music_equipment
+
+!!        ml_instrument['code']         Numeric code to find the equipment
+!!        $ml_instrument['type']        Type of the instrument. Currently: acoustic guitar or electric guitar
+!!        $ml_instrument['name']        The name of the instrument (can be used in place of a code)
+!!        $ml_instrument['display']     The name that will be displayed for the instrument in the store or other places.
+!!        $ml_instrument['store_image'] The image that is used in the store - append to the path, e.g. "d:\Software Projects\GLife Development\Builds\glife-master\images\locations\city\citycenter\mall\musicstore\"
+!!        ml_instrument['price']        The price of instrument in rubels
+!!        ml_instrument['quality']      The quality of the instrument. Used as a modifier to the quality of a set or a recording. (treat as a percentage)
+!!        ml_instrument['fingers']      The amount of pain the instrument causes in the fingers. When the pain reaches 40 the player should stop and rest their hand. When it reaches 70 they can not play until the pain goes below 40.
+!!        ml_instrument['hands']        The extra stamina an activity costs when using the instrument.
+
+if $ARGS[0] = 'get_instrument':
+
+    !! Acoustic Guitars
+    if ARGS[1] = 1 or $ARGS[2] = 'jb-budget-acoustic':
+        ml_instrument['code'] = 1
+        $ml_instrument['type'] = 'acoustic guitar'
+        $ml_instrument['name'] = 'jb-budget-acoustic'
+        $ml_instrument['display'] = 'JB Budget Acoustic'
+        $ml_instrument['store_image'] = 'cheap_acoustic_1.jpg'
+        ml_instrument['price'] = 3400
+        ml_instrument['quality'] = 30
+        ml_instrument['fingers'] = 5
+        ml_instrument['hands'] = 16
+    
+    
+    elseif ARGS[1] = 2 or $ARGS[2] = 'martin-hdc-28e':
+        ml_instrument['code'] = 2
+        $ml_instrument['type'] = 'acoustic guitar'
+        $ml_instrument['name'] = 'martin-hdc-28e'
+        $ml_instrument['display'] = 'Martin HDC-28E'
+        $ml_instrument['store_image'] = 'martin-hdc-28e.jpg'
+        $ml_instrument['description'] = 'Bold herringbone, rosewood, ebony and spruce in a Dreadnought for boom, chime, and bark. Versatile and responsive electronics so you can shape your sound anywhere, anytime to sound as good plugged in as you do unplugged. Paired with our most comfortable neck, vintage appointments, scalloped, forward-shifted bracing, and a lifetime warranty—a timeless classic, brand new.'
+        $ml_instrument['youtube_link'] = 'https://www.youtube.com/watch?v=CRFxZ1-AKIM'
+        ml_instrument['price'] = 320000
+        ml_instrument['quality'] = 100
+        ml_instrument['fingers'] = 4
+        ml_instrument['hands'] = 8
+    
+    elseif ARGS[1] = 3 or $ARGS[2] = 'martin-d10e-01':
+        ml_instrument['code'] = 3
+        $ml_instrument['type'] = 'acoustic guitar'
+        $ml_instrument['name'] = 'martin-d10e-01'
+        $ml_instrument['display'] = 'Martin D10E-01'
+        $ml_instrument['store_image'] = 'martin-d10e-01.jpg'
+        $ml_instrument['description'] = 'This solid wood Dreadnought model is a great sounding guitar at an affordable price. New to this model are stunning mother-of-pearl pattern fingerboard and rosette inlays with a multi-stripe rosette border. It has an FSC® Certified Richlite® fingerboard and bridge, satin finish body, and a hand-rubbed neck finish. Also new to this model is the Martin E-1 electronics package with a built-in soundhole tuner so you can tune up any time without using a pedal.'
+        $ml_instrument['youtube_link'] = 'https://www.youtube.com/watch?v=wPWnCLqhGGQ'
+        ml_instrument['price'] = 81990
+        ml_instrument['quality'] = 75
+        ml_instrument['fingers'] = 4
+        ml_instrument['hands'] =10
+
+    elseif ARGS[1] = 4 or $ARGS[2] = 'martin-ed-sheeran':
+        ml_instrument['code'] = 4
+        $ml_instrument['type'] = 'acoustic guitar'
+        $ml_instrument['name'] = 'martin-ed-sheeran'
+        $ml_instrument['display'] = 'Martin Ed Sheeran'
+        $ml_instrument['store_image'] = 'martin-ed-sheeran.jpg'
+        $ml_instrument['description'] = 'The Ed Sheeran X Signature Edition is a new take on the Martin LX1 with a different sound hole and built in microphone.'
+        ml_instrument['price'] = 63900
+        ml_instrument['quality'] = 65
+        ml_instrument['fingers'] = 4
+        ml_instrument['hands'] = 12
+
+    elseif ARGS[1] = 5 or $ARGS[2] = 'martin-lx-1':
+        ml_instrument['code'] = 4
+        $ml_instrument['type'] = 'acoustic guitar'
+        $ml_instrument['name'] = 'martin-lx-1'
+        $ml_instrument['display'] = 'Martin LX-1'
+        $ml_instrument['store_image'] = 'martin-lx-1.jpg'
+        $ml_instrument['description'] = 'This is a well made travel-size guitar, with a great pickup system that only suffers a touch acoustically from having a smaller body.'
+        $ml_instrument['youtube_link'] = 'https://www.youtube.com/watch?v=HthDPiAWgHk'
+        ml_instrument['price'] = 41900
+        ml_instrument['quality'] = 65
+        ml_instrument['fingers'] = 4
+        ml_instrument['hands'] = 12
+
+    !! Electric Guitars
+    elseif ARGS[1] = 6 or $ARGS[2] = 'burny-rlg55-vld':
+        ml_instrument['code'] = 6
+        $ml_instrument['type'] = 'electric guitar'
+        $ml_instrument['name'] = 'burny-rlg55-vld'
+        $ml_instrument['display'] = 'Burny RLG55 VLD'
+        $ml_instrument['store_image'] = 'burny-rlg55-vld.jpg'
+        ml_instrument['price'] = 43990
+        ml_instrument['quality'] = 90
+        ml_instrument['fingers'] = 2
+        ml_instrument['hands'] = 8
+
+    elseif ARGS[1] = 7 or $ARGS[2] = 'epiphone-les-paul-express':
+        ml_instrument['code'] = 7
+        $ml_instrument['type'] = 'electric guitar'
+        $ml_instrument['name'] = 'epiphone-les-paul-express'
+        $ml_instrument['display'] = 'Epiphone Les Paul Express'
+        $ml_instrument['store_image'] = 'epiphone-les-paul-express.jpg'
+        ml_instrument['price'] = 14280
+        ml_instrument['quality'] = 70
+        ml_instrument['fingers'] = 2
+        ml_instrument['hands'] = 8
+
+    elseif ARGS[1] = 8 or $ARGS[2] = 'fender-american-professional-stratocaster':
+        ml_instrument['code'] = 8
+        $ml_instrument['type'] = 'electric guitar'
+        $ml_instrument['name'] = 'fender-american-professional-stratocaster'
+        $ml_instrument['display'] = 'Fender American Professional Stratocaster'
+        $ml_instrument['store_image'] = 'fender-american-professional-stratocaster.jpg'
+        ml_instrument['price'] = 179000
+        ml_instrument['quality'] = 90
+        ml_instrument['fingers'] = 2
+        ml_instrument['hands'] = 6
+
+    elseif ARGS[1] = 9 or $ARGS[2] = 'fender-player-telecaster':
+        ml_instrument['code'] = 9
+        $ml_instrument['type'] = 'electric guitar'
+        $ml_instrument['name'] = 'fender-player-telecaster'
+        $ml_instrument['display'] = 'Fender Player Telecaster'
+        $ml_instrument['store_image'] = 'fender-player-tele.jpg'
+        ml_instrument['price'] = 83000
+        ml_instrument['quality'] = 90
+        ml_instrument['fingers'] = 2
+        ml_instrument['hands'] = 8        
+
+    elseif ARGS[1] = 10 or $ARGS[2] = 'gibson-2019-les-paul':
+        ml_instrument['code'] = 10
+        $ml_instrument['type'] = 'electric guitar'
+        $ml_instrument['name'] = 'gibson-2019-les-paul'
+        $ml_instrument['display'] = 'Gibson 2019 Les Paul'
+        $ml_instrument['store_image'] = 'gibson-2019-les-paul.jpg'
+        ml_instrument['price'] = 241000
+        ml_instrument['quality'] = 90
+        ml_instrument['fingers'] = 2
+        ml_instrument['hands'] = 6
+        
+    elseif ARGS[1] = 11 or $ARGS[2] = 'yamaha-pacifica-012-rm':
+        ml_instrument['code'] = 11
+        $ml_instrument['type'] = 'electric guitar'
+        $ml_instrument['name'] = 'yamaha-pacifica-012-rm'
+        $ml_instrument['display'] = 'Yamaha Pacifica 012 RM'
+        $ml_instrument['store_image'] = 'yamaha-pacifica-012-rm.jpg'
+        ml_instrument['price'] = 17990
+        ml_instrument['quality'] = 65
+        ml_instrument['fingers'] = 2
+        ml_instrument['hands'] = 10
+    end
+
+end
+
+if $ARGS[0] = 'get_instrument_attr': 
+    gs 'music_equipment', 'get_instrument', ARGS[1]
+    if $MID($ARGS[2],1,1) = '$':
+		$RESULT = $ml_instrument[$MID($ARGS[2],2)]
+	else
+		RESULT = ml_instrument[$ARGS[2]]
+	end
+
+	killvar 'ml_instrument' 
+end
+
+
+
+--- music_equipment ---------------------------------