Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Gotta love the forums....

MystyReus Korobase
Registered User
Join date: 15 Jun 2008
Posts: 25
04-22-2009 10:09
Guess I posted in the wrong place for some people :)

Anywho!

I am building a weapon that needs to do the follwing:

Attach and appear / disappear to two different points on an avatar.
Animate that avatar when the item is visable and stop animating the avatar when the item is invisable.
The weapon needs to cause damage to another avatar when they are wearing a GLM meter.
The avatar needs to go into mouselook to use the weapon and the weapon needs to strike when someone left clicks.

So far, I have figured out the following:

How to get the item to appear and disappear using an alpha script(show /hide) that listesn for the words "draw lance and sheath lance".
How to animate the avatar but only at all times while it it attached ( I can not figure out how to get the animation to stop when it hears "sheath lance".

I have the animations I want to use, full perm. I have the damage script for GLM meters.

I want to give this weapon to everyone at an upcoming competetion for free so that the fighters are all using the same weapon.

OMG! first time I've scripted and I'm screwed! Help please?

At this point, if someone can do this for me, I'll takea quote on price. I'm willing to pay to get this done.
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
04-22-2009 11:40
Still not the right place. :( You want a service, so post in the Services forum. The Content Creation forums are the places to come when you want to learn how to do it yourself.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
MystyReus Korobase
Registered User
Join date: 15 Jun 2008
Posts: 25
04-22-2009 12:11
From: Rolig Loon
Still not the right place. :( You want a service, so post in the Services forum. The Content Creation forums are the places to come when you want to learn how to do it yourself.


So how do I delete a post? I know this was is in the wrong place as well..

grr... I'mtrying not to piss in the forum gods wheaties but it's not my day.
Meade Paravane
Hedgehog
Join date: 21 Nov 2006
Posts: 4,845
04-22-2009 12:14
From: Rolig Loon
Still not the right place. :( You want a service, so post in the Services forum. The Content Creation forums are the places to come when you want to learn how to do it yourself.

It was the right place when I directed him here from the Building Tips forum.. :P There wasn't any talk of hiring somebody at that point..

MystyReus, what problems are you having with the animation? Is it not playing? Is it giving you a script error? If you want quick help, you need to provide some more details..
_____________________
Tired of shouting clubs and lucky chairs? Vote for llParcelSay!!!
- Go here: http://jira.secondlife.com/browse/SVC-1224
- If you see "if you were logged in.." on the left, click it and log in
- Click the "Vote for it" link on the left
Lazink Maeterlinck
Registered User
Join date: 8 Nov 2005
Posts: 332
04-22-2009 12:18
Ok, sounds to me from what you've said, that you need to call llStopAnimation when you want to stop the animation in your script.

so you have it listening for "sheath lance", when your listen event hears this, call the function llStopAnimation that will cause the animation you specify in the argument to stop playing.

example:

llStopAnimation("sit";);

This will stop the sit animation from playing after being started.
MystyReus Korobase
Registered User
Join date: 15 Jun 2008
Posts: 25
Some more details... I hope this helps :)
04-22-2009 12:33
And thank you all for responding in the first place. I REALLY DO appreciate it, this is not easy and I am in way over my head.

The weapon is a lance and I would like it to act similar to the weapons available at Harbinger and Stormie. (Shameless plus for them! I love their stuff!)

So I bought a sword script, an alpha script, a damge script for the type of meter we will be using, an animation overide script and the animations I would like to use.

I built the lance/spear and made the parent prim the shaft. I made two copies, one for that attaches to the spine of the avatar for when the lance is "Sheathed" and one that attaches to the right hand of the avatar for when the lance is "drawn."

So far, the item attached to the spine has an alpha script in it that makes the lance appear or disappear according to the chat command "draw lance" or "sheath lance" respectively. This item needs to tell the avatar to stand straight when the item is visable on the spine.

The item copy that attaches to the right hand also has an alpha script that causes the item to appear and disappear as well. This item also needs to animate the avatar to crouch when it is visable in the hand and stop animating when it is not visable. It also needs to allow the avatar to go into mouse-look and then allow the avatar to "strike" when the left mouse button is clicked.

My thoughts were...

CAn I get each iten to listen for the chat command "draw lance" and sheath lance" respectively so that the animation starts and stop as well??

And how? If it is some huge deal to get it to happen, then I need to have someone do it for me. Does that make sense? I'm using other peoples script and only barely know how to modify them...