Hi,
today two script-“structures” have come to my mind which seem to create endless loops.
Although I’m not sure how the script-engine handles scripts, I think these structures should never ever be used (“no no’s”) without any control mechanism:
...
ENTITY01_SCRIPTNAME_VALUE
{
...
EVENT01
{
...
trigger self EVENT01 // or: "trigger ENTITY01_SCRIPTNAME_VALUE EVENT01"
...
}
...
}
...
...
ENTITY01_SCRIPTNAME_VALUE
{
...
EVENT01
{
...
trigger ENTITY02_SCRIPTNAME_VALUE EVENT02
...
}
...
}
ENTITY02_SCRIPTNAME_VALUE
{
...
EVENT02
{
...
trigger ENTITY01_SCRIPTNAME_VALUE EVENT01
...
}
...
}
...
Reason for posting this:
In the forum I usually visit there are posts which suggests / have the statements that scripts are copied and pasted (whole or partial).
(Is scripting that evil?)
And changing scripts without any or minor knowledge can cause errors.