The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] Help with "Effect x, item, x, x, x, x"
Author Message
Chris_T
Apprentice
*

Posts: 10
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0



Post: #4
RE: Solved: Help with "Effect x, item, x, x, x, x"
Hi =P
Need more help with effects so ill just use/bump this post.

I'm having trouble getting NPCs to fire effect type 0 (projectile)
example: EFFECT 0,i_fx_fireball,10,16,0,044,4

I spent some time looking around in NPC scripts and found these in the community pack.

Code:
ON=@GetHit
   //Thrown Weapon Attack (unholy bones)
   IF (<DISTANCE> > 2) && (RAND(5)==0)
      SRC.TARG.EFFECT 0,i_bone_unholy,2,1
      IF (RAND(5)==0)
         SRC.DAMAGE <R15,25> <DEF.dam_physical> <UID>
      ENDIF
   ENDIF
^Champion.scp, under Dark Father (I changed "I_bone_unholy" to "i_fx_fireball" since sphere says I don't have unholy bones)
And
Code:
[EVENTS e_solen_spit]
//Acidic Spit Defense
ON=@GetHit
   REF12=<SRC>
   IF (<MANA> > 15) && (<DISTANCE> > 2)
      MANA -= 15
      TRYSRC <UID> REF12.EFFECT 0,i_fx_fireball,10,16,0,044,4
      SRC.DAMAGE <R15,25> <DEF.dam_acidic> <UID>
      SRC.SYSMESSAGELOC color_text,1071966//"The solen's damaged acid sac squirts acid!"
      SRC.SOUND snd_spell_poison
      SERV.NEWITEM i_pool_acid
      NEW.P=<SRC.P>
      NEW.ATTR=attr_decay|attr_move_never
      NEW.TIMER={4 8}
   ENDIF
   REF12=
^Todo.scp

But everything works minus the animation. When I type .xEFFECT 0,i_fx_fireball,10,16,0,044,4 in game and target something I see it. Just don't see it when its added to my test NPC.

So here I am again Blush
Could use some help on getting NPCs to fire off effects.
12-06-2012 11:59 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Solved: Help with "Effect x, item, x, x, x, x" - Chris_T - 12-06-2012 11:59 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)