SphereCommunity
DIALOG have a limit? - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: DIALOG have a limit? (/Thread-DIALOG-have-a-limit)



DIALOG have a limit? - x77x - 01-24-2015 04:47 AM

making a dialog

Code:
<SRC.TAG.GSLAIN1>
<SRC.TAG.GSLAIN2>
<SRC.TAG.GSLAIN3>
<SRC.TAG.GSLAIN4>
<SRC.TAG.GSLAIN5>
...
<SRC.TAG.GSLAIN99>
<SRC.TAG.GSLAIN100>
<SRC.TAG.GSLAIN101>
<SRC.TAG.GSLAIN102>
<SRC.TAG.GSLAIN103>
<SRC.TAG.GSLAIN104>
<SRC.TAG.GSLAIN105>
<SRC.TAG.GSLAIN106>
<SRC.TAG.GSLAIN107>

anything past 104 wont show up...

or maybe the DIALOG has a TEXT limit


RE: TAG have a 100 limit? - Ben - 01-24-2015 08:03 AM

dialogs do have a data size limit... blame the client


RE: TAG have a 100 limit? - x77x - 01-24-2015 08:34 AM

are you for fuckin real!?

hmmmm
i got it

LAYERS!

im gonna display 2 at the same time then
one on top of the other
and just have the text on the second one

then just close um both out

[DIALOG d_stats BUTTON]
ON=0
DIALOGCLOSE d_stats
DIALOGCLOSE d_stats2

[DIALOG d_stats2 BUTTON]
ON=0
DIALOGCLOSE d_stats
DIALOGCLOSE d_stats2


RE: TAG have a 100 limit? - x77x - 01-26-2015 03:45 AM

how would you even search through something like that?

Code:
<SRC.TAG.GSLAIN1>
<SRC.TAG.GSLAIN2>
<SRC.TAG.GSLAIN3>
<SRC.TAG.GSLAIN4>
<SRC.TAG.GSLAIN5>
...
<SRC.TAG.GSLAIN247>
<SRC.TAG.GSLAIN248>
<SRC.TAG.GSLAIN249>
<SRC.TAG.GSLAIN250>

theres 250 of them

is there a way to search through ALL your tags or a range?

IF (STRCMPI("<src.tag.gslain(1 250)>","Some General")==0)


RE: TAG have a 100 limit? - darksun84 - 01-26-2015 04:08 AM

TAGAT.x.KEY
TAGAT.x.VAL

Key holds the tag name, while val the tag value Tongue


RE: TAG have a 100 limit? - x77x - 01-26-2015 04:45 AM

ummmmmmmmmmm huh?

example please?


also...

after searching how would you add a tag to the next available spot? (1-250)


or am i just going about this all wrong?

i want to keep track of what npcs a player kills


RE: DIALOG have a limit? - XuN - 01-27-2015 01:06 AM

This function will show all your tags:
Code:
[function bla]
for 1 <eval <tagcount>-1>
serv.log Tag n. <dlocal._for>: <tagat.<dlocal._for>.key> = <tagat.<dlocal._for>.val>
endfor

While this one can show you something more specific:
Code:
[function ble]
for 1 250
serv.log tag.yourtag_<dlocal._for> = <tag0.yourtag_<dlocal._for>
endfor

So if you have tag.yourtag_1,2,3...250, it will output their values, you can add an IF check inside to output only if there's a value.