Contributors please read the Wiki Guide!

This article is still very incomplete!

Creating Weapons

In order to create weapons graphics for Lilith's Throne, you will need to use a vector editing program, the developers of the game use:

In order to add the graphics into the game, you will need to edit an .XML file, this can be done in Notepad, but it is recommended to use a code editor such as any of the following:

The creation of weapons for Lilith's Throne is a relatively simple process for those which have moderate experience using a vector editing program, however it would go without saying that it is important you get to know how to use vector creation applications before you attempt to create weapons graphics for Lilith's Throne.

Creating the Graphic

In most circumstances, it is likely that it will be simplest to modify or use a currently existing graphic within the game as a base, and therefore you should probably first open similar weapons in Inkscape, to find weapons which currently exist within the game, use Github and navigate to /src/com/base/res/weapons/, here you can find all weapons currently within the game.

When you open the file of any weapon from Lilith's Throne, as shown above, you will notice that the weapon is a shade of red. This is because of the way that Lilith's Throne colours weapons, and it allows for the computer to generate a graphic for each damage type colour without the developer having to manually create the graphic in every available types. The colour of the graphic is modified within the code, only specific colours are changed. Summarised:

  • Red is used as base colour for changing the damage type colour of the graphic in-game, and the game will only recognise and change the following colours:
    • #ff2a2a
    • #ff5555
    • #ff8080
    • #ffaaaa
    • #ffd5d5
  • Orange is used as base colour for changing the primary colour of the graphic in-game, and the game will only recognise and change the following colours:
    • #ff7f2a
    • #ff9955
    • #ffb380
    • #ffccaa
    • #ffe6d5
  • Yellow is used as base colour for changing the secondary colour of the graphic in-game, and the game will only recognise and change the following colours:
    • #ffd42a
    • #ffdd55
    • #ffe680
    • #ffeeaa
    • #fff6d5
  • All other colours can not be changed in gameplay.
  • Therefore all parts of the graphic which need to change colour during gameplay must be one of these colours.
  • ANY GRADIENTS THAT YOU USE SHOULD BE CALLED: “innoGrad1”, “innoGrad2”, etc.

You can quickly look at the colour bar of Inkscape, where the exact five colours for each set are easily available.

Once you have finished making the graphic, first make sure that you have deleted any reference images you used to create the graphic, also make sure the graphic is correctly located within the canvas, you should save it as an .SVG file, and for uniformity, name it using snake case (I.e. using underscores instead of spaces, e.g. new_shirt_graphic.svg)

If you need help learning how to use Inkscape, try reading the Inkscape documentation

Adding it to the Game

Within Lilith's Throne's directory go to \res\mods\your name\items\weapons, create a new folder and name it after your mod's name. Within this folder, place the finished graphic in .SVG format and create a .XML file for the item using the template which can be found at res\weapons\innoxia\dagger\dagger.xml (You can alternatively use the .XML from any other mod, but these may not have the comments to assist you in filling it in.