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
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
Post Reply 


Messages In This Thread
about i_memory - Dullais - 02-25-2013, 10:08 PM
RE: about i_memory - Mordaunt - 02-25-2013 11:52 PM
RE: about i_memory - Dullais - 02-26-2013, 12:13 AM
RE: about i_memory - darksun84 - 02-26-2013, 12:23 AM
RE: about i_memory - Dullais - 02-26-2013, 02:35 AM

Forum Jump:


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