!GlobalTimerNotExpired("TOPAZDRAGONBREATH","LOCALS") - this means that the timer has expired... in a double-negative sorta way. Try using this trigger in that script instead of GlobalTimerExpired... and see if that helps at all. I know that GlobalTimerExpired tends to sometimes hang or stutter a script... that is why most scripters use !GlobalTimerNotExpired.
K thanx for that tip I guess i'll try it and see.
Okay. Well, have you tried looking for scripting references and guides? I know Sim made a good one. KR doesnt script anymore. In fact, there are few people left that know much about scripting.
No kidding, no wonder few people answer on questions about scripting. Too bad no forum good enough for that topic.
I started to post the code from the script you attached to help explain what is happening , but looked at it more closely. It is not a good script. So much is wrong with it that I can't begin to tell you. It has redundant globals and locals, weird range checks, casts only ForceSpell, duplicated fake triggers, poor melee, etc.
No wonder I get lost when i look at it
. Bad is that many dragons from BPP,
TDD and SoS mega mods suffer from the same problem. Most of the scripts in those mods are kinda same and look really weird. You said something about redundant globals and locals. You mean that some of these globals and locals don't even exist in the game that's why they never work? Or that the way they are coded they never take place? As for the poor melee I noticed it in action the dragon only tried to hit players like 10 times in the whole fight max... As for the forcespell ye i noticed... Not even ReallyForceSpell or Applyspell are used... that's why the dragon is so slow in actions...
I would like to know what kind of immunity opcodes and stat increases you used for your upgrades? It is possible that something has become incompatible... not likely, but possible.
Maybe we can start a scripting forum here at SHS? Liam or Seb?
I mainly increased stats through
NI : stats, number of attacks, resistances, saving throws,
thac0,
AC, added some items like helm for immunity criticals, dragring,ring97 for dragon immunities, as well as add some effects for invisibility detection via script, immunity to backstab and movement rate bonus. Not likely to make things incompatible with just some additions on the cre file don't u think?
Ye a scripting forum would be great indeed.
Thnx for the help nonetheless.
Edited 1: Made loads of changes and additions in the file using some guidance from other creature scripts such as the Weimer's Ritual dragon, KR's brown dragon, LR's Abazigal+Saladrex. The result is way better now though it still needs some improvement. Here it is :
dragtope.BCS 18K
233 downloadsEdited 2 : Meh.. Still the same issue everything seems to work except the topaz dragon breath... Probably needs script changing in the coding. The"spell" topaz dragon breath says in
NI/DLTCP that it deals some minor cold dmg (total of 12d6+12/save for half) and greatly decreases the strength of those hit.
Unfortunately it doesn't work still...
R@d@g@st The Brown
Edited by Radagast-The-Brown, 12 September 2007 - 07:46 PM.