Seron 
Apprentice

Posts: 11
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2013
Reputation: 0
Motoi
![]()
|
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 |
|
|