Page 1 of 1

Dry bone that throws bone

Posted: 20 Sep 2018, 4:55
by Bandit
I know how to make one enemy throw another.

But I have two problems:
-I do not know how to make him stop to throw the bone.
- I have problems with the frames of the npc throwing the bone.

I tried the script several times and it did not work out.

And as much as possible I would like to be able to choose between being normal or throwing the bone.

Posted: 20 Sep 2018, 22:50
by Ariinui
i'll look at it tonight
tell me how you trow (there's like 3-4 ways) and what npc you use as the bone please

Posted: 21 Sep 2018, 5:05
by Bandit
I want you to launch it as in SMW.
He stops and throws it straight.

And add the graphics in the publication above.
The last 2 frames are the animation to launch the bones.

Posted: 21 Sep 2018, 17:30
by Ariinui
i mean, do you use script or inside character data

Smw Drybones throwing bone

Posted: 22 Sep 2018, 22:43
by CodeX
Is this what your wanting ?
Spoiler
''Script made by HugoMDM
with npc(sysval(param1))
if .nomove = 0 then
.xsp = 1 + (-2*.facing)
end if
.ivala = .ivala + 1
if .ivala > 120 then
.xsp = 0
end if
if .ivala >= 140 then
Call NCreate(133,.X+16,.Y+16,4+(-8*.facing),0,0,0)
.ivala = 0
end if

Posted: 23 Sep 2018, 18:58
by Ariinui
yup i'll look what i can do ;)

Posted: 24 Sep 2018, 4:54
by Bandit
Thanks the npc it works. The only thing that I would like the npc to do this animation every time I'm going to throw a bone (that's why I added the two frames at the end).
Spoiler
Image

Dry bone that throws bone Complete

Posted: 5 Oct 2018, 5:59
by CodeX
Sorry to take so long to fix this but i've been busy. Don't know If you still want this but...Here you go 100% complete.
Spoiler
with npc(sysval(param1))
if .xsp = 0 and .facing = 1 then
.curframe = 9
end if
if .xsp = 0 and .facing = 0 then
.curframe = 8
end if
if .nomove = 0 then
.xsp = 1 + (-2*.facing)
end if
.ivala = .ivala + 1
if .ivala > 120 then
.xsp = 0
end if

if .ivala >= 140 then
Call NCreate(133,.X+16,.Y+16,4+(-8*.facing),0,0,0)
.ivala = 0
end if


Posted: 14 Oct 2018, 8:22
by Bandit
Thank you. Recently I was able to use my laptop so I delayed answering.