Modding Help creating a tech that can target others (helpful not harmful) and a general mod question

Discussion in 'Starbound Modding' started by Ellary, Dec 10, 2013.

  1. SuperMandrew

    SuperMandrew Cosmic Narwhal

    So the real question... what kind of cookies?
     
  2. Ellary

    Ellary Pangalactic Porcupine

    Any kind you like!

    I am currently working on figuring out how to make my own physics type, so it will heal both the owner and others! will then be working on a healing pack mod~
     
    SuperMandrew likes this.
  3. Ellary

    Ellary Pangalactic Porcupine

    Bottom half of script

    "flippable" : true,
    "universalDamage" : true,
    "statusEffects" : [
    {
    "kind" : "health",
    "amount" : 15
    }
    ]
    }

    UniversalDamage: true.... shouldnt that mean it effects the player who creates it too? is there a bug with this atm due to the patch?
     
  4. Ellary

    Ellary Pangalactic Porcupine

    ahh either they broke something in the patch ...or something (maybe I broke it? can someone test on their game) o.o no bombs or anything hurt my character. She still takes enemy damage. But like I just had her stand on a basic bomb no damage at all.
     
  5. tifel100

    tifel100 Void-Bound Voyager

    Hi! I tried something similar to yours but I tried it by making my own projectile. Is it normal that the projectile never seems to appear but works?
    Code:
    {
      "projectileName" : "throwinghealth",
      "frames" : "throwinghealth.png",
      "animationCycle" : 0.25,
      "armorPenetration" : 3,
      "physics" : "bullet",
      "frameNumber" : 1,
      "pointLight" : false,
      "speed" : 180,
      "actionOnReap" : [
        {
          "action" : "config",
          "file" : "/projectiles/explosions/bulletexplosion/bulletexplosion.config"
        }
      ],
      "power" : 0,
      "damageKind" : "default",
      "emitters" : [ "health" ],
      "universalDamage" : true,
      "statusEffects" : [
        {
          "kind" : "health",
          "amount" : 100
                       
        }
                        ]
    }
    It gives no knockback. I copied it from a throwing dart, and changed it. When i use it on another player, it shows that it's doing 1-3 damage when it's not but it heals them! :D

    And Universal, I think that means that it can hurt other players. No clue :p I got no experience in lua or w/e either!
     
  6. Ellary

    Ellary Pangalactic Porcupine

    {
    "projectileName" : "testhealth",
    "physics" : "hover",
    "bounces" : 0,
    "level" : 3,
    "timeToLive" : 2.000,
    "damageKindImage" : "icon.png",
    "frames" : "testhealth.png",
    "animationCycle" : 0.5,
    "frameNumber" : 1,

    "power" : 0,
    "piercing" : true,
    "damageKind" : "default",
    "damageType" : "ignoresdef",
    "damagePoly" : [ [-36, 0], [-24, -24], [0, -36], [24, -24], [36, 0], [24, 24], [0, 36], [-24, 24] ],
    "flippable" : true,
    "universalDamage" : true,
    "statusEffects" : [
    {
    "kind" : "health",
    "amount" : 15
    }
    ]
    }


    See the line that says "timeToLive" thats all case sensitive. Use that~ its how long the item remains in the game visible. Warning if set to high it will stay on ground and just keep healing friend or enemy that walk on it.
     
  7. tifel100

    tifel100 Void-Bound Voyager

    Alright, but the thing is, mine is a bullet, once it hits a target it heals them, it's not a grenade. I'll try it now.

    Edit: I copied yours and still I don't see the dart.
     
  8. Ellary

    Ellary Pangalactic Porcupine

    eep I am not sure, I am new to all this.
     
  9. tifel100

    tifel100 Void-Bound Voyager

    So am I :p I'm gonna change projectile type to laser. I want a healing laser :D

    Hmm.. I might be on to something.. lemme test :D

    Edit: I think I managed, just need to test it on another person. The problem seemed to be universal damage. Let's hope it still works!

    Edit2: I got it to work like a Brain Extractor, But it pushes the target a bit.. hmm..
     
    Last edited: Dec 11, 2013
  10. Ellary

    Ellary Pangalactic Porcupine

    Am currently reinstalling my game, but I think Universal damage was broken in the last patch o_O bombs should be hurting players, if this is the new way universal damage will work...then my whole idea is out the window ~
     
  11. Ellary

    Ellary Pangalactic Porcupine

    yeah UniversalDamage is broken, just did a complete fresh install and still is not working, will have to wait for next patch ^^
     
  12. Dilwoah

    Dilwoah Void-Bound Voyager

    I think the main problem is in the default.damage asset. This is most likely what's causing the knockback as well as the flashing and damage numbers. Basically this is what it's referring to when the line says, "damageKind" : "default".
    I'm working on a healing.damage asset, I'll post back here once it's done and you all can test it with me :p
     
  13. Ellary

    Ellary Pangalactic Porcupine

    oh my gosh if you can get it to work, I will build a temple in your honor on my planet!
     
  14. Dilwoah

    Dilwoah Void-Bound Voyager

    New update, gosh darnit. See if it changes anything or if I have to redo it all. Basically in the damageresponse folder there's an asset for basically every damage type that tells the game what happens when you take said damage type. So you have to make everything none or 0 so that nothing happens other than the status effect when they get hit by projectile/gas/explosion.

    That's the theory anyways. We'll see if it works after the update. If not Im fresh outta ideas for awhile :p
     
  15. Ellary

    Ellary Pangalactic Porcupine

    keep me posted! super excited. if this works I can get to work on my mod fully before release
     
  16. Dilwoah

    Dilwoah Void-Bound Voyager

    Well, I broke my game with my gun, so while I fix that, here's the two files.

    This one goes into your damageresponse folder (inside the damage folder)
    https://docs.google.com/file/d/0B1nRgYsPa8k2WUJ2aktkNVctems/edit
    This one goes into the damage folder
    https://docs.google.com/file/d/0B1nRgYsPa8k2RFozeExyYjROb00/edit

    Lemme know if they do anything for you. Make backups of your current stuff before using them.

    In order to use them, just change the damageKind : default to heal instead.

    Reversing the changes is pretty easy if something goes wrong :p

    This is just a shot in the dark for me, I'm not positive this will fix anything so... x_x
     
  17. tifel100

    tifel100 Void-Bound Voyager

    I was using the "brain" damagekind, because if not, my Gun wouldn't shoot lasers like the Brain Extractor. Will that work for the laser? :/ I'll try it out tomorrow it's almost 2am :rofl:
     
  18. Ellary

    Ellary Pangalactic Porcupine

    wont let me acc
    will not let me access the files, any chance you can just paste them here?
     
  19. Dilwoah

    Dilwoah Void-Bound Voyager

    It should as long as you change the damage kind for all of them to heal. For example, I used the brain extractor beam as my template when I made my heal beam, just change the damagekind to heal from default/brain.

    Sorry try again, I had them set to private by default. Should be public now.
     
  20. Ellary

    Ellary Pangalactic Porcupine

    Downloading will test right now! I will just dual log
     

Share This Page