![]() |
IFs possible in the text portion of a gump? - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: IFs possible in the text portion of a gump? (/Thread-IFs-possible-in-the-text-portion-of-a-gump) Pages: 1 2 |
IFs possible in the text portion of a gump? - x77x - 10-27-2015 06:37 AM Code: [DIALOG d_capture] 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 RE: IFs possible in the text portion of a gump? - pointhz - 10-27-2015 07:08 AM forget the [DIALOG d_cature TEXT] Instead, use DTEXT in [DIALOG d_capture] IF <uid.040004100> Dtext 90 150 <more> 11//brit-xuchang ENDIF RE: IFs possible in the text portion of a gump? - x77x - 10-27-2015 07:23 AM 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 RE: IFs possible in the text portion of a gump? - pointhz - 10-27-2015 07:56 AM 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 RE: IFs possible in the text portion of a gump? - Kanibal - 10-27-2015 07:57 AM Code: IF <uid.040004100> RE: IFs possible in the text portion of a gump? - x77x - 10-27-2015 08:06 AM still nothing... Code: IF <uid.040004100> 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) ?? RE: IFs possible in the text portion of a gump? - Kanibal - 10-27-2015 08:12 AM (10-27-2015 08:06 AM)x77x Wrote: im trying to use 1 gump for 21 different townstonesIs the town stones has unique name, or better TAG's(HEX or DEC)? RE: IFs possible in the text portion of a gump? - x77x - 10-27-2015 08:21 AM 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" RE: IFs possible in the text portion of a gump? - Kanibal - 10-27-2015 08:25 AM (10-27-2015 08:21 AM)x77x Wrote: they are all named, but i think it would be better check for the correct serialfacepalm.jpg You shoul'd check ITEMDEF or DEFNAME better. RE: IFs possible in the text portion of a gump? - x77x - 10-27-2015 08:27 AM 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 |