well I have found the "arrow solution" yesterday
viewtopic.php?f=14&t=4421&p=45534&hilit=ammo#p45534
but that was a little, hum? confuse for me, and it was written somewhere, that i have to install framework, which confuse me more!
I have tried alternative solution, and define 2 new arrows:
the first is in fact, a "bomb" arrow
it shoots like arrow, but explode like a poison bomb (well at first i use shock bomb, but some dragon have immunity to shock, so...even for fire and ice. It could be useless against fire dragon , ice dragon, shock dragon, and even black dragon).
So I finally use a poison bomb.
I got a small issue because there is a poison dragon too and I cannot use the arrow against him (because immunity). But as I didnt like this kind of dragon, I choose to never use it.
so it explodes like poison, and disappear. that's not very what I wanted, but it's the easiest way for me
but it can be useless if the dragon jump out the poison cloud (I started to have a headache...).
Then I finally created a second arrow which act like a normal arrow, but have 400 damage point. But it stay after the monster is dead. Nevermind, I will not use many of this kind of arrow.
I'll have to create a new bow, that shoot only this kind of arrows.
the "bomb arrow"
Code: Select all
defineObject{
name = "dragon_bomb",
class = "Item",
uiName = "Dragon Slayer Arrow",
model = "assets/models/items/arrow.fbx",
description = "Arrow made with a head of moonstone and cobanitwood, strong as steel, but still in wood. Combined with the Dragon Slayer Longbow, it has been specially crafted to pierce dragon's shell, by spraying a corrosive cloud. Unfortunately it is broken when used, so use it carefully, and only, if possible, against a dragon!",
ammoType = "dragon_arrow_ammo",
throwingWeapon = true,
bombType = "poison",
bombPower = 600,
gfxIndex = 107,
coolDownTime = 4,
attackMethod = "throwAttack",
attackSound = "swipe",
impactSound = "impact_arrow",
sharpProjectile = true,
stackable = true,
projectileRotationY = 90,
weight = 0.8,
}
defineMaterial{
name = "dragon_bomb",
diffuseMap = "assets/textures/items/arrow_dif.tga",
specularMap = "assets/textures/items/arrow_spec.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 20,
depthBias = 0,
glitterEffect = "glitter_silver",
}
the bow
Code: Select all
defineObject{
name = "dragon_slayer_longbow",
class = "Item",
uiName = "Dragon Slayer Longbow",
model = "assets/models/items/longbow.fbx",
description = "A nice and powerful bow made specially by Nemrond, Great Elf Lord, to kill any dragon when used with the correct arrow, like dragon slayer arrow. This bow can not shoot something else.",
skill = "missile_weapons",
requiredLevel = 25,
gfxIndex = 165,
attackPower = 20,
coolDownTime = 4.0,
attackMethod = "rangedAttack",
attackSound = "swipe_bow",
impactSound = "impact_blunt",
rangedWeapon = true,
ammo = "dragon_arrow_ammo",
weight = 1.0,
}
defineMaterial{
name = "dragon_slayer_longbow",
diffuseMap = "assets/textures/items/longbow_dif.tga",
specularMap = "assets/textures/items/longbow_spec.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 20,
depthBias = 0,
}
and the second arrow
Code: Select all
defineObject{
name = "dragon_arrow",
class = "Item",
uiName = "Perfect Dragon Slayer Arrow",
model = "assets/models/items/arrow.fbx",
description = "Another arrow made from cobanitwood. But this one is more resistant and you can reuse it. Combined with the Dragon Slayer Longbow, this is a powerful arrow for skilled ninja.",
ammoType = "dragon_arrow_ammo",
gfxIndex = 107,
attackPower = 400,
impactSound = "impact_arrow",
stackable = true,
sharpProjectile = true,
projectileRotationY = 90,
weight = 0.1,
}
defineMaterial{
name = "dragon_arrow",
diffuseMap = "assets/textures/items/arrow_dif.tga",
specularMap = "assets/textures/items/arrow_spec.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 20,
depthBias = 0,
glitterEffect = "glitter_silver",
}
by the way, I tried to add 2 type of damage in the first arrow:
the first with the poison bomb effect
and I added "attackPower = 400," for the second type (like any normal arrow)
but i could not use the arrow then, while testing in the editor, it says "no ammo"
I have try to create a new type of bomb effect, but I couldn't find the bomb effect definition (like poison, shock...) I thought it was a spell then, so I created a new spell, which use the "light" spell, and define a light effect into the "bomb arrow", but it dont work better.
is there a way to do something like that or is it definitely impossible to do?
I wann do something other:
how can I add(simply) 2 different type of ammo for a bow?
I d like that my dragon bow, can shoot simple arrow too.
I tried to add arrow after the first kind of ammo, then the bow doesnt work anymore...
like that
Code: Select all
rangedWeapon = true,
ammo = "dragon_arrow_ammo", "arrow",
weight = 1.0,