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
IFs possible in the text portion of a gump?
Author Message
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #11
RE: IFs possible in the text portion of a gump?
http://wiki.sphere.torfo.org/index.php/Main_Page

Just read the 10 tutorials. It takes a few hours but it helps a lot.

You'll never learn how to script until you read that.

You can't tell sphere to do something if you have totally no clue of how it works.
10-27-2015 08:31 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #12
RE: IFs possible in the text portion of a gump?
(10-27-2015 08:21 AM)x77x Wrote:  TAG.namez="xuchang"
TAG.namez="changan"
You can use STRMATCH
Code:
IF STRMATCH(<TAG.namez>,"xuchang")
    Dtext 90 150 <more> Xu Chang//brit-xuchang
ELIF STRMATCH(<TAG.namez>,"changan")
    Dtext 10 90 <more> Chang An//yew-changan
ELIF STRMATCH(<TAG.namez>,"luoyang")
    Dtext 150 120 <more> Luo Yang//cove-luoyang
...
ENDIF

Grandmaster Localhost Admin
10-27-2015 08:32 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #13
RE: IFs possible in the text portion of a gump?
then why cant i use UID!?

=)

Dragons of Time 2000-2020
http://dragonsoftime.com
10-27-2015 08:44 AM
Find all posts by this user Like Post Quote this message in a reply
Kanibal
Master
**

Posts: 255
Likes Given: 6
Likes Received: 30 in 28 posts
Joined: Jun 2012
Reputation: 0



Post: #14
RE: IFs possible in the text portion of a gump?
(10-27-2015 08:44 AM)x77x Wrote:  then why cant i use UID!?

[Image: 9750923.jpg]

Grandmaster Localhost Admin
10-27-2015 08:46 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #15
RE: IFs possible in the text portion of a gump?
LOOOOL

We need to go deeper. You must learn binary.
10-27-2015 08:56 AM
Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #16
RE: IFs possible in the text portion of a gump?
this works..

Code:
IF <uid>==040004100//<uid.040004100>
Dtext 90 150 <more> Xu Chang//brit-xuchang
ELIF <uid>==040004101//<uid.040004101>
Dtext 10 90 <more> Chang An//yew-changan
ELIF <uid>==040004102//<uid.040004102>
Dtext 150 120 <more> Luo Yang//cove-luoyang
ENDIF

Dragons of Time 2000-2020
http://dragonsoftime.com
10-27-2015 08:58 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #17
RE: IFs possible in the text portion of a gump?
wouldn't it be simpler to have the name stored in... hum... the NAME variable of the stone?
and have the position stored in tags.

then you do something like this

DTEXT <tag0.posx> <tag0.posy> <more> <name>

and you have none of this IF, ELSE, ELSEIF crap...

just a thought Smile

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
10-28-2015 10:17 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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