SphereCommunity
typedefs and ghosts @dclick - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: typedefs and ghosts @dclick (/Thread-typedefs-and-ghosts-dclick)

Pages: 1 2


RE: typedefs and ghosts @dclick - Shaklaban - 04-17-2012 10:25 PM

(04-17-2012 01:20 PM)Reflex Wrote:  
(04-17-2012 02:48 AM)Shaklaban Wrote:  then just give a tag or check the item baseid id on=@dclick for example:
Code:
[typedef t_shrine]
on=@dclick
if (<tag0.shrine_override>)
    dialog d_blabla
    return 1
endif

Can you please explain if (<tag0.shrine_override>) i think i understand what it does but not sure how it works ?

its just a tag, for example if you want to some of your items with t_shrine sends dialog and some of them works default, then you can give them a tag like:

PHP Code:
[itemdef i_blabla_1]
name=bla 1
id
=i_gold
type
=t_shrine
tag
.shrine_override=1

[itemdef i_blabla_2]
name=bla 2
id
=i_gold
type
=t_shrine 

when you dclick blabla_1 you get dialog, when you click i_blabla_2 you get default behaviour.