Modding Help Attempting to add a bullet like projectile to a broad sword.

Discussion in 'Starbound Modding' started by Galacticruler, Jun 2, 2014.

  1. Galacticruler

    Galacticruler Scruffy Nerf-Herder

    /title. I'm attempting to make a broadsword launch a moving projectile every time you use it. Similar to the random-gen short swords that do just that. I also would like it to use it's current projectile for the "swoop" effect.
     
  2. Galacticruler

    Galacticruler Scruffy Nerf-Herder

  3. Candyflip

    Candyflip Tentacle Wrangler

    Create new projectile for sword (just copy testswoosh anr make some changes). Then add some sweet things.
    Here is my plasma sword code:
    Code:
    {
      "projectileName" : "plasmasword",
      "frames" : "plasmasword.png",
      "animationCycle" : 0.2,
      "frameNumber" : 3,
      "damageKindImage" : "icon.png",
      "level" : 1,
      "speed" : 0,
      "orientationLocked" : true,
      "damagePoly" : [ [-40, 24.5], [3.5, 24.5], [15.5, 21.5], [28.5, 15.5], [36.5, 7.5], [40.5, -1.5], [40.5, -12.5], [32.5, -24.5], [-12, -24.5] ],
      "animationLoops" : false,
      "piercing" : true,
      "flippable" : true,
      "damageKind" : "slash",
    -- THIS IS AN RAINBOW PLASMA BULLET --
      "actionOnReap" : [
      {
          "action" : "projectile",
          "type" : "rainbowshotgreen",
         "speed" : 50,
         "fuzzAngle" : 30,
          "angleAdjust" : 0
      }
      ],
    -- IT IS EASER THAN LOOKS. USE YOUR OWN PROJ. HERE--
      "lightColor" : [25, 92, 107]
    }
     
  4. Galacticruler

    Galacticruler Scruffy Nerf-Herder

    So the actionOnReap calls the launch of a secondary projectile?
     
  5. Candyflip

    Candyflip Tentacle Wrangler

    Yes. It can be sound, animation, projectile, particle, block or even object. It is "Acton on moment when projectile die".
     
  6. Candyflip

    Candyflip Tentacle Wrangler

    I've made a mod for private use - feel free to use/re-mod/change etc. any graphics and scripts.
     

    Attached Files:

  7. Galacticruler

    Galacticruler Scruffy Nerf-Herder

    Ah. Thank you. go it working. now to just get it less...odd....
     

Share This Page