Difference between revisions of "Category talk:Scripting"

Jump to navigation Jump to search
150 bytes added ,  13:20, 6 April 2006
m
no edit summary
imported>Eallman
imported>Eallman
m
Line 36: Line 36:
:Note the presence of the condition for both <tt>if</tt> and <tt>elseif</tt>; this is mandatory, and if it's omitted and still compiles, that's a compiler bug.  (By the way, use four tildes to sign: <nowiki>~~~~</nowiki>.) &mdash;[[User:Simetrical|Simetrical]] ([[User_talk:Simetrical|talk]]&nbsp;&bull;&nbsp;[[Special:Contributions/Simetrical|contribs]]) 21:13, 4 April 2006 (EDT)
:Note the presence of the condition for both <tt>if</tt> and <tt>elseif</tt>; this is mandatory, and if it's omitted and still compiles, that's a compiler bug.  (By the way, use four tildes to sign: <nowiki>~~~~</nowiki>.) &mdash;[[User:Simetrical|Simetrical]] ([[User_talk:Simetrical|talk]]&nbsp;&bull;&nbsp;[[Special:Contributions/Simetrical|contribs]]) 21:13, 4 April 2006 (EDT)


DO'H!  I'm forgetting by basic programming skills <G>  Oddly, though, the compiler doesn't complain about this- the script just won't run <G>
DO'H!  I'm forgetting by basic programming skills <G>  Oddly, though, the compiler doesn't complain about this- the script just won't run <G> Acutally, there are a number of errors the compiler doesn't catch- I just found a typo where I'd substituted "77" for logical "&&", and nary a peep.


But now I've run into another problem.  I'm trying to build a script that will allow an item to give a scalar skill boost while it's in inventory based on the player's base skill (You get less benefit the higher your base skill is).  Apparently, you can use PLayer.modav with a POSITIVE variable (player.modav var), but you can't decrement the same way (player.modav -var), at least I've found no syntax that the compiler will accept to do this- (I need to do  this to "reset" the skill to its regular level).  Am I correct in assuming this is a missing feature in the compiler, or am I doing something stupid again?
But now I've run into another problem.  I'm trying to build a script that will allow an item to give a scalar skill boost while it's in inventory based on the player's base skill (You get less benefit the higher your base skill is).  Apparently, you can use PLayer.modav with a POSITIVE variable (player.modav var), but you can't decrement the same way (player.modav -var), at least I've found no syntax that the compiler will accept to do this- (I need to do  this to "reset" the skill to its regular level).  Am I correct in assuming this is a missing feature in the compiler, or am I doing something stupid again?


EA
EA
Anonymous user

Navigation menu