Light as ability on a creature

Post » Thu Mar 03, 2011 6:51 am

Hey,

Is it possible to make a script or effect with light as an ability Spell like the NPCGhosteffect and those? I want that the creature is brightening the area around it.

Also has some one an Scipt how to make a creature only spawns at night?

Hope someone can help.

Thanks.
User avatar
koumba
 
Posts: 3394
Joined: Thu Mar 22, 2007 8:39 pm

Post » Thu Mar 03, 2011 11:11 am

Hey,

Is it possible to make a script or effect with light as an ability Spell like the NPCGhosteffect and those? I want that the creature is brightening the area around it.

Also has some one an Scipt how to make a creature only spawns at night?

Hope someone can help.

Thanks.

I'm not good at scripting, but I may be able to help.

FIrst off, if a light ability doesn't work, it *might* work to make a light that can't be carried and has no model, then add that to the creature.
Scriptname GlowingCreatureScriptShort DoOnceBegin GameMode	if DoOnce == 0		AddItem "Light"		set DoOnce to 1	endifEnd


Just pin that scrip to the creature and replace "light" with whatever light you want it to glow with.

As for your night-only spawns, try:

scriptname nightspawnscriptbegin gamemodeif gamehour >= 18 || gamehour < 7	disable	else		enableendifend


Since you can't put both on the same creature, how about:
Scriptname GlowingCreatureScriptShort DoOnceBegin GameMode	if DoOnce == 0		AddItem "Light"		set DoOnce to 1	endifif gamehour >= 18 || gamehour < 7	enable	else		disableendifEnd


Let me know if these don't work, and I'll see if I can fix them :)
User avatar
Kayleigh Mcneil
 
Posts: 3352
Joined: Thu Jun 29, 2006 7:32 am

Post » Thu Mar 03, 2011 11:02 am

Well he is telling me something like

"Script `GlowingcreatureScript`, Line7:
Missing Parameter Count.
Compiled Script not saved!"
User avatar
Genocidal Cry
 
Posts: 3357
Joined: Fri Jun 22, 2007 10:02 pm

Post » Thu Mar 03, 2011 10:02 am

Well he is telling me something like

"Script `GlowingcreatureScript`, Line7:
Missing Parameter Count.
Compiled Script not saved!"

Oops, my bad. Where i wrote "Light," after you add your own light, just put 1. You need to tell the game how many of that light you want to give the creature. Add the 1 outside the quotation marks and try again. Sorry bout taht.
User avatar
Kill Bill
 
Posts: 3355
Joined: Wed Aug 30, 2006 2:22 am

Post » Thu Mar 03, 2011 3:33 am

Well he is telling me something like

"Script `GlowingcreatureScript`, Line7:
Missing Parameter Count.
Compiled Script not saved!"


Change line 7 to:

AddItem Light 1

Edit: Ninja'd by Zatone13 :ninja:
User avatar
Smokey
 
Posts: 3378
Joined: Mon May 07, 2007 11:35 pm

Post » Thu Mar 03, 2011 11:48 am

Ok the nightspawn works but the light not :( I want to make the groung around the creature is bright maybe a carryable light? will try that now...
User avatar
Connie Thomas
 
Posts: 3362
Joined: Sun Nov 19, 2006 9:58 am

Post » Thu Mar 03, 2011 1:38 pm

Any ideas? I checked how the Light is done in the healing spell and made the one of mine the same. I think it must be something wrong in the script. :unsure:
User avatar
Gill Mackin
 
Posts: 3384
Joined: Sat Dec 16, 2006 9:58 pm

Post » Thu Mar 03, 2011 12:35 pm

This mod might be worth studying for you...
http://www.tesnexus.com/downloads/file.php?id=29735
User avatar
Nadia Nad
 
Posts: 3391
Joined: Thu Aug 31, 2006 3:17 pm

Post » Thu Mar 03, 2011 3:58 am

Wow great, thanks will try that :foodndrink:
User avatar
Jason Rice
 
Posts: 3445
Joined: Thu Aug 16, 2007 3:42 pm

Post » Thu Mar 03, 2011 7:57 am

Just wondering, can you use the Light Spell Effect as an Ability, and give that to the Creature, rather than add it indirectly?
User avatar
Nicole Elocin
 
Posts: 3390
Joined: Sun Apr 15, 2007 9:12 am

Post » Thu Mar 03, 2011 3:21 am

Just wondering, can you use the Light Spell Effect as an Ability, and give that to the Creature, rather than add it indirectly?


Well as i saw in the mod it is some kind of torchlight without a model and is set in the ring item slot
User avatar
Gwen
 
Posts: 3367
Joined: Sun Apr 01, 2007 3:34 am

Post » Thu Mar 03, 2011 10:26 am

Just wondering, can you use the Light Spell Effect as an Ability, and give that to the Creature, rather than add it indirectly?

Yes, you can just make a spell ability, Give it to the creature or NPC, and they will have that effect. No need for scripting, no need for specially rigged items. It will look just like if the NPC had cast a light spell, except it will remain constant. The effect could also be achieved in the case of NPCs by giving them a ring with a light enchantment. Creatures however cannot wear equipment.

For light of a different color, you're kinda out of luck since only things defined as LIGHT, such as a torch, will emit light in the game. Unfortunately, due to how the game works, the torch node is not present on most creatures, and those few where it is present, there are no animations to work with a torch object. Using a script to move a persistent light node is not much of an option either since there is a fair amount of placement lag and issues related to enabling/disabling the light every time it moves.
User avatar
Jessica White
 
Posts: 3419
Joined: Sun Aug 20, 2006 5:03 am


Return to IV - Oblivion