Hi there,
I wonder if there is possible to create an new style of arrow, that you cannot reuse and which disappear when you kill the monster.
I m using the Dragons monster mod from FrEEsiD
such as it is a big and hard monster, i wanted to create a special arrow, more powerful.
anyone know if it is possible?
no reusable arrow
Re: no reusable arrow
this may help point you toward a solution. There is an inherent problem with custom arrows reverting to normal arrows after being used,(which is the intended use of LoG enchanted arrows) so some of the scripting ninjas around here came up with a solution. There are 2 problems you face however, A: It requires JKOS's LoG framework, (you cand find it in jkos's signature on the first Diarmuid thread). And B: the script painstakingly finds the normal arrow after it hits and reverts, destroys it, and spawns the special arrow on the ground. there are other problems/solutions in the search thread, so dig around and see if another solution may fit better. Or, simply allow your special ammo to revert to normal, bypassing the framework and rescripting. If you choose the latter route, make sure to take into account the extra arrows the party recieves so they dont end up with 20 arrows (unless you want them to or it doesnt matter), or destroy the normal arrow after impact. Hope you find a solution!
search.php?st=0&sk=t&sd=d&sr=posts&keyw ... o&start=10
search.php?st=0&sk=t&sd=d&sr=posts&keyw ... o&start=10
Currently conspiring with many modders on the "Legends of the Northern Realms"project.
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Re: no reusable arrow
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"
the bow
and the second arrow
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
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",
}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,
}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",
}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,