SphereServer BugTracker - SphereServer
View Issue Details
0002072SphereServernew feature requestpublic27-04-12 13:4609-09-13 02:05
daskaras 
Ben 
normalminorhave not tried
resolvedno change required 
20-09-2009, 0.56b Prerelease 
 
Not Available
None
None
0002072: Using tags in the spell section
it would be nice, if we can set own tags in our spells definitions, like

[Spell 1]
DEFNAME=s_Clumsy
NAME=Clumsy
tag.race=def_elf
SOUND=snd_SPELL_CLUMSY

ON=START
 IF (<serv.spell.<argn1>.tag.race>&def_elf)
   RETURN 0
  ELSE
smsg You are not an Elven
  RETURN 1
ENDIF
No tags attached.
Issue History
27-04-12 13:46daskarasNew Issue
28-03-13 11:17daskarasNote Added: 0001532
28-03-13 13:16MirravinNote Added: 0001534
28-03-13 14:41daskarasNote Added: 0001535
28-03-13 18:01MirravinNote Added: 0001536
28-03-13 18:02MirravinNote Edited: 0001536bug_revision_view_page.php?bugnote_id=0001536#r488
29-03-13 11:16Gil AmarthNote Added: 0001537
29-03-13 12:38daskarasNote Edited: 0001535bug_revision_view_page.php?bugnote_id=0001535#r490
29-03-13 12:40daskarasNote Added: 0001538
09-09-13 02:05BenNote Added: 0001669
09-09-13 02:05BenStatusnew => resolved
09-09-13 02:05BenResolutionopen => no change required
09-09-13 02:05BenAssigned To => Ben

Notes
(0001532)
daskaras   
28-03-13 11:17   
is this possible?
(0001534)
Mirravin   
28-03-13 13:16   
What is the problem to use defs?

[DEFNAME spell_defs_extra]
spell_1_race def_elf
...
(0001535)
daskaras   
28-03-13 14:41   
(edited on: 29-03-13 12:38)
the problem is, that you can not use tags in spell section.
please read my question rightfully.

(0001536)
Mirravin   
28-03-13 18:01   
(edited on: 28-03-13 18:02)
Why you need tags, if you can get the same result with defs or vars, if you need dinamic variables?

(0001537)
Gil Amarth   
29-03-13 11:16   
I use tags in his scroll items, and reference them through SCROLL_ITEM in the spell definitions.
It would be better if you could put TAGs in the spell definition, but putting TAGs in his scrolls is also a option.
(0001538)
daskaras   
29-03-13 12:40   
it´s better and easier to use tags in spells with one line than using a code line like
@start
IF !(<tag0.race>&def_elf)
 RETURN 1
ENDIF

you can also use then
tag0.race=def_elf,def_shaman
(0001669)
Ben   
09-09-13 02:05   
As noted above, use DEFs.