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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Aura Spell
Author Message
Seron
Apprentice
*

Posts: 11
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2013
Reputation: 0

Motoi

Post: #1
Aura Spell
Greetings,

I have recently tried to make a Aura kind of spell (Think Paladin from Diablo 2). An area of effect around a character which buffs players as long as they stay inside of the area. Also it should move with the caster.

I decided to try this using multiregion:

Code:
[SPELL 425]
DEFNAME=s_siegesrausch
NAME=Siegesrausch
SOUND=044b
RUNES=
CAST_TIME=0.5
RESOURCES=
RUNE_ITEM=5578
SCROLL_ITEM=I_SCROLL_X_RED
FLAGS=SPELLFLAG_GOOD
EFFECT_ID=0
EFFECT=0
DURATION=0
MANAUSE=5
SKILLREQ=Magery 1.0
INTERRUPT=0.0,0.0

ON=@Start
if (<restest 1 i_rune_kaiserbanner>)
consume i_rune_kaiserbanner
endif

if (<restest 1 i_rune_siegesrausch>)
consume i_rune_siegesrausch
return 1
endif

ON=@Success
NEWITEM i_rune_siegesrausch
EQUIP <ACT.UID>

SERV.NEWITEM i_siegesrausch
NEW.P=<P>
NEW.LINK=<UID>
NEW.REGION.EVENTS +r_siegesrausch
NEW.TIMERF 1,REGION.FLAGS=0
REF1=<NEW.UID>
ACT.LINK=<NEW.UID>
RETURN 0

[ITEMDEF i_rune_siegesrausch]
ID=8323
TYPE=t_eq_script
NAME=Rune_siegesrausch

ON=@equip
timer=1

ON=@timer
timer=1
link.p=<cont.p>
cont.effect 3,14202,1,21
return 1

ON=@unequip
SRC.SYSMESSAGE @0481,,1 Du beendest Siegesrausch.
LINK.REMOVE

[ITEMDEF i_siegesrausch]
ID=i_memory
NAME=Siegesrausch
TYPE=T_MULTI
VALUE=1
MULTIREGION=-4,-4,5,5

ON=@CREATE
ATTR=08010|attr_decay
TIMER=60

[REGIONTYPE r_siegesrausch]
ON=@Enter
IF (<SRC.ISPLAYER>) && !(<SRC.ISGM>)
SRC.SYSMESSAGE @0481,,1 Du stehst unter dem Effekt von 'Siegesrausch'
src.effect 3,i_fx_bless_effect,1,16,0,0,2
src.events +e_siegesrausch
endif

ON=@EXIT
IF (<SRC.ISPLAYER>) && !(<SRC.ISGM>)
SRC.SYSMESSAGE @0481,,1 Der Effekt von 'Siegesrausch' lässt nach...
src.events -e_siegesrausch
endif

This works more or less as intended. However it inteferes with events from existing region. Not just @enter or @exit events but also antimagic flags.

My question would be: Is there a way to nest a region inside a region so that they do not interefere with each other? Or maybe a better way to do the whole 'aura' thing (hopefully without lots of timer and forchars)?

I was thinking about ROOMDEF but apparently you can not use @Enter/@Exit Trigger on that one.
03-20-2014 07:21 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Aura Spell - Seron - 03-20-2014 07:21 PM
RE: Aura Spell - Alaric - 03-20-2014, 11:00 PM
RE: Aura Spell - Shidhun - 03-20-2014, 11:33 PM
RE: Aura Spell - Seron - 03-21-2014, 05:37 AM

Forum Jump:


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