The brackets nwscript thingy.
Hello, how do I post script in here for assistance editting?
Débuté par
Artistmonk
, mai 07 2011 06:05
#1
Posté 07 mai 2011 - 06:05
#2
Posté 07 mai 2011 - 06:29
[nwscript]
void main()
{
object oItem = GetItemActivated();
object oActivator = GetItemActivator();
location lTarget = GetItemActivatedTargetLocation();
if (GetTag(oItem) == "wanddecieve")
{
object decoy = CreateObject( OBJECT_TYPE_CREATURE , "apparatio" , lTarget);
// some special fx to go with it
ApplyEffectAtLocation( DURATION_TYPE_INSTANT , EffectVisualEffect( VFX_FNF_SUMMON_MONSTER_1 ) , lTarget);
// destroy it after 60 seconds
DestroyObject( decoy , 60.0);
}
}
[/nwscript]
Very old script By Urban Knight 9/1/2002 was wondering if it can be editted to create clone of the player with a shadow effect that I will be hostile to factions that are hostile to PC. Basically a shadowy decoy that will draw some fire for about a minute before vanishing. I would like item with unique property to be an amulet if that is relevant information.
My question is can the decoy be made immune to all damage since it's a shadow but will vanish if any dispel magic spell is cast on it?
Thanks in advance.
void main()
{
object oItem = GetItemActivated();
object oActivator = GetItemActivator();
location lTarget = GetItemActivatedTargetLocation();
if (GetTag(oItem) == "wanddecieve")
{
object decoy = CreateObject( OBJECT_TYPE_CREATURE , "apparatio" , lTarget);
// some special fx to go with it
ApplyEffectAtLocation( DURATION_TYPE_INSTANT , EffectVisualEffect( VFX_FNF_SUMMON_MONSTER_1 ) , lTarget);
// destroy it after 60 seconds
DestroyObject( decoy , 60.0);
}
}
[/nwscript]
Very old script By Urban Knight 9/1/2002 was wondering if it can be editted to create clone of the player with a shadow effect that I will be hostile to factions that are hostile to PC. Basically a shadowy decoy that will draw some fire for about a minute before vanishing. I would like item with unique property to be an amulet if that is relevant information.
My question is can the decoy be made immune to all damage since it's a shadow but will vanish if any dispel magic spell is cast on it?
Thanks in advance.
Modifié par Artistmonk, 07 mai 2011 - 06:31 .
#3
Posté 08 mai 2011 - 08:38
Hello.
I recall a bioware standard Monk Gloves item, named Twin Fists of Fire, with a special power attached to it that would fire a script to clone the wearer of the gloves to spawn a short-lived fighting twin that would explode in a fireball in a while.
The clone would even say farewell before going BOOM. How nice.
Aside from the explosion and the farewell, that is pretty much what you ask for (a temporary clone on demand).
So maybe you could do some investigation in that direction on your own, first.
Of course, if you meet problems just come back here.
-fox
[edit]
Code can be posted within
-fox
I recall a bioware standard Monk Gloves item, named Twin Fists of Fire, with a special power attached to it that would fire a script to clone the wearer of the gloves to spawn a short-lived fighting twin that would explode in a fireball in a while.
The clone would even say farewell before going BOOM. How nice.
Aside from the explosion and the farewell, that is pretty much what you ask for (a temporary clone on demand).
So maybe you could do some investigation in that direction on your own, first.
Of course, if you meet problems just come back here.
-fox
[edit]
Code can be posted within
[code][/code]tags.
-fox
Modifié par the.gray.fox, 08 mai 2011 - 08:41 .
#4
Posté 11 mai 2011 - 01:19
Thanks, will check.
#5
Posté 11 mai 2011 - 02:32
nw_s3_flametwin or something like that. With the toolset open, and "All Resources" selected, jsut type "flame" and it will search for you.
#6
Posté 12 mai 2011 - 04:41
Appreciate Werehound....





Retour en haut






