• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Are you ever working on a script, then you re-read what you just wrote and your brain explodes?

Sometimes I need to restudy all my formulas to make sure I am doing everything correctly... and even then sometimes I need to restudy the script to go with it, lol.
 
Haha not rly, but I do oftenly do simple mistakes, ex don't index the cid value or write the function name wrong. And my top nemesis is the paramerers within the functions like function onUse(...) ALWAYS forget those...
But I must say ive gotten alot better with tfs 1.0 since I started working on my rlmap. But I still notice when I debug my scripts that I have forgotten some things.
And haha also I oftenly forget to add the registration to login.lua if im working on some creaturescripts.
 
Not directly but if I review some complex scripts after a month.
 
Not if you understand what you're writing, but sometimes what makes me mad is what I'm writing doesn't work as it ought to do, and it's not a syntax problem
 
Not if you understand what you're writing

Understanding something doesn't mean it isn't overly-complex or difficult to trace.
I'm making complex Telegraphed Attack Spells, all linked to 1 function that has modifiers that can edit the variables in each spell.

I understand what i'm doing. but when you have something like.
Code:
for a = 1, #variable2 do
  for b = 1, #variable4 do
     addEvent(telegraphedSpell[variable3], a*variable6, variable1*b, variable1*b, variable2, variable7)
  end
end
Then you try to back-trace where all the variables lead and make sure they will all work perfectly, in EACH telegraphedSpell function I had to go to bed and look over it again the next day because my brain was overloaded.
 
Maybe because you named the variables a, b and variableX ?
 
Maybe because you named the variables a, b and variableX ?

Was just an example, an actual real-world example would be.
Code:
  for a = 1, range do
     for b = 1, a do
       addEvent(doSpellFunction[spellname], ((castInterval*8)*a), -b, -b, b, 0, 1, 0, 0, false)
     end
   end
Then depending on the spell it would be implamented something like:
Code:
function doWhirlwindSpin(curX, curY, Srange, count, additive, spincount, collisions, affectedList)

now imagine there are over 30 Telegraphed Spell functions (and more planned) that can all be called form the same function but can be edited by the same modifiers such as.
"Quick Heavy Whirlwind Spin", "Delayed Poisonous Whirlwind Spin", "Paralyzing Double Whirlwind Spin", etc all edit the variables in different ways to change each spell a monster can use to act differently.
 
it happens to me when i am scripting for hours.. After a while i lose my concentration and focus, My brain has been overloaded.
 
When you're starting to do too much simple mistakes, it's time to brew a new cup of coffee.
coffee%20drinking%20yogini
 
Yes, my brain sometimes explodes when Im trying to do a script and it just gives errors, so i give up and i then check it again a month later and i realize what i was doing wrong.
These moments just happen to turn me on and make me jizz all over my computer like a honeybear on crack.
 
Write some Ember.js code in CoffeeScript(more fancy), then come back to it few months later. It's magic what happens to your brain. =]
 
Back
Top