SkyIndent

Post » Tue Jun 19, 2012 5:30 am

SkyIndent

Can be found on the Creation Kit Wiki
http://www.creationkit.com/Notepad%2B%2B_Setup
  • Beautifies Papyrus source code
  • Indent statement blocks
  • Will capitalize the proper Events / Functions / Statements
Example, messy code
scriptname zz_ourstartupspellsscript extends questformlist property ourspellslist auto;add spells on startupevent oninit()actor player = game.getplayer()int i = 0int size = ourspellslist.getsize()spell ourspell = nonewhile i < size;check to see if spell is valid and in the players spell menuourspell = (ourspellslist.getat(i) as spell)if ourspell && !player.hasspell(ourspell)player.addspell(ourspell)endifi += 1endwhileendevent

Transformed into
ScriptName zz_ourstartupspellsscript Extends QuestFormList Property ourspellslist Auto;add spells on startupEvent OnInit()	Actor player = Game.GetPlayer()	Int i = 0	Int size = ourspellslist.GetSize()	Spell ourspell = None	While i < size		;check to see if spell is valid and in the players spell menu		ourspell = (ourspellslist.GetAt(i) As Spell)		If ourspell && !player.HasSpell(ourspell)			player.AddSpell(ourspell)		EndIf		i += 1	EndWhileEndEvent
User avatar
Victoria Vasileva
 
Posts: 3340
Joined: Sat Jul 29, 2006 5:42 pm

Post » Mon Jun 18, 2012 6:06 pm

This looks like an excellent tool, thanks! I'm sure that I'll use this a lot, especially considering how much time I spend reading others' scripts due to my activity here.

It would be great to get this added to the wiki's http://www.creationkit.com/Notepad%2B%2B_Setup page too.

Cipscis
User avatar
Izzy Coleman
 
Posts: 3336
Joined: Tue Jun 20, 2006 3:34 am

Post » Tue Jun 19, 2012 5:48 am

Looks great! Thank you!
User avatar
Rowena
 
Posts: 3471
Joined: Sun Nov 05, 2006 11:40 am

Post » Tue Jun 19, 2012 4:30 am

Thanks, i added it to the Notepad++ page
User avatar
Vickey Martinez
 
Posts: 3455
Joined: Thu Apr 19, 2007 5:58 am


Return to V - Skyrim