Jump to content


Photo

Sword casting spell whenever target hit


  • Please log in to reply
6 replies to this topic

#1 What is the Matrix?

What is the Matrix?
  • Member
  • 114 posts

Posted 25 June 2010 - 01:55 PM

Hey :)

I was trying to create a weapon that, when hitting an opponent, it is supposed to affect all opponents in the area of 30 yards (just like Wail of the Banshee).
Is it possible? How would I proceed with it? I made a spell, made an effect that calls the spell, and the sword itself uses the "Use EFF" effect.
I haven't got it to work well - so I don't know if it is my spell settings or something that don't make it work.
Neo: Why do my eyes hurt?
Morpheus: You've never used them before.

#2 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 25 June 2010 - 11:41 PM

You're better off creating the spell you wish the weapon to cast and using opcode 146 Cast Spell instead of involving EFFs. You can look at Harbinger (sw2h07) or the Club of Detonation (blun27) for examples.

Edited by Wisp, 25 June 2010 - 11:42 PM.


#3 What is the Matrix?

What is the Matrix?
  • Member
  • 114 posts

Posted 26 June 2010 - 05:18 AM

You're better off creating the spell you wish the weapon to cast and using opcode 146 Cast Spell instead of involving EFFs. You can look at Harbinger (sw2h07) or the Club of Detonation (blun27) for examples.


Just did it. Worked like a dream. :) Thanks man!
Got a couple of more questions though...

1.) I recently re-edited the palette of a SPBASEWT (think that's the name) with DLTCEP and saved it under a name of my choice.
I tried using that effect, but the animation ends up behind the character. Not in front. Now I can understand that the setting
should be to 0 (Play on place cast), but it doesn't work. If I change the Play 3D setting to 1 (play over target), there is no difference.
Do you know what that might be?


2.) I am building a weapon which uses 3 special moves, where 2 of them are limited but rechargable. The problem is, when I get that weapon through the console,
there is only 1 charge in one of the two limited special moves. If I use the move that has 1 charge - or if I use the infinite special move - the third limited
special move, will suddenly have tens of thousands charges. I haven't been able to fix this... xD
Neo: Why do my eyes hurt?
Morpheus: You've never used them before.

#4 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 26 June 2010 - 05:35 AM

2.) I am building a weapon which uses 3 special moves, where 2 of them are limited but rechargable. The problem is, when I get that weapon through the console,
there is only 1 charge in one of the two limited special moves. If I use the move that has 1 charge

You should use the extended console command that is:
CLUAConsole:CreateItem("itemcode",x,y,z)

Deactivated account. The user today is known as The Imp.


#5 What is the Matrix?

What is the Matrix?
  • Member
  • 114 posts

Posted 27 June 2010 - 08:50 AM

2.) I am building a weapon which uses 3 special moves, where 2 of them are limited but rechargable. The problem is, when I get that weapon through the console,
there is only 1 charge in one of the two limited special moves. If I use the move that has 1 charge

You should use the extended console command that is:
CLUAConsole:CreateItem("itemcode",x,y,z)


Hmm - never seen that extended console command for. Guess I got lot more to learn about this. What is the x, y, z for?

Oh, and by the way, here's the item, the spell and the BAM I was using (question nr 1 earlier).
The BAM always appears BEHIND the target no matter what I do, never in front of the target, like the 3D effect of Protection from Petrification.
Can you help me with it please? I have no idea why it won't work.

Attached Files


Neo: Why do my eyes hurt?
Morpheus: You've never used them before.

#6 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 27 June 2010 - 09:59 AM

Hmm - never seen that extended console command for. Guess I got lot more to learn about this. What is the x, y, z for?

The x, y and z are the charge account for the item as it's created... like for example if you put this: CLUAConsole:CreateItem("arow01",100,0,0) you end up with 100 arrows on a pack of them... and yes, even if you haven't changed the stack maximums, so you ca exceed them.

Oh, and by the way, here's the item, the spell and the BAM I was using (question nr 1 earlier). The BAM always appears BEHIND the target no matter what I do, never in front of the target, like the 3D effect of Protection from Petrification. Can you help me with it please? I have no idea why it won't work.

Well, first of all try to make a working files... you have serious flaws like the extended effects location is: 0-none when it probably should be 3-equipment... the bam you assign to the spell is not "darhl.bam", but "darhl1.bam"... the spell type probably should be either Innate or Priest, I don't remember etc. etc. With these files, I cannot test the item!

Edited by Jarno Mikkola, 27 June 2010 - 10:02 AM.

Deactivated account. The user today is known as The Imp.


#7 What is the Matrix?

What is the Matrix?
  • Member
  • 114 posts

Posted 15 July 2010 - 03:16 AM

Hmm - never seen that extended console command for. Guess I got lot more to learn about this. What is the x, y, z for?

The x, y and z are the charge account for the item as it's created... like for example if you put this: CLUAConsole:CreateItem("arow01",100,0,0) you end up with 100 arrows on a pack of them... and yes, even if you haven't changed the stack maximums, so you ca exceed them.

Oh, and by the way, here's the item, the spell and the BAM I was using (question nr 1 earlier). The BAM always appears BEHIND the target no matter what I do, never in front of the target, like the 3D effect of Protection from Petrification. Can you help me with it please? I have no idea why it won't work.

Well, first of all try to make a working files... you have serious flaws like the extended effects location is: 0-none when it probably should be 3-equipment... the bam you assign to the spell is not "darhl.bam", but "darhl1.bam"... the spell type probably should be either Innate or Priest, I don't remember etc. etc. With these files, I cannot test the item!


Hello again :)

Sorry for the delayed reply. I was away for a while. Summer time, you know. ;)
Thanks for pointing it out - so here I am sending it the way it should be. The BAM
still won't appear on the target, it always appears BEHIND the target, no matter what
settings I choose on Play 3D effect. Here it is:

Attached Files


Neo: Why do my eyes hurt?
Morpheus: You've never used them before.