Aller au contenu

Photo

Hello, how do I post script in here for assistance editting?


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Artistmonk

Artistmonk
  • Members
  • 30 messages
The brackets nwscript thingy.

#2
Artistmonk

Artistmonk
  • Members
  • 30 messages
[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.

Modifié par Artistmonk, 07 mai 2011 - 06:31 .


#3
the.gray.fox

the.gray.fox
  • Members
  • 127 messages
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
[code][/code]
tags.

-fox

Modifié par the.gray.fox, 08 mai 2011 - 08:41 .


#4
Artistmonk

Artistmonk
  • Members
  • 30 messages
Thanks, will check.

#5
Werehound

Werehound
  • Members
  • 11 messages
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
Artistmonk

Artistmonk
  • Members
  • 30 messages
Appreciate Werehound....