Dry bone that throws bone

Description: Have idea for a script, but you can't make it? Post it here!
Moderators: Lx Xzit, Yoshi021, 5438A38A, Moderators, Semi-moderatos

Bandit
Topic author, Our friend
Our friend
Bandit
Topic author, Our friend
Our friend
Reputation: 13
Posts: 50
Joined: 3 Sep 2016

Post #1by Bandit » 20 Sep 2018, 4:55

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.
Attachments
npc-133.png
npc-133.png (722 Bytes) Viewed 228 times
npc-189.png
npc-189.png (3.66 KiB) Viewed 228 times
Last edited by Bandit on 21 Sep 2018, 5:06, edited 1 time in total.

Ariinui
Duke
Duke
Ariinui
Duke
Duke
Age: 23
Reputation: 19
Posts: 139
Joined: 5 Mar 2017

Post #2by Ariinui » 20 Sep 2018, 22:50

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

Bandit
Topic author, Our friend
Our friend
Bandit
Topic author, Our friend
Our friend
Reputation: 13
Posts: 50
Joined: 3 Sep 2016

Post #3by Bandit » 21 Sep 2018, 5:05

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.

Ariinui
Duke
Duke
Ariinui
Duke
Duke
Age: 23
Reputation: 19
Posts: 139
Joined: 5 Mar 2017

Post #4by Ariinui » 21 Sep 2018, 17:30

i mean, do you use script or inside character data

CodeX
Good citizen
Good citizen
Avatar
CodeX
Good citizen
Good citizen
Reputation: 8
Posts: 22
Joined: 9 Jun 2017

Smw Drybones throwing bone

Post #5by CodeX » 22 Sep 2018, 22:43

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

Ariinui
Duke
Duke
Ariinui
Duke
Duke
Age: 23
Reputation: 19
Posts: 139
Joined: 5 Mar 2017

Post #6by Ariinui » 23 Sep 2018, 18:58

yup i'll look what i can do ;)

Bandit
Topic author, Our friend
Our friend
Bandit
Topic author, Our friend
Our friend
Reputation: 13
Posts: 50
Joined: 3 Sep 2016

Post #7by Bandit » 24 Sep 2018, 4:54

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

CodeX
Good citizen
Good citizen
Avatar
CodeX
Good citizen
Good citizen
Reputation: 8
Posts: 22
Joined: 9 Jun 2017

Dry bone that throws bone Complete

Post #8by CodeX » 5 Oct 2018, 5:59

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


Bandit
Topic author, Our friend
Our friend
Bandit
Topic author, Our friend
Our friend
Reputation: 13
Posts: 50
Joined: 3 Sep 2016

Post #9by Bandit » 14 Oct 2018, 8:22

Thank you. Recently I was able to use my laptop so I delayed answering.


Return to “Script requests”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest