View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002072SphereServernew feature requestpublic27-04-12 13:4609-09-13 02:05
Reporterdaskaras 
Assigned ToBen 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionno change required 
PlatformOSOS Version
Product Version20-09-2009, 0.56b Prerelease 
Target VersionFixed in Version 
Summary0002072: Using tags in the spell section
Descriptionit 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
TagsNo tags attached.
Nightly VersionNot Available
Experimental FlagsNone
Option FlagsNone
Internal Build Number
Attached Files

- Relationships

-  Notes
(0001532)
daskaras (reporter)
28-03-13 11:17

is this possible?
(0001534)
Mirravin (reporter)
28-03-13 13:16

What is the problem to use defs?

[DEFNAME spell_defs_extra]
spell_1_race def_elf
...
(0001535)
daskaras (reporter)
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 (reporter)
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 (reporter)
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 (reporter)
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 (manager)
09-09-13 02:05

As noted above, use DEFs.

- Issue History
Date Modified Username Field Change
27-04-12 13:46 daskaras New Issue
28-03-13 11:17 daskaras Note Added: 0001532
28-03-13 13:16 Mirravin Note Added: 0001534
28-03-13 14:41 daskaras Note Added: 0001535
28-03-13 18:01 Mirravin Note Added: 0001536
28-03-13 18:02 Mirravin Note Edited: 0001536 View Revisions
29-03-13 11:16 Gil Amarth Note Added: 0001537
29-03-13 12:38 daskaras Note Edited: 0001535 View Revisions
29-03-13 12:40 daskaras Note Added: 0001538
09-09-13 02:05 Ben Note Added: 0001669
09-09-13 02:05 Ben Status new => resolved
09-09-13 02:05 Ben Resolution open => no change required
09-09-13 02:05 Ben Assigned To => Ben


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker