Jump to content

Shadow Melding


ianzb

Recommended Posts

Given the fact that Actors and their clothing are the only objects that are subject to dynamic lighting/shadows, I was thinking that there must be some way to apply a chameleon effect to an Actor when they cross through a shadow, thus "melding" into the shadow. Unfortunately, I'm not familiar enough with scripting to accomplish this. Any help would be greatly appreciated.
Link to comment
Share on other sites

As for the mod, the blending and whatnot, no idea.....

 

Of this; "automatically apply the chameleon effect while sneaking" I have an idea though.

 

scn NewElvenCloak

 

short Flag

 

begin OnEquip

set Flag to 1

end

 

begin OnUnEquip

Set Flag to 0

end

 

begin OnDrop

Set Flag to 0

end

 

begin GameMode

if Flag == 0

player.removespell NewAbInvisibility

elseif Flag == 1

if player.issneaking == 1

player.addspell NewAbInvisibility

elseif player.issneaking == 0

player.removespell NewAbInvisibility

endif

endif

end

 

The names are, obviously, not important. The NewAbInvisibility is an Ability, containing 100% chameleon (custom; only thing you'd have to make yourself). Put this script on any piece of clothing or armor, and it will make you invisible when sneaking (instantly and completely).

 

 

 

 

Lucifer

Link to comment
Share on other sites

I'm starting to feel a little stupid... I've created an item and it does exactly what I want it to. Now I want to give it to characters of a specific race at character creation, but everything I try results in the character receiving it over and over again... What should I do?
Link to comment
Share on other sites

Character Generation is handled in CharGenQuest (script), so I suggest you put it in there if it wasn't already (easy and sure to work). Declare an (extra) "short" variable, like short DoOnce (the name doesn't matter... could just as well be short Skippididoo). Than structure it like so;

 

if DoOnce == 0

;your racequestion

;your additem

(spot X)

set DoOnce to 1

;end of your racequestion (endif)

endif (end of DoOnce question)

 

Whatever you put in spot X, will be executed once only. Like the additem and set DoOnce to 1, as DoOnce is than set to 1, X == 0 will never be true again, and you will receive this item or whatever one time only.

 

 

 

Lucifer

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...