ID:266162
Aug 15 2001, 8:46 pm
|
|
plz tell me
|
In response to Vortezz
|
|
i mean say i want to change the chara but i also want to change the underlay or overlay in the same verb how do i do that?
|
In response to SSJ4_Link
|
|
SSJ4_Link wrote:
i mean say i want to change the chara but i also want to change the underlay or overlay in the same verb how do i do that? The same way I told you, but different. Get it? |
In response to SSJ4_Link
|
|
SSJ4_Link wrote:
i mean say i want to change the chara but i also want to change the underlay or overlay in the same verb how do i do that? Ok, this is a more specific question, so let's see... You know how to change the icon state. But the underlays/overlays are a little bit trickier. These are both list variables stored in your mob. There are a couple of really excellent examples here. They show exactly how to add and remove overlays. You basically want to remove the old overlay, and replace it with the new one, since I believe you cannot actually change the icon state of an overlay by itself. It is merely a "snapshot" of what that icon or icon state looked like when you added it. Your answer is then to: 1. change the character's icon state 2. remove the old overlay 3. add the new overlay Hope this helps, /mob/skysaw |
In response to Skysaw
|
|
Skysaw wrote:
SSJ4_Link wrote: thanx |
I COULD, couldn't I?
It's simple.
mob/verb/makeidiot(mob/idiot as mob in oview(1))
idiot.icon_state = "newidiot"
usr.icon_state = "nolongeridiot"
There. This makes somebody an idiot!
A hyuk!
*runs off, laughing a jolly song*