Satvet
Journeyman
Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0
|
wall magic & poisoning magic
i mentioned earlier.
wall spell timeing not work at LOCAL.DURATION.
I want the wall to get up one by one. (as before)
if this is not possible.
why do not you tell me it will not happen?
or.
can not do this i'm LOCAL.DURATION.
If I had a mistake, would you tell me where was wrong.
poisoning magic problem.
first try.
first trying to spell. (ok)
Everything works fine.
second trial.
After the other side is poisoned.
it healings the poison.
it does not show any effect when you throw poison again.
poisoned don't wearer gets damaged.
until damaged.
after
the damage appears in effect.
hitpoint effect bar work continues.
(This post was last modified: 05-10-2017 09:00 AM by Satvet.)
|
|
05-10-2017 03:27 AM |
|
|
Satvet
Journeyman
Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0
|
RE: wall magic & poisoning magic
I guess you do not understand me.
Build:
Quote:[Spell 24]
..
..
ON=@SUCCESS
LOCAL.DURATION=<R200,300> //{200 300} //{20.0 30.0} // not working
LOCAL.FieldWidth=7 // this works
LOCAL.EFFECTCOLOR=07a1 // this works
Quote:[sphere.ini]
// MAGICF_OSIFORMULAS 00200 // Calculate spell damage and duration based on OSI formulas
MagicFlags=0200
I and tried this topic before I opened the topic to the forum. But it did not work. I'm telling you every time.
https://forum.spherecommunity.net/Thread...5#pid19955
As I said the poison incident, I have done it with the player event for now.
I use xedit and I get this result on that.
Quote:[player event]
ON=@SPELLEFFECT
IF ((<ARGN> == 20) || (<ARGN> == 39))
IF !(<FLAGS>&(STATF_POISONED)) && !(<FINDID.I_RUNE_POISON>)
FLAGS <FLAGS>|STATF_POISONED
ELSE
FLAGS <FLAGS>|STATF_POISONED
ENDIF
ENDIF
Treatment with magic and bandage
Quote:[Spell 11]
DEFNAME=s_cure
NAME=Cure
SOUND=snd_SPELL_CURE
RUNES=AN
CAST_TIME=0.9
RESOURCES=i_reag_garlic,i_reag_ginseng
RUNE_ITEM=i_rune_CURE
SCROLL_ITEM=i_scroll_CURE
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_FX_TARG|SPELLFLAG_GOOD|spellflag_playeronly
EFFECT_ID=i_fx_HEAL_EFFECT
EFFECT=0
DURATION=0.0
MANAUSE=6
SKILLREQ=MAGERY 20.0
INTERRUPT=100.0,100.0
[bandage]
if (<cont.findid.i_rune_poison>) // cure self
if !(rand(5) == 1)
cont.findid.i_rune_poison.remove
cont.effect 3,0376a,2,10,1
cont.sayua 048,6,6,0 * zehir etkisini iyileştirir * //Cleans the poison effect
else
cont.sayua 020,6,6,0 * zehiri iyileştiremez * //It does not cure the poison
endif
endif
and this problem continues.
Always gives the same value. (11)
Code:
[Spell 17]
DEFNAME=s_bless
NAME=Bless
SOUND=snd_SPELL_BLESS
RUNES=RS
CAST_TIME=1.5
RESOURCES=i_reag_garlic,i_reag_mandrake_root
RUNE_ITEM=i_rune_BLESS
SCROLL_ITEM=i_scroll_BLESS
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_FX_TARG|SPELLFLAG_GOOD|spellflag_playeronly|spellflag_bless
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=5,20
LAYER=layer_spell_stats
DURATION=2*60.0,4*60.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
INTERRUPT=100.0,100.0
(This post was last modified: 05-18-2017 07:23 AM by Satvet.)
|
|
05-18-2017 03:05 AM |
|
|
darksun84
Sir Spamalot
Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35
|
RE: wall magic & poisoning magic
local.duration does nothing because stone wall spells doesn't trigger the @effect/@spelleffect trigger (therer is no @effect for the ground, it fires only for npcs and items affected by a spell) and local.duration doesn't exist in the @success trigger:
Code:
Changed: Some changes on spell triggers (@Effect [spells] / @SpellEffect [chars]) to allow more user customization
-Added new LOCAL.Duration to change spell duration
So you have two options:
1)Change the duration property in the Stone wall spell, take note that this property is based on the caster's magery value, so more higher the magery skill more chance that it will get an higher timer.
2)Open sphere_item_building_walls.scp, search for ITEMDEF 080 and place a @create trigger on it with the timer value (with timerf on it otherwise will not work)
Example:
Code:
[ITEMDEF 080]
//This is the hardcoded ITEMDEF used by Wall of Stone spell
//It has been excluded from the i_wall_hugebrick DUPELIST on purpose
ON=@Create
attr |= attr_decay //We need to add the decay flag manually
timerf 1,<R10,20> // We need the timerf function otherwise the spell duration will override our duration.
(This post was last modified: 05-19-2017 07:12 AM by darksun84.)
|
|
05-19-2017 07:00 AM |
|
The following 1 user Likes darksun84's post:1 user Likes darksun84's post
Satvet (04-04-2018)
|
Satvet
Journeyman
Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0
|
RE: wall magic & poisoning magic
thanks 2nd proposal worked.
1. I do not fully understand what the proposal is.
it happened this way.
Quote:[ITEMDEF 080]
//This is the hardcoded ITEMDEF used by Wall of Stone spell
//It has been excluded from the i_wall_hugebrick DUPELIST on purpose
ON=@CREATE
ATTR |= ATTR_DECAY // We need to add the decay flag manually
TIMERF 0,TIMER=<R100,200> // We need the timerf function otherwise the spell duration will override our duration.
but I'm. I wanted it to work as it did in 56b.
When you wanted to trick the subject sphere, you could try every way as you said.
for help thanks darksun84.
(This post was last modified: 05-20-2017 07:07 AM by Satvet.)
|
|
05-19-2017 08:37 AM |
|
|