Mr.GoldenF
Terrarian
Im running 1.3.4.4
tModLoader version (0.10.0.1v)Im running 1.3.4.4
tml v0.10.0.1 is on Terraria v1.3.5.2tModLoader version (0.10.0.1v)
Terraria itself is 1.3.4.4 or something like htat.
Like ModLoader.GetMod("Tremor").ItemType("BronzePickaxe") but for npcsHow I can get a NPC from the Tremor mod whit this "ModLoader.GetMod("Tremor")"
I thought I had a reset function ( "public override void ResetEffects()" ), unless there's another line that works as a reset that I don't see.harble, I believe you need a modplayer file. you should be setting your buffs and such there (the ones from equipment anyway) so you can use the reset function to remove them when they're no longer valid.
What do you mean? Do you mean the bigger boss' sprite will go over the smaller boss' sprite?I have a question. i'm making a dual boss, in which one boss is far smaller than the other, but the smaller one keeps getting blocked out by the bigger boss.
Is it possible to manually change the way NPC's sprites overlap each other? If not, then does the order in which NPCs are spawned affect their overlaps?
If in the left corner is no tModLoader version you not playing tmodloaderWhen I launch it, it just does vanilla, no mod options. Do you know how I can fix this? I used the auto installer btw.
But I did the auto install and both instances of the game are like thatIf in the left corner is no tModLoader version you not playing tmodloader
I dunno I never use the installer I do it manuallyBut I did the auto install and both instances of the game are like that
Yeah. That's currently what is going on, the bigger boss' sprite will go over the smaller boss' sprite. But I am trying to write something so that it will be the other way around.What do you mean? Do you mean the bigger boss' sprite will go over the smaller boss' sprite?
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace TheGermaniumMod.Items
{
public class FeatherWings : ModItem
{
public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips)
{
equips.Add(EquipType.Wings);
return true;
}
public override void SetDefaults()
{
item.name = "Feather Wings";
item.width = 30;
item.height = 28;
item.toolTip = "Don't go to close to the Sun!";
item.value = 10;
item.rare = 2;
item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.wingTimeMax = 37; //wings Height
}
public override void VerticalWingSpeeds(ref float ascentWhenFalling, ref float ascentWhenRising,
ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
{
ascentWhenFalling = 0.85f;
ascentWhenRising = 0.15f;
maxCanAscendMultiplier = 0.2f;
maxAscentMultiplier = 0.6f;
constantAscend = 0.135f;
}
public override void HorizontalWingSpeeds(ref float speed, ref float acceleration)
{
speed = 9f;
acceleration *= 2.5f;
}
public override void AddRecipes() //How to craft this item
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.Feather, 25);
recipe.AddIngredient(ItemID.Candle); //you need 10 Wood
recipe.AddTile(TileID.WorkBenches); //at work bench
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Look in the documentation for the correct method signatures.Trying to Make wings for mod and I keep on receiving this message:
d:\My Documents\My Games\Terraria\ModLoader\Mod Sources\TheGermaniumMod\Items\FeatherWings.cs(10,30) : error CS0115: 'TheGermaniumMod.Items.FeatherWings.Autoload(ref string, ref string, System.Collections.Generic.IList<Terraria.ModLoader.EquipType>)': no suitable method found to override
d:\My Documents\My Games\Terraria\ModLoader\Mod Sources\TheGermaniumMod\Items\FeatherWings.cs(32,30) : error CS0115: 'TheGermaniumMod.Items.FeatherWings.VerticalWingSpeeds(ref float, ref float, ref float, ref float, ref float)': no suitable method found to override
d:\My Documents\My Games\Terraria\ModLoader\Mod Sources\TheGermaniumMod\Items\FeatherWings.cs(42,30) : error CS0115: 'TheGermaniumMod.Items.FeatherWings.HorizontalWingSpeeds(ref float, ref float)': no suitable method found to override
Code:using System.Collections.Generic; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace TheGermaniumMod.Items { public class FeatherWings : ModItem { public override bool Autoload(ref string name, ref string texture, IList<EquipType> equips) { equips.Add(EquipType.Wings); return true; } public override void SetDefaults() { item.name = "Feather Wings"; item.width = 30; item.height = 28; item.toolTip = "Don't go to close to the Sun!"; item.value = 10; item.rare = 2; item.accessory = true; } public override void UpdateAccessory(Player player, bool hideVisual) { player.wingTimeMax = 37; //wings Height } public override void VerticalWingSpeeds(ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend) { ascentWhenFalling = 0.85f; ascentWhenRising = 0.15f; maxCanAscendMultiplier = 0.2f; maxAscentMultiplier = 0.6f; constantAscend = 0.135f; } public override void HorizontalWingSpeeds(ref float speed, ref float acceleration) { speed = 9f; acceleration *= 2.5f; } public override void AddRecipes() //How to craft this item { ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.Feather, 25); recipe.AddIngredient(ItemID.Candle); //you need 10 Wood recipe.AddTile(TileID.WorkBenches); //at work bench recipe.SetResult(this); recipe.AddRecipe(); } } }
player.selectedItem is the index in the inventory of the selected item. player.HeldItem will return the item instance of that slot, then you want to check it's type against that number.public override void UpdateAccessory(Player player, bool hideVisual)
{
if ( player.selectedItem == 3199) //this conditional judgment dont work.
{
}
else
{
player.itemAnimation = 0;
player.itemTime = 0;
}
}
it's does not work. Can someone tell me why?
i hope when i hand Ice Mirror / Magic Mirror/PDA/Cell Phone.
dont modify player.itemAnimation and player.itemTime.
It's a accessory.