Den momentanen Stand der Seite seht ihr hier. Dabei handelt es sich um die ReadMe zu meinem Weapon Selection Script für den Ego Shooter America's Army.
Könnt ihr mir auch beim nächsten Schritt helfen? Einige Auswahlmöglichkeiten sollen sich nämlich gegenseitig ausschließen:
- Wenn Slot_0 auf PSO oder Compact Aimpoint gesetzt wird, soll Slot_1 auf Virtual Heatshield gesetzt werden.
- Wenn Slot_1 auf Kobra Reflex gesetzt wird, soll Slot_0 auf AKS74U Ironsight und Slot_4 auf Virtual Heatshield gesetzt werden.
- Wenn Slot_4 auf BS1 Grenade gesetzt wird, soll Slot_1 auf Virtual Heatshield gesetzt werden.
Code:
<script type="text/javascript">
<!--
function change() {
document.getElementsByName("WeaponMods")[0].value="[AGP_Inventory.Weapon_AK74SU_Rifle]"
+"\nCurrentIndex=0"
+"\nSlot_0_(0)="+document.Selection.Slot_0.value
+"\nSlot_1_(0)="+document.Selection.Slot_1.value
+"\nSlot_2_(0)="+document.Selection.Slot_2.value
+"\nSlot_3_(0)="+document.Selection.Slot_3.value
+"\nSlot_4_(0)="+document.Selection.Slot_4.value
+"\nSlot_5_(0)="+document.Selection.Slot_5.value;
}
//-->
</script>
Code:
<textarea name="WeaponMods" rows="8" width="400" style="width:400px;">
[AGP_Inventory.Weapon_AK74SU_Rifle]
CurrentIndex=0
Slot_0_(0)=AGP_Inventory.WeaponMod_AKS74U_Ironsight
Slot_1_(0)=AGP_Inventory.WeaponMod_Virtual_HeatShield
Slot_2_(0)=AGP_Inventory.WeaponMod_Virtual_HeatShield
Slot_3_(0)=AGP_Inventory.WeaponMod_Virtual_HeatShield
Slot_4_(0)=AGP_Inventory.WeaponMod_Virtual_HeatShield
Slot_5_(0)=AGP_Inventory.WeaponMod_Cone_Suppressor
</textarea>
Code:
<form name="Selection">
Top Rail
<select name="Slot_0" width="200" size="1" onChange="change()">
<option value="AGP_Inventory.WeaponMod_AKS74U_Ironsight">AKS74U Ironsight</option>
<option value="AGP_Inventory.WeaponMod_PSO">PSO</option>
<option value="AGP_Inventory.WeaponMod_Compact_AimPoint">Compact Aimpoint</option>
</select><br>
Front Rail
<select name="Slot_1" width="200" size="1" onChange="change()">
<option value="AGP_Inventory.WeaponMod_Virtual_HeatShield">Virtual Heatshield</option>
<option value="AGP_Inventory.WeaponMod_Kobra_Reflex">Kobra Reflex</option>
</select><br>
Left Rail
<select name="Slot_2" width="200" size="1" onChange="change()">
<option value="AGP_Inventory.WeaponMod_Virtual_HeatShield">Virtual Heatshield</option>
</select><br>
Right Rail
<select name="Slot_3" width="200" size="1" onChange="change()">
<option value="AGP_Inventory.WeaponMod_Virtual_HeatShield">Virtual Heatshield</option>
</select><br>
Bottom Rail
<select name="Slot_4" width="200" size="1" onChange="change()">
<option value="AGP_Inventory.WeaponMod_Virtual_HeatShield">Virtual Heatshield</option>
<option value="AGP_Inventory.WeaponMod_BS1_Gren">BS1 Grenade</option>
</select><br>
Barrel
<select name="Slot_5" width="200" size="1" onChange="change()">
<option value="AGP_Inventory.WeaponMod_Cone_Suppressor">None</option>
<option value="AGP_Inventory.WeaponMod_PBS4_Suppressor">PBS4 Suppressor</option>
</select>
Lesezeichen