|
Orb in DS2
|
|
Submitted by HardLess on Mon, 2013-06-24 14:39
|
|
Hi, I'm trying to tansform the power "Energy Orb" from the combat magic powers into a spell.
The main issus is that when I transform it as a spell, my character cast it but nothing happen.
I was wondering, if somebody had an idea.
This is the code from the power.
[t:template,n:energyorb_power]
{
doc = "Energy Orbs";
specializes = base_power;
[attack]
{
skill_class = "Combat Magic";
}
[gui]
{
active_icon = b_gui_ig_m_i_rendingaura-up;
mini_icon = b_gui_ig_m_chiclet-buff-up;
}
[magic]
{
cast_range = 10;
cast_sub_animation = 2;
is_one_shot = true;
can_autocast = true;
requires_line_of_sight = false;
use_intel_level = false;
speed_bias = 1;
target_type_flags = tt_self;
usage_context_flags = uc_offensive;
state_name = energyorb;
require_state_check = true;
}
[power_energyorb]
{
charge_ffx = "ffx_energyorb_charge";
cast_ffx = "ffx_energyorb_cast";
cast_efct = "efct_energyorb_cast";
projectile_1_ffx = "ffx_energyorb_projectile_1";
projectile_2_ffx = "ffx_energyorb_projectile_2";
projectile_3_ffx = "ffx_energyorb_projectile_3";
description = "Energy Orb";
}
}
PS: I'm french so my english can be missunderstood.
Thanks a lot. |
|
|
My tankviewer is not functioning so I cannot easily check, but when converting some of my spells I had to create new ffx & efct files because the attach point for the spells were not correct (bip01 etc.).
I've already got an energy orb spell working in DS2 Adepts
Being based off a power the damage levels appear somewhat fixed and don't scale according to int like normal spells. This version is also autocasted which is quite handy.
Incidentally the reason your version isn't working is probably because it specializes off a power instead of base_combat_magic. I've got several powers such as gathered bolt and chain lightning working as spells by specializing them as spells instead of powers. Using some power specific ffx in spells also works on occasion.
hmm have u tried changing the usage context flags in the [magic] component from uc_defensive to uc_offensive? that shud get the dmg to display correctly in the spell mouseover. not sure why u have it as a defensive usage context spell.
also, the target type flags are not correct. it shud be tt_self only which is what the orb spells use in both dsloa and ds2. allowing enemies and breakables as the target types means the orb can be casted on (NOT fired at) enemies and breakables and u end up using the spell against urself.
i believe what the orb can shoot at is controlled via the spell's power_energyorb skrit.
and one last thing. u shud specify a valid damage type for the spell using the damage_type parameter in the [magic] component. if u do not, it will default to doing melee dmg by default as specified in rules.skrit.
this is the energy orb damage type bug in ds2. i caught this bug while making my spells improvements and bugfixes mod for ds2 and bw.
u can test this bug out by fighting decaying vulks in the broken world map which are resistant to melee. u notice energy orb does reduced dmg against the vulks despite the vulks NOT having any power dmg resistance and when they are hit by the energy blast, they flash with a white shield indicating they resisted dmg from the attack.
since u appear to want the energy orb to do fire dmg from what u set in the spell's attack dmg modifier. i recommend putting damage_type = dmt_fire; as the dmg type for the spell.
Thanks you.
I'm on my way to try this.
Just another issue about the "DungeonSiege2mods" from the toolkit, do you know how to modify a 'party'.
Like adding a second character, I'm using the command "party add name.ds2party" but nothing happen and the error is "This save does not exist".
Because I want to create myself two characters and get them in the same team.
Is this possible because I did it on Dungeon Siege 1 but nothing to do in DS2.
Any idea.
My second issue is to modify savegame... The savegame is in hexa and I don't really know how to deal with this.
Thanks you again.
Thanks for the tips, I'll look into it eventually but at the moment I'm very busy in testing DS2 Adepts.
It's been a while since I looked at the code (originally released as a test version with a whole heap of other spells about a year ago) but I remember I had a lot of problems getting it to even appear. I think using it as an offensive spell just didn't work but I can't be sure.
When the next DS2 Adepts alpha is released you're assured of having a lot of fun looking at all the new spells. Many of them have issues similar to this one. Some I got working (like the mage energy spell from Broken World) but they actually killed your party members rather than the monsters! I hope to have the next alpha ready by the end of this month.
I actually haven't heard of your s[ells improvement and bugfixes mod before, sounds very interesting.
So offensive don't work, it makes the power to cast on enemies.
So when it's defensive, again i can cast the spell but nothing happen.
I was wondering if the issue is created because of the skirt of the energy orb.
Because the skirt is about "energy orb" as a power and not as a spell.
I'm trying to put the skirt of the orbs from DS1 in DS2 but I don't think that could work.
See you. I continue testing.
PhoeniX, iryan and Lady_Femme are all correct in what they have said, so wont repeat any of their words.
but here is my 2 cents anyways....
the reason it don't work is cause of efct_energyorb.gas, the power err spell is needing a power_level, to be honest u will need to recode the efct_energyorb_cast make property float power_level$ = 1.0 for a basic level 1 energy orb.... or could also recode power_energyorb.skrit
add property float power_level$; near top to it that way can have it with 1 - 3 in the spell code.
example spell_energyorb.skrit untested
example spell code untested
i didnt know u cud use global # values as parameters/variables for passing into skrit. wonder if that actually works. if it does, it might open a lot of possibilities for highly scalable spells... :mrgreen:
I don't think an offensive spell would work with tt_self. Have you tried the version I posted? It at least works and would give a good starting point to get working correctly.
So the skirt works but there is a problem that I correct on the spell.
The issus was about dmg_min and dmg_max. The skirt seems to read only the figures and a bracket is causing a error.
So now the spell works, but the orb is static and I'm trying to make it orbiting arround the character like skulls of the spell "Mana Strike".
Thanks for your help and if somebody have an idea how to modify savegame or at least how to import a party with the "Dungeon siege 2 mod" Of the toolkit, it's would be great.
So thanks again and I'll post a feedback about the orb's orbiting.
EDIT: The skulls of the Mana Stike spell don't orbit arround the character but it appears to be just an effect.
I took out some code from the skrit that needs to be put back in, namely the power_duration
dmg_min and dmg_max stuff.
you are correct about the brackets that was just some cut and paste code, and only the 1200, 20, and 30 should work as it needs a number.
as for the mana strike I have never seen that spell so cant say what u can do to make it work, but whatever effect it uses can replace charge_ffx if need be or even added to your effects if u edit them... have fun with your spell.