script editor

Discussion in 'Fallout General Modding' started by Nirran, May 7, 2019.

  1. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    does a ssl script editor exist that can auto indent the ssl code(such as FSE did back in the day)?isnt a big dela but would use if available,searched the web,nothign relavent
     
    Last edited: May 7, 2019
  2. Mr.Stalin

    Mr.Stalin Agent of Enclave Modder

    281
    Oct 29, 2015
    SSE4
    there is a simple automatic indent.
    auto-formatting code (insert spaces)
    code completion, insertion of code fragments by the tab key.

    or do you want some kind of exclusive auto-indent? - describe it, maybe I will add to next version.
     
  3. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    FSE had a configure code option,that indented if blocks with end blocks,worked with most scripts,would be great

    edit : FSE did this
    Code:
             if (random_roll > (100 - CalcCrit(criticalpercent))) then
                begin
                   if (attacker == dude_obj) then
                      begin
                         ten := 1;
                      end
                   if ((Is_Not_Party(attacker)) or ((attacker != dude_obj) and (get_sfall_global_int(4306) == 1))) then
                      begin
                         ten := 1;
                      end
                   else
                      if (Is_Party(attacker)) then
                         begin
                            ten := 1;
                         end
                end
    
    tho id prefer if it did that into

    Code:
            if (random_roll > (100 - CalcCrit(criticalpercent))) then begin
               if (attacker == dude_obj) then begin
                   ten := 1;
                end
                if ((Is_Not_Party(attacker)) or ((attacker != dude_obj) and (get_sfall_global_int(4306) == 1))) then begin
                   ten := 1;
                end else if (Is_Party(attacker)) then begin
                   ten := 1;
                end
             end
    
     
    Last edited: May 8, 2019
  4. Nirran

    Nirran Vault Senior Citizen
    Modder

    Apr 15, 2007
    tyvm for sse4,im loving it