SphereCommunity
about i_memory - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: about i_memory (/Thread-about-i-memory)



about i_memory - Dullais - 02-25-2013 10:08 PM

Hello everyone !
I was wondering if anyone could tell me base things about i_memory (like what is it and what it can do, how to use it right) , is it just an item id with no tilepic ? what layer does it use ?
I checked wiki, there is nothing about it.
I really have feeling that this could be a lot better that tags.


RE: about i_memory - Mordaunt - 02-25-2013 11:52 PM

Memories are items of a specific type, equipped onto a player or npc, There are some memories predefined in spheredefs.scp making your own is a simple matter.

An example I can give you (modified from the version in the scripts to give a message) is shown below.

Basically what you do is have whatever you want the memory to do fire under an @equip trigger (or under @timer if you want it to fire when the memory is removed)


Code:
[ITEMDEF i_fire_horn_TIMER]
ID=i_memory
TYPE=T_EQ_SCRIPT
NAME=Fire horn timer

ON=@Equip
        SRC.SAY I have equipped a memory

ON=@Timer
        SRC.SAY The memory timer has expired
    REMOVE
    RETURN 1



RE: about i_memory - Dullais - 02-26-2013 12:13 AM

(02-25-2013 11:52 PM)Mordaunt Wrote:  Memories are items of a specific type, equipped onto a player or npc, There are some memories predefined in spheredefs.scp making your own is a simple matter.

An example I can give you (modified from the version in the scripts to give a message) is shown below.

Basically what you do is have whatever you want the memory to do fire under an @equip trigger (or under @timer if you want it to fire when the memory is removed)


Code:
[ITEMDEF i_fire_horn_TIMER]
ID=i_memory
TYPE=T_EQ_SCRIPT
NAME=Fire horn timer

ON=@Equip
        SRC.SAY I have equipped a memory

ON=@Timer
        SRC.SAY The memory timer has expired
    REMOVE
    RETURN 1

Thank You for lesson Smile


RE: about i_memory - darksun84 - 02-26-2013 12:23 AM

Also the memory layer is the only layer that can have multiple items


RE: about i_memory - Dullais - 02-26-2013 02:35 AM

(02-26-2013 12:23 AM)darksun84 Wrote:  Also the memory layer is the only layer that can have multiple items

Thats something worth knowing. Thanks Smile