Editing Scripting Tutorial: Working with FormLists

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 121: Line 121:
     set nameOffsetY to 0
     set nameOffsetY to 0
     set nameOffsetZ to 10     
     set nameOffsetZ to 10     
    ;PRINT FIRST NAME
 
     set letterList to nameCloud
     set letterList to nameCloud
     Label 1
     Label 1
Line 129: Line 129:
       currentLetter.SetPos Y letterPosY
       currentLetter.SetPos Y letterPosY
       currentLetter.SetPos Z letterPosZ
       currentLetter.SetPos Z letterPosZ
       ;add offsets for next letter
       ;add offsets for next letter
       set letterPosX to letterPosX + letterOffsetX
       set letterPosX to letterPosX + letterOffsetX
       set letterPosY to letterPosY + letterOffsetY
       set letterPosY to letterPosY + letterOffsetY
       set letterPosZ to letterPosZ + letterOffsetZ
       set letterPosZ to letterPosZ + letterOffsetZ
       set count1 to count1 + 1
       set count1 to count1 + 1
     if count1 < ListGetCount letterList
     if count1 < ListGetCount letterList
       GoTo 1
       GoTo 1
     endif
     endif
     ;set position of next name's first letter
     ;set position of next name's first letter
     set letterPosX to firstLetterPosX
     set letterPosX to firstLetterPosX
Line 144: Line 147:
     set letterPosY to letterPosY + nameOffsetY
     set letterPosY to letterPosY + nameOffsetY
     set letterPosZ to letterPosZ + nameOffsetZ
     set letterPosZ to letterPosZ + nameOffsetZ
    ;PRINT SECOND NAME
 
     set letterList to nameBarret
     set letterList to nameBarret
     Label 2
     Label 2
Line 152: Line 155:
       currentLetter.SetPos Y letterPosY
       currentLetter.SetPos Y letterPosY
       currentLetter.SetPos Z letterPosZ
       currentLetter.SetPos Z letterPosZ
       ;add offsets for next letter
       ;add offsets for next letter
       set letterPosX to letterPosX + letterOffsetX
       set letterPosX to letterPosX + letterOffsetX
       set letterPosY to letterPosY + letterOffsetY
       set letterPosY to letterPosY + letterOffsetY
       set letterPosZ to letterPosZ + letterOffsetZ
       set letterPosZ to letterPosZ + letterOffsetZ
       set count2 to count2 + 1
       set count2 to count2 + 1
     if count2 < ListGetCount letterList
     if count2 < ListGetCount letterList
       GoTo 2
       GoTo 2
     endif
     endif
     (etc)
     (etc)
   End
   End

Please note that all contributions to the Fallout3 GECK Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see GECK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)