The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about i_memory
Author Message
Dullais
Journeyman
*

Posts: 65
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #1
about i_memory
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.
(This post was last modified: 02-25-2013 10:09 PM by Dullais.)
02-25-2013 10:08 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: about i_memory
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

[Image: 2nis46r.jpg]
02-25-2013 11:52 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Dullais
Journeyman
*

Posts: 65
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #3
RE: about i_memory
(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
02-26-2013 12:13 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: about i_memory
Also the memory layer is the only layer that can have multiple items
(This post was last modified: 02-26-2013 12:23 AM by darksun84.)
02-26-2013 12:23 AM
Find all posts by this user Like Post Quote this message in a reply
Dullais
Journeyman
*

Posts: 65
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2013
Reputation: 0



Post: #5
RE: about i_memory
(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
02-26-2013 02:35 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 3 Guest(s)