Uh, okay. But the code is pretty long. 3000 lines.
var %nickk = $formatnick($nick)
var %age = $rand(1,30) * $len($1-$100)
var %rch = $rand(1,667)
if (%rch == 1) {
var %pre = Dark Sun
var %char = Gwyndolin
}
elseif (%rch == 2) {
var %pre = Black Dragon
var %char = Kalameet
}
(...)
elseif (%rch == 11) {
var %char = Gwyn
var %suchar = $chr(44)
var %su Lord of Cinder
}
elseif (%rch == 12) {
var %char = Seath
var %su = the Scaleless
}
(...)
var %nn = %pre $+(%prechar,%char,%suchar) %su
var %event = $rand(1,7)
(...........)
This is how the code looks like
now, but I'm completely going to rewrite this. Because.
%even is variable that makes some message appear. One is fusion that gets first 4 characters of the %char and last 4 chars of $formatnick($nick) or vice versa. %nn, as You can see is pretty more complex, because it makes it be like Prefix SubprefixNameSubsufix Sufix. But instead of this, I'm just gonna do few different states and only one variable (or two at most) will be used.
gonna do sth like:
%fullname
%name
%nick
%fusion
And regarding on which script I want, the %rch that was randomized will give different var.
The reason I had prefixes/subprefixes/etc was because I wanted to make %char to be simple name of character but with all pre/sufixes will give its full name. But i got some problems with it because sometimes names are exactly the same as full name, sometimes names are exaclty the same as nicknames etc.
This is what I was recently thinking when I wanted to change it:
Nick: East Kaioshin
Full: East Kaioshin
Name: Shin
Fusion: Shin
Nick: Assylum Demon
Full: Assylum Demon
Name: Assylum Demon
Fusion: Assylum
Nick: Seath the Scaleless
Full: Seath
Name: Seath
Fusion: Seath
Nick: Tracer
Full: Lena Oxton
Name: Lena
Fusion: Lena
Nick: D.Va
Full: Hana Song
Name: Hana
Fusion: Hana Song
Nick: Sam
Full: Samantha Simpson
Name: Samantha
Fusion: Samantha
Nick Full
Name
Fusi/sion
So it will have pretty much such things.
And the script will use different variables in different places, like I want just a fusion name to fusion script, but I want full name to appear when I want it to say full name etc. That's what I thinked.
If this is too complicated to do, I can still make sth like one script:
on *:TEXT:!script*:#: {
if (!$2) { msg $chan Some help with using scripts, saying subscript commands }
elseif ($2 == Fusion) { Fusion script }
elseif ($2 == AnotherScript) { Another Script }
}
So it will be one big script with subscript commands, instead of making it few scripts. Will it be better in my case?
Currently this script is made for automatically happen after sendint 23 messages on chat, so it has
instead of specific text and increases variable, and when it's specific number, then the script happens.
[AUTOSCRIPT]
on *:TEXT:*:#: {
INC %msgScript {
if (%msgScript = 23) { AND THERE IS THE SCRIPT }
The reason I actually wanted it to be universal is because this one was meant to be autoscript, but I have old scripts, using randomizing characters from games etc too and didn't want them to be separated. But I think I can just combine them and remove automation from it.
Will it be better in my case?