[RMXP] Why does this script bug out with array item code being the culprit?

DYNAMIC_TYPE_CHART_VARIABLE_ID = 200
_Typelist=[":NORMAL",":WATER",":FIRE",":GRASS",":ICE","😀RAGON","😛SYCHIC",":FIGHTING",":FAIRY",":ROCK",":GROUND",":FLYING",":BUG",":STEEL","😛OISON",":ELECTRIC","😀ARK"]
@S0=_Typelist.shuffle
@S1=_Typelist.shuffle
@S2=_Typelist.shuffle
@S3=_Typelist.shuffle
@S4=_Typelist.shuffle
@S5=_Typelist.shuffle
@S6=_Typelist.shuffle
@S7=_Typelist.shuffle
@S8=_Typelist.shuffle
@S9=_Typelist.shuffle
@S10=_Typelist.shuffle
@S11=_Typelist.shuffle
@S12=_Typelist.shuffle
@S13=_Typelist.shuffle
@S14=_Typelist.shuffle
@T=@S1[0].to_s

#This is where you define your dynamic type charts.
DYNAMIC_TYPE_CHARTS = {
# <number> is the number identifier for the table. Setting the variable defined
# in DYNAMIC_TYPE_CHART_VARIABLE_ID to this value will use this table.
# NOTE: Don't use 0 as the number, as the variable being 0 will use the
# default type chart as defined in the PBS.
# <type symbol> is the symbol of the type you're defining. For example, :FIRE.
# Each of the arrays defined for :Weaknesses, :Resistances, and :Immunities
# are arrays of type symbols. For example, [:WATER, :GROUND, :ROCK].
#
# <number> => {
# <type symbol> => {
# :Weaknesses => [],
# :Resistances => [],
# :Immunities => []
# }
# }
#
# The examples below show off how this would look. I've only included 4 types
# but for your own tables, you should all every type. If the code doesn't find
# anything defined for your table, it will default to the PBS setup.

# Example 1. Pretty close to normal, except the 4 types I've set are now
# all weak to :NORMAL and resist 😀RAGON
1 => {
:NORMAL => {
:Weaknesses => [@T,
:Resistances => [😀RAGON],
:Immunities => []
},
:FIRE => {
:Weaknesses => [:WATER, :GROUND, :ROCK, :NORMAL],
:Resistances => [:FIRE, :GRASS, :ICE, :BUG, :STEEL, :FAIRY, 😀RAGON],
:Immunities => []
},
:WATER => {
:Weaknesses => [:ELECTRIC, :GRASS, :NORMAL],
:Resistances => [:FIRE, :WATER, :ICE, :STEEL, 😀RAGON],
:Immunities => []
},
:GRASS => {
:Weaknesses => [:FIRE, :ICE, 😛OISON, :FLYING, :BUG, :NORMAL],
:Resistances => [:WATER, :ELECTRIC, :GRASS, :GROUND, 😀RAGON],
:Immunities => []
}
},

# Example 2. The 4 types I've set are now all weak to :GHOST, resist :ICE,
# and are immune to :FAIRY
2 => {
:NORMAL => {
:Weaknesses => [:GHOST],
:Resistances => [:ICE],
:Immunities => [:FAIRY]
},
:FIRE => {
:Weaknesses => [:GHOST],
:Resistances => [:ICE],
:Immunities => [:FAIRY]
},
:WATER => {
:Weaknesses => [:GHOST],
:Resistances => [:ICE],
:Immunities => [:FAIRY]
},
:GRASS => {
:Weaknesses => [:GHOST],
:Resistances => [:ICE],
:Immunities => [:FAIRY]
}
}
}
If I remove the @T code and replace it text then it runs fine. But why it seems a normal Ruby Script?
Do use code tags.
[CODE]text here[/CODE]

What you posted, you have [@T,. You're missing a closing bracket, i.e. [@T],
Thanks for your reply

Original thread: https://forums.rpgmakerweb.com/threads/rmxp-why-does-this-script-bug-out-with-array-item-code-being-the-culprit.166084/