Different Mesh Whilst Equipp'd

Old and generally outdated discussions, with the rare hidden gem. Enter at your own risk.

Moderators: Haplo, Lead Developers

Locked
Odysseus
Member
Posts: 33
Joined: Thu Jun 17, 2004 7:40 am
Location: Kansas

Different Mesh Whilst Equipp'd

Post by Odysseus »

I have a scripting question for the masters:

I want the mesh of a sword while laying on the ground or in a box or something to look like it's sheathed, but then when you equip it, I want it to look like it shoud look(no sheath). Is this possible?

Oh and also, I want to make doors for a house that are locked, but cannot be opened with lockpicks or spells, you gotta buy something in order to get the door open, how would I go about doing this?

And one more, can I make lockpicks that lock?
User avatar
Nairb
Developer
Posts: 260
Joined: Sat Jan 24, 2004 2:29 am
Location: Northen OH

Post by Nairb »

while im not good a scripting, i can tell if its possible or not.

Q:
I want the mesh of a sword while laying on the ground or in a box or something to look like it's sheathed, but then when you equip it, I want it to look like it shoud look(no sheath). Is this possible?
A:
yes, it is possible. what you would have to do is make 2 models. on model for the sword in the sheath and on when its not.

Q:
Oh and also, I want to make doors for a house that are locked, but cannot be opened with lockpicks or spells, you gotta buy something in order to get the door open, how would I go about doing this?

A:
yes it is possible, even I have done it before, but i forget how.

Q:
And one more, can I make lockpicks that lock?

A:
not to my knowledge, but you CAN enchant an iteam that looks like a lockpick to make a container lock.

hope that helps!
Hold on sec, my keyboard is sliding off the desk, i gotta catch it b4 it jnkgdnldnl
Anonymous

Post by Anonymous »

Well I have some simple ways to solve those problems (although I doubt they are the best or most efficient).
1) I want the mesh of a sword while laying on the ground or in a box or something to look like it's sheathed, but then when you equip it, I want it to look like it shoud look(no sheath). Is this possible?

If I was doing that I would probably make 2 swords, one with the sheathe and one without. Then script the one with it to remove itself from the game and add the one without the sheathe to your inventory (Not totally sure if there is a way to have it switch around for when you drop it)

2)Oh and also, I want to make doors for a house that are locked, but cannot be opened with lockpicks or spells, you gotta buy something in order to get the door open, how would I go about doing this?

The easiest way would to have some item set as the key, and then have a script like

If (OnActivate)
If (GetItemCount, "Fancy Key >= 1)
Activate
Else
End

3)And one more, can I make lockpicks that lock?
As stated before, Basically have the lockpick so that when it is used it casts lock (then add some script based on your security spell to choose the magnitude if youd like)
Anonymous

Post by Anonymous »

Well I have some simple ways to solve those problems (although I doubt they are the best or most efficient).
1) I want the mesh of a sword while laying on the ground or in a box or something to look like it's sheathed, but then when you equip it, I want it to look like it shoud look(no sheath). Is this possible?

If I was doing that I would probably make 2 swords, one with the sheathe and one without. Then script the one with it to remove itself from the game and add the one without the sheathe to your inventory (Not totally sure if there is a way to have it switch around for when you drop it)

2)Oh and also, I want to make doors for a house that are locked, but cannot be opened with lockpicks or spells, you gotta buy something in order to get the door open, how would I go about doing this?

The easiest way would to have some item set as the key, and then have a script like

If (OnActivate)
If (GetItemCount, "Fancy Key >= 1)
Activate
Else
End

3)And one more, can I make lockpicks that lock?
As stated before, Basically have the lockpick so that when it is used it casts lock (then add some script based on your security spell to choose the magnitude if youd like)
Locked