Problems with colour scripts

General Help Questions and Answers

Moderators: L|B, cryoa, Riamus, XMog

Problems with colour scripts

Postby lushlegs » Thu Mar 12, 2009 11:07 am

I have tried loading maybe 10 different colour scripts into remotes and everytime i am having the same problem, the text is repeated like its duplicating itself, ie i get normal text then the colour text underneath. Does anyone have any suggestions as to how i can solve this problem?
lushlegs
Member
Member
 
Posts: 2
Joined: Thu Mar 12, 2009 11:00 am

Re: Problems with colour scripts

Postby Riamus » Thu Mar 12, 2009 3:19 pm

If you use a color script, you have to HALT the default text or you'll get duplicate text. Invision has colors already that you can use without having to worry about that. Beyond that, you may want to ask the author of the script, though I suppose I can take a look if you showed it here.
You can find me at #Invision on irc.irchighway.net or #OldGames on irc.undernet.org if you need me for anything.
User avatar
Riamus
Global Moderator
Global Moderator
 
Posts: 1783
Joined: Fri May 03, 2002 9:01 pm
Location: Massachusetts, USA

Re: Problems with colour scripts

Postby lushlegs » Fri Mar 13, 2009 2:59 am

on *:INPUT:*:{
if (%colourtxton == 1) && ($left($1,1) != ! && $left($1,1) != / && $left($1,1) != `) {
say 15,0?|0,15?|14?|15,14?|1?|8,1 $1- 1,14|?15|?14,15|?0|?15,0|?
haltdef
}
elseif (%colourtxton == 2) && ($left($1,1) != ! && $left($1,1) != / && $left($1,1) != `) {
say 9,0?|0,9?|3?|9,3?|10?|11,10 $1- 10,3|?9|?3,9|?0|?9,0|?
haltdef
}
elseif (%colourtxton == 3) && ($left($1,1) != ! && $left($1,1) != / && $left($1,1) != `) {
say 11,0?|0,11?|12?|11,12?|2?|9,2 $1- 2,12|?11|?12,11|?0|?11,0|?
haltdef
}
elseif (%colourtxton == 4) && ($left($1,1) != ! && $left($1,1) != / && $left($1,1) != `) {
say 13,0?|0,13?|6?|13,6?|5?|4 $1- 5|?13|?6,13|?0|?13,0|?
haltdef
}
elseif (%colourtxton == 5) && ($left($1,1) != ! && $left($1,1) != / && $left($1,1) != `) {
say 8,0?|0,8?|7?|8,7?|4?|8,4 $1- 4,7|?8|?7,8|?0|?8,0|?
haltdef
}
elseif (%colourtxton == 6) && ($left($1,1) != ! && $left($1,1) != / && $left($1,1) != `) {
say 4,0?|0,4|?7?|4,7|?8?|7,8|?9?|8,9|?11?|9,11|?13?|11,13|?6?|13,6|?13 $1- 13,6?|6,13|?11?|13,11|?9?|11,9|?8?|9,8|?7?|8,7|?4?|7,4|?0?|4,0|?
haltdef
}
elseif (%colourtxton == 7) && ($left($1,1) != ! && $left($1,1) != / && $left($1,1) != `) {
say $replacex($1-,$1-,%fcolour $+ $1- $+ %fcolour2)
haltdef
}
}

menu channel {
-
Text colourer
.black+grey:{
set %colourtxton 1
}
.green:{
set %colourtxton 2
}
.blue:{
set %colourtxton 3
}
.pink,purple:{
set %colourtxton 4
}
.red,orange,yellow:{
set %colourtxton 5
}
.rainbow:{
set %colourtxton 6
}
.custom:{
set %colourtxton 7
set %fcolour $input(Change starting text too? (this appears BEFORE your text),eo,FRISHS font colour changer,%fcolour,text)
set %fcolour2 $input(Change ending text too? (this appears AFTER your text),eo,FRISHS font colour changer ending,%fcolour,text)
}
.COLOUR OFF:{
unset %colourtxton
unset %fcolour
unset %fcolour2
}
-
}

Thanks in advance :)
lushlegs
Member
Member
 
Posts: 2
Joined: Thu Mar 12, 2009 11:00 am

Re: Problems with colour scripts

Postby Riamus » Fri Mar 13, 2009 3:58 am

Normally, you want to use the CODE tags around a script so it's easier to read. Anyhow, with INPUT events, you use HALT, not HALTDEF. Also, if you're using this with Invision, you may have some conflicts because of Invision's own coloring parts. You may have to insert such a script within Invision's own INPUT event to avoid conflicts. Also, that's not a very efficient script, though it should work with the change to HALT and making sure it's not conflicting.
You can find me at #Invision on irc.irchighway.net or #OldGames on irc.undernet.org if you need me for anything.
User avatar
Riamus
Global Moderator
Global Moderator
 
Posts: 1783
Joined: Fri May 03, 2002 9:01 pm
Location: Massachusetts, USA


Return to General Help

Who is online

Users browsing this forum: No registered users and 25 guests