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
Way to store value like TAG.X in 51a
Author Message
Confusioner
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jan 2014
Reputation: 0



Post: #9
RE: Way to store value like TAG.X in 51a
First: yeah you are god damn right, its old as hell. I don't like either. But this is a nostalgia shard. Trying to make small changes.

On the subject:

1) Turns out there is NO ONTRIGGER=CREATE method on 51a. I looked others scripts and they all created first initialization on ONTRIGGER=TIMER, with TIMER set to 0.
2) <VAR.TST> DOES work on session. But when you save the world, it disappears. Useless for permanent value storage.
3) I set TIMER to -1 to avoid looping.

Code:
[7b56]
ID=0e3b
NAME=Book of Test
COLOR=070d
TIMER=0
ATTR=24

ONTRIGGER=TIMER
SAY Item Created
VAR.TST=TestTwo
VAR.TEST<UID>.SomeKey=TestOne
TIMER=-1
return 1

ONTRIGGER=DCLICK
    src.message Test1: <VAR.TEST<UID>.SomeKey>
    src.message Test2: <VAR.TST>
    return 1

[Image: 65WSgdC.png]

There must be some way to store multiple data to single item. Otherwise how come sphere save guild membership info of players?
(This post was last modified: 01-30-2014 08:35 AM by Confusioner.)
01-30-2014 08:29 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Way to store value like TAG.X in 51a - Confusioner - 01-30-2014 08:29 AM

Forum Jump:


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