if there's not much difference than behaviour of getinterior script command (getwindspeed to detect interior as exterior) and so on. could it be done with good ingame speed via ?cell function which would return asked variables from within code / file format, be it average windspeed, weather pattern, name, id, item list, npc's, etc.
or separate it to subcategories.
Code: Select all
short doonce
if (doonce == 0)
cell, balmora (coordinates optional)::getref::npc::randomcount x -> addtopic "where's that guar"
cell, balmora (coordinates optional)::getref::weapon -> set::damage 0
endif
or
Code: Select all
short doonce
if (doonce == 0)
cell, balmora (coordinates optional), getref, npc, randomcount x -> addtopic "where's that guar"
cell, balmora (coordinates optional), getref, weapon -> set, damage 0
endif
don't know if marking :: or something would be reguired as can the getaipackagedone, AIwander search for AIwander part be extended freely to function / list search instead of variables or does it differ?
adding :: is more readable but then again it would be possibly only usability improvement as old style would still be used.
with :: or , it would handle getting interior, exterior, worldspace or anything what someone wants to implement with cell flag.
Code: Select all
if (get, interior == 1)
if (get, exterior == 1)
if (get, worldspace ==1)
------------------------------------------------------------------------------------------
writing if can feel cumbersome after doing a while but without any coding it hard to tell from operators and syntax if it's if, set, get, while, etc. just 2 cents. messing with nested if endif extravaganza there's possibility for syntax highlighting fortunately
other way around long ifs could be lines after if / while statement making it possibly even more readable although long
Code: Select all
if cell
{
balmora
getref
npc
randomcount x
} -> addtopic "where's that guar"
this would take advantage or differentiating special case from one function per line rule.
then again with springs lightly same method could be used
Code: Select all
if ( cell, balmora == 1 )
function (getref, npc, randomcount x) -> addtopic "where's that guar"
function (getref, weapon) -> setdamage 0
endif
which if possible could use same underplaying mechanics.
PS...................
Basically how to counter writing if clauses for every condition in the future or is there possibility for shortcuts ( some are in the document )
don't know alternatives to nested if clauses
1
2
3
2
3
4
2
3
1
2
3
1
than ui and code writing
..writing a spell that summons cushions under feet to act as a stairs and keeping the numbers in 2 with setdelete all in global script. also gotta try with move variables