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
x77x
Master
**

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



Post: #1
IFs possible in the text portion of a gump?
Code:
[DIALOG d_capture]
30, 50
nomove
gumppic 0 0 5593//5528
.
.
.
button 480 170 247 249 1 0 1//okay
button 560 170 241 243 1 0 2//cancel
//
IF <uid.040004100>
text 90 150 <more> 4//brit-xuchang
ELSE
IF <uid.040004101>
text 10 90 <more> 5//yew-changan
ELSE
IF <uid.040004102>
text 150 120 <more> 6//cove-luoyang
ELSE
IF <uid.040004103>
text 185 45 <more> 7//minoc-ye
ELSE
IF <uid.040004104>
text 165 90 <more> 8//wind-xiapi
ELSE
IF <uid.040004105>
text 200 70 <more> 9//vesper-shouchun
ELSE
IF <uid.040004106>
text 320 105 <more> 10//moonglow-jianye
ELSE
IF <uid.040004107>
text 180 200 <more> 11//bucs-jiangling
ELSE
IF <uid.040004108>
text 250 110 <more> 12//njulem-chaisang
ELSE
IF <uid.040004109>
text 255 198 <more> 13//magincia-jiangxia
ELSE
IF <uid.04000410a>
text 240 240 <more> 14//ocllo-changsha
ELSE
IF <uid.04000410b>
text 120 255 <more> 15//trinsic-chengdu
ELSE
IF <uid.04000410c>
text 20 205 <more> 16//skara-hanzhong
ELSE
IF <uid.04000410d>
text 200 320 <more> 17//serpents-yongan
ELSE
IF <uid.04000410e>
text 80 350 <more> 18//jhelom-jiangzhou
ELSE
IF <uid.04000410f>
text 412 290 <more> 19//papua-jianning
ELSE
IF <uid.040004110>
text 381 365 <more> 20//delucia-yunnan
ELSE
IF <uid.040004111>
text 280 35 <more> 21//snowlands xiang ping
ELSE
IF <uid.040004112>
text 318 218 <more> 22//seaport ping yuan
ELSE
IF <uid.040004113>
text 335 325 <more> 23//fireisland wu
ELSE
IF <uid.040004114>
text 188 8 <more> 24//northlands ji

[DIALOG d_capture TEXT]
Capture the town of
//<name>
<name>
.
.
.

its finding the name correctly, but it is NOT moving it around the dialog...
its place the name in the first spot - text 90 150

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 10-27-2015 07:43 AM by x77x.)
10-27-2015 06:37 AM
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: #2
RE: IFs possible in the text portion of a gump?
forget the [DIALOG d_cature TEXT]

Instead, use DTEXT in [DIALOG d_capture]

IF <uid.040004100>
Dtext 90 150 <more> 11//brit-xuchang
ENDIF
10-27-2015 07:08 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: #3
RE: IFs possible in the text portion of a gump?
so...

IF <uid.040004100>
Dtext 90 150 <more> Xu Chang//brit-xuchang
ENDIF
IF <uid.040004101>
Dtext 10 90 <more> Chang An//yew-changan
ENDIF
IF <uid.040004102>
text 150 120 <more> Luo Yang//cove-luoyang
ENDIF
IF <uid.040004103>
Dtext 185 45 <more> Ye//minoc-ye
ENDIF
ect...

NO ELSES?
that doesnt work...

this dont work either

IF <uid.040004100>
Dtext 90 150 <more> Xu Chango//brit-xuchang
ELSE
IF <uid.040004101>
Dtext 10 90 <more> Chang An//yew-changan
ELSE
IF <uid.040004102>
Dtext 150 120 <more> Luo Yang//cove-luoyang
ELSE
IF <uid.040004103>
Dtext 185 45 <more> Ye//minoc-ye
ELSE

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 10-27-2015 07:51 AM by x77x.)
10-27-2015 07:23 AM
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: #4
RE: IFs possible in the text portion of a gump?
IF
ELSE
IF
ELSE

makes no sense.

You either use

IF
ENDIF

or

IF
ELSEIF
ENDIF

or

IF
ELSE
ENDIF

what is IF <uid.040004102> ? That doesn't seem to make any sense either
(This post was last modified: 10-27-2015 08:07 AM by pointhz.)
10-27-2015 07:56 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: #5
RE: IFs possible in the text portion of a gump?
Code:
IF <uid.040004100>
Dtext 90 150 <more> Xu Chango//brit-xuchang
ELIF <uid.040004101>
Dtext 10 90 <more> Chang An//yew-changan
ELIF <uid.040004102>
Dtext 150 120 <more> Luo Yang//cove-luoyang
ELIF <uid.040004103>
Dtext 185 45 <more> Ye//minoc-ye
ELSE
...
ENDIF

Grandmaster Localhost Admin
10-27-2015 07:57 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: #6
RE: IFs possible in the text portion of a gump?
still nothing...

Code:
IF <uid.040004100>
Dtext 90 150 <more> Xu Chango//brit-xuchang
ELIF <uid.040004101>
Dtext 10 90 <more> Chang An//yew-changan
ELIF <uid.040004102>
Dtext 150 120 <more> Luo Yang//cove-luoyang
ELIF <uid.040004103>
Dtext 185 45 <more> Ye//minoc-ye
ELIF <uid.040004104>
Dtext 165 90 <more> Xia Pi//wind-xiapi
ELIF <uid.040004105>
Dtext 200 70 <more> Shou Chun//vesper-shouchun
ELIF <uid.040004106>
Dtext 320 105 <more> Jian Ye//moonglow-jianye
ELIF <uid.040004107>
Dtext 180 200 <more> Jiang Ling//bucs-jiangling
ELIF <uid.040004108>
Dtext 250 110 <more> Chai Sang//njulem-chaisang
ELIF <uid.040004109>
Dtext 255 198 <more> Jiang Xia//magincia-jiangxia
ELIF <uid.04000410a>
Dtext 240 240 <more> Chang Sha//ocllo-changsha
ELIF <uid.04000410b>
Dtext 120 255 <more> Cheng Du//trinsic-chengdu
ELIF <uid.04000410c>
Dtext 20 205 <more> Han Zhong//skara-hanzhong
ELIF <uid.04000410d>
Dtext 200 320 <more> Yong An//serpents-yongan
ELIF <uid.04000410e>
Dtext 80 350 <more> Jiang Zhou//jhelom-jiangzhou
ELIF <uid.04000410f>
Dtext 412 290 <more> Jian Ning//papua-jianning
ELIF <uid.040004110>
Dtext 381 365 <more> Yun Nan//delucia-yunnan
ELIF <uid.040004111>
Dtext 280 35 <more> Xiang Ping//snowlands xiang ping
ELIF <uid.040004112>
Dtext 318 218 <more> Ping Yuan//seaport ping yuan
ELIF <uid.040004113>
Dtext 335 325 <more> Wu//fireisland wu
ELIF <uid.040004114>
Dtext 188 8 <more> Ji//northlands ji
ELSE
RETURN 0
ENDIF

im trying to use 1 gump for 21 different townstones

its checking to see which townstone this is
and putting up the correct name on the map, in the correct location

shouldnt it be something like IF (<uid>==040004100) ??

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 10-27-2015 08:08 AM by x77x.)
10-27-2015 08:06 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: #7
RE: IFs possible in the text portion of a gump?
(10-27-2015 08:06 AM)x77x Wrote:  im trying to use 1 gump for 21 different townstones

its checking to see which townstone this is
and putting up the correct name on the map, in the correct location

shouldnt it be something like IF (<uid>==040004100) ??
Is the town stones has unique name, or better TAG's(HEX or DEC)?

Grandmaster Localhost Admin
(This post was last modified: 10-27-2015 08:13 AM by Kanibal.)
10-27-2015 08:12 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: #8
RE: IFs possible in the text portion of a gump?
they are all named, but i think it would be better check for the correct serial

BUT they are all tagged

TAG.namez="xuchang"
TAG.namez="changan"

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 10-27-2015 08:23 AM by x77x.)
10-27-2015 08:21 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: #9
RE: IFs possible in the text portion of a gump?
(10-27-2015 08:21 AM)x77x Wrote:  they are all named, but i think it would be better check for the correct serial
facepalm.jpg

You shoul'd check ITEMDEF or DEFNAME better.

Grandmaster Localhost Admin
10-27-2015 08:25 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: #10
RE: IFs possible in the text portion of a gump?
so you think this?

IF <tag.xuchang>
Dtext 90 150 <more> Xu Chang//brit-xuchang
ELIF <tag.changan>
Dtext 10 90 <more> Chang An//yew-changan
ELIF <tag.luoyang>
Dtext 150 120 <more> Luo Yang//cove-luoyang

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 10-27-2015 08:28 AM by x77x.)
10-27-2015 08:27 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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