Skip to content

Commit

Permalink
weapon_variants.lua : removed copy/pasted documentation header
Browse files Browse the repository at this point in the history
  • Loading branch information
X3N0-Life-Form authored Oct 23, 2019
1 parent 00510a2 commit b842409
Showing 1 changed file with 1 addition and 71 deletions.
72 changes: 1 addition & 71 deletions core/data/scripts/weapon_variants.lua
Original file line number Diff line number Diff line change
@@ -1,75 +1,5 @@
-- do a weapon_variant.tbl
-- and adapt the variant script
--[[
---------------------------------
-- ship variant manager script --
---------------------------------
In order to work, this script needs:
- a descriptor table file in data/config
- a lua table parser
- the global variable variantFileName needs to point to this file, eg. "data/config/ship_variants.tbl"
- call the setWeaponVariant() function via scrip-eval, with the name of the ship you want to alter and the name of the variant of the appropriate class as the function's argument.
For instance "setWeaponVariant(Colly, bunny)" means you want Colly to be of the "bunny" variant.
Descriptor table logic:
- Variants are classified by ship category, which starts with '#'
- Each variant starts with '$Name:', follow by attributes that start with "$"
- These may be followed by sub attributes, who themselves start with "+"
Descriptor table sample:
#SC Rakshasa
$Name: Lance Assault Cruiser
$ai class: Big
$subsystem armor: Hell Armor
$hull armor: Shivan Destroyer Armor
$hull: 80k ;; hull values can be defined using orders of magnitude, eg. 80k = 80,000; 80M = 80,000,000 & 80G = 80,000,000
$turret01:Shivan Multi Turret Up
+Rof:200
$turret02:Shivan Huge Lance
$turret03:Shivan Huge Lance
$turret04:Shivan Multi Turret Up
+Rof:200
$turret05:Shivan Multi Turret Up
$turret06:Shivan Multi Turret Up
$turret07:Shivan Lance
$turret08:Shivan Lance
$turret09:Shivan Lance
$turret10:Shivan Lance
$turret11:Shivan Multi Turret Up
$turret12:Shivan Multi Turret Up
$turret13:Shivan Multi Turret Up
$turret14:Shivan Multi Turret Up
#End
Valid attributes:
hull : special hit points (note: accepts order of magnitude multipliers, eg. 1M = 1000k = 1000000)
armor : hull armor type
turret armor : ship-wide turret armor type
subsystem armor : ship-wide subsystem armor type
texture:name=replacement : doesn't work
team color : change team color
ai class : change ai class
Valid sub-attributes:
armor : armor type
RoF : new rate of fire (in percentage)
Sample entry:
$GTC Aeolus: nerfed
hull: 15k
armor: Fancy Armor
turret armor: Fancy Armor
subsystem armor: Fancy Armor
turret01: Terran Huge Turret
+armor: Weak Armor
turret02: Terran Huge Turret
+armor: Weak Armor
turret03: Terran Huge Turret
turret04: Terran Huge Turret
turret05: Terran Huge Turret
TODO : doc
]]--
----------------------
-- global variables --
Expand Down

0 comments on commit b842409

Please sign in to comment.