Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Questions about interactive object scripting

Hudson Frye
Registered User
Join date: 19 Aug 2006
Posts: 2
09-27-2006 22:20
Okay, I'm a novice at the scripting... so go slow if you have tips.

My problem is that I want to make objects that interact with each other (ie. sword that invokes animation, but also subtracts hitpoints from moving dragon object, etc.)
I have no idea how to make this happen. Also don't know if there are global variables, types, classes, etc. to implement in this, or if some kind of shortcut methods would have to be used.

Any ideas welcome...
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
09-28-2006 04:17
If you are talking about specific weapon/combat systems that are already in use then best bet is to talk to the users and maintainers.

if your query is more generic then your asking for everything at once which may be a bit of brain dump.

LSL supplies a library of functions that is pretty flexible.
LSL will handle routing the communications, via llSay, llShout, llWhisper, llInstantMessage etc, but You will need to create your own protocol for communicating what it is that happened.

It could jsut be a string "SWORD" and your target (Dragon?) would know that a sword does 10pts damage and react accordingly.

A more extendable solution would be to pass in the damage so that you can invent new improved weapons with out having to update the target code "SWORD:10"


That help?