SphereCommunity
SRC.EFFECT=3,03709 ,6,43,2 breakdown. - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: SRC.EFFECT=3,03709 ,6,43,2 breakdown. (/Thread-SRC-EFFECT-3-03709-6-43-2-breakdown)

Pages: 1 2


SRC.EFFECT=3,03709 ,6,43,2 breakdown. - Murmur - 03-01-2013 06:00 AM

Whats up guys.

Today I was messing with some custom weapons.

This one is very incomplete for what I want in the end (if I have issues with the random proc/damage aspect, you'll see it here Tongue) but I had a question.

I was looking for a tutorial to tell me what these arguments are for the src.effect call.

Would someone either link me to the right place or explain what 3,6,43 and 2 mean in this?

SRC.EFFECT=3,03709 ,6,43,2

The only part I have figured out is 03709, which is the spell effect for flamestrike.

Thanks in advance.

[ITEMDEF i_viking_sword_of_flamestrike]
DEFNAME=i_viking_sword_of_flamestrike
NAME=Viking Sword of Flamestrike
ID=i_sword_viking
DAM=15, 25
SPEED=37
SKILL=Swordsmanship
REQSTR=100
TWOHANDS=N
WEIGHT=1

//RESOURCES=30 i_ingot_iron,1005

SKILLMAKE=Blacksmithing 150.0

CATEGORY=Sword
SUBSECTION=Weapons
DESCRIPTION=Viking Sword of Flamestrike

ON=@Create
NAME=Viking Sword of Flamestrike
HITPOINTS={100 200}
COLOR=33

ON=@EQUIP
SRC.SOUND 856

ON=@DAMAGE
SRC.EFFECT=3,03709 ,6,43,2


RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown. - darksun84 - 03-01-2013 06:14 AM

http://wiki.sphere.torfo.org/index.php/EFFECT


RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown. - Murmur - 03-01-2013 10:44 AM

Thanks darksun84.

I had looked at that page before but could not figure it out.

Now that I have spent some time experimenting, I'll post my findings for people doing the same thing I did in the future.

Here is my code:

SRC.EFFECT=3,03709 ,9,30,2

Here is what the tutorial says:

EFFECT type, item_id, speed, loop, explode, colour(hue), rendermode

Ok, so 'EFFECT type' is 3, this means the effect will follow the character as he moves, the way a flamestrike does when the spell is cast. The bottom of the effect is somewhere around the character's knees.

item_id is 03709. which I pulled from the flamestrike spell script in sphere_spells.scp.

9 is the speed, which I didn't tinker with at all because it looked accurate to me.

30 is the loop, this was my problem, it was playing a full flamestrike animation, then started a second one for like 3 seconds. I changed this from a 49 to a 30 (after lots of trial and error) and I settled on 30.

I could not tell what unit of time measurement 30 represents, but might be 3 seconds.

2 is explode, which the tutorial says: "is a boolean defining whether the projectile should make an explosion animation when reaching the character". I did not tinker with this either, and I don't notice any explosions going on in my script animation at all.

Color and rendermode are two that I did not mess with either, and due to the lack of these values on my original line, that is what threw me off from using the tutorial line.

More to come, hope this keeps someone from getting confused like I did.

SRC.EFFECT=3,03709 ,9,30,2,02

Confirmed, I added a 02 to the end of this and it made the flamestrike animation a dark blue.

So Im guessing if you leave this argument blank, it will use the default value.


RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown. - RanXerox - 03-01-2013 01:10 PM

Note... SRC.EFFECT is redundent since the EFFECT function *always* runs on the SRC. If you try and do SRC.TARG.EFFECT then the SRC.TARG bit is ignored. Similarly, ACT.EFFECT is pointless and REF1.EFFECT is right out... Bottom line, you cannot cause EFFECT to operate on anything except SRC.


RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown. - admin phoenix - 03-01-2013 08:06 PM

yes, you can using try Smile


RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown. - RanXerox - 03-02-2013 09:37 AM

Technically, using TRY changes the SRC... it does not change the way the EFFECT function works.


RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown. - admin phoenix - 03-04-2013 06:13 PM

sorry, using sendpacket.
I am using it to change the source of the effect so the effect will fly from another direction


RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown. - darksun84 - 03-04-2013 07:03 PM

i use this for changing the source effect in the @hit trigger

src.trysrc <uid> effect 0 i_arrow_x


RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown. - Crusader - 03-04-2013 08:46 PM

since u are playing with effect, u might be interested in this:
http://forum.spherecommunity.net/Thread-Nice-Effects-spells-and-more-collection


RE: SRC.EFFECT=3,03709 ,6,43,2 breakdown. - admin phoenix - 03-04-2013 09:32 PM

there is a script anywhere with spirit speak.
you wil be heal from the corpse that are lying around.
there is a effect that is reversed via sendpacket so that the anim will fly from the corpse (item) to the source.