Search results for query: *

  1. DoYouEvenCookie

    tModLoader Official tModLoader Help Thread

    I need a little help. enemies I create do much more damage with projectiles than with contact, even though I use npc.damage as the damage value for the projectile, and this problem is amplified in expert mode, effectively making projectiles that one shot the player. what gives? private void...
  2. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    I'm trying to make a boss minion circle a boss quickly to absorb some hits, but I have no idea how to make it circle. I know the example mod has the captive elements around the abomination, but I've spent about 4 hours trying to figure that out and can't. Can any one explain this to me?
  3. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    ...} public override void KillMultiTile(int i, int j, int frameX, int frameY) { Item.NewItem(i * 16, j * 16, 24, 16, mod.ItemType("KindilightForgeItem")); } public override void AnimateTile(ref int frame, ref int frameCounter) {...
  4. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    Your mod name in the code is wrong it shouldn't be ExampleMod but 551
  5. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    ...= true; npc.ai[2] = 0; } public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 1.3f * bossLifeScale); npc.damage = (int)(npc.damage * 1.1f); npc.defense = 40; } public override void AI() { npc.ai[0]++; Player player =...
  6. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    ...} public override void ScaleExpertStats(int numPlayers, float bossLifeScale) { npc.lifeMax = (int)(npc.lifeMax * 1.3f * bossLifeScale); npc.damage = (int)(npc.damage * 1.1f); npc.defense = 40; } public override void AI()...
  7. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    YAY! an answer Thank You! Now I have a semi-Functional boss I have a couple of questions about npc ai, projectile ai, and other stuff for my custom boss. If anyone can answer 1 please do, you don't have to answer all of them - how do I draw a giant rectangle, sort of like the circle around the...
  8. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    I haven't tested this but public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { player.statMana += 6; //Heals Mana by 6; Can be changed of course player.HealEffect(6); //Shows a green 6 above your head to show you've...
  9. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    put this in your weapon public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit) { player.statLife += 2; player.HealEffect(2); } you can change the 2 to the number you want healed per hit
  10. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    I have a couple of questions about npc ai, projectile ai, and other stuff for my custom boss. I be soo lost - how do I make the npc texture change to something else kinda like the EoC changes to have a mouth. - how do I make the npc shoot a projectile from the edge of the texture and not the...
  11. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    How might I prevent an enemy npc from despawning? I have a worm and some of the segments despawn and it gets annoying since it's a boss I want it to never despawn like the destroyer on another note, how do I make it disappear if the player dies or when it's day. I can never get that to happen
  12. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    can anyone answer any of these, or point me towards tutorials that explain these things to me.
  13. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    oh lol I'm dumb thanks
  14. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    I am trying to make a gun that turns any bullet into a custom shot, not just musket balls, and I tried public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref int knockback) { if (type ==...
  15. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    projectile.aiType = ProjectileID.Arkhalis; this used to work in setdefaults and now it doesn't, but I didn't change it error Terraria.Projectile does not contain a definition for aiType and no extention method aiType accepting a first argument of type Terraria.Projectile could be found
  16. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    I changed it to void error return type must be 'bool' to match overridden member
  17. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    I tried to use onTileCollide, but it failed :( code public override bool OnTileCollide(Vector2 oldVelocty) { projectile.ai[0] = 1; } error not all code paths return a value. and the line numbers are pointing to OnTileCollide
  18. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    I don't know much about pet making, but I'd say 'sing Terraria;' should be 'using Terraria;'
  19. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    ...= Vector2.Zero; // maintain speed -- or whatever else you want to do here } projectile.velocity += acceleration * 1.5f; projectile.velocity *= 0.95f; if (projectile.velocity.Length() > maxSpeed) {...
  20. DoYouEvenCookie

    Standalone [1.3] tModLoader - A Modding API

    I am making a modded item that shoots a modded projectile that mimics the vanilla projectile.
Back
Top Bottom