Author Topic: Hello, how do I post script in here for assistance editting?  (Read 421 times)

Legacy_Artistmonk

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0


               The brackets nwscript thingy.
               
               

               
            

Legacy_Artistmonk

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
Hello, how do I post script in here for assistance editting?
« Reply #1 on: May 07, 2011, 07:29:04 pm »


               [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 .
                     
                  


            

Legacy_the.gray.fox

  • Full Member
  • ***
  • Posts: 214
  • Karma: +0/-0
Hello, how do I post script in here for assistance editting?
« Reply #2 on: May 08, 2011, 09:38:52 pm »


               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 .
                     
                  


            

Legacy_Artistmonk

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
Hello, how do I post script in here for assistance editting?
« Reply #3 on: May 11, 2011, 02:19:52 am »


               Thanks, will check.
               
               

               
            

Legacy_Werehound

  • Newbie
  • *
  • Posts: 22
  • Karma: +0/-0
Hello, how do I post script in here for assistance editting?
« Reply #4 on: May 11, 2011, 03:32:29 am »


               nw_s3_flametwin or something like that. With the toolset open, and "All Resources" selected, jsut type "flame" and it will search for you.
               
               

               
            

Legacy_Artistmonk

  • Jr. Member
  • **
  • Posts: 54
  • Karma: +0/-0
Hello, how do I post script in here for assistance editting?
« Reply #5 on: May 12, 2011, 05:41:24 am »


               Appreciate Werehound....