Help a modder out! Add your scripts to the Wiki!

Post » Wed Jun 20, 2012 6:27 am

I feel having a repository of working scripts to reference would be a huge help for the community so I have created a new page on the Creation Kit Wiki for just that purpose. Here is the link:

http://www.creationkit.com/Community_Script_Repository

Creating an account on the Wiki is super easy and doesn't require much effort. Once you have an account just click on the edit button on the right side of the page then you can easily cut and paste your script, add a few lines explaining what it does and use the buttons at the top of the editing page to add a horizontal line to separate it from the others. I encourage you to add any working script and please explain or document what the script does. Come on and help a modder out!




PS: I couldn't figure out how to add a link to this page to other pages on the Wiki. If someone knows how to do that would you please add a link to the "Subcategories" area on the "Tutorials" page or any other page you think it would belong on.

Thanks!
User avatar
Taylor Tifany
 
Posts: 3555
Joined: Sun Jun 25, 2006 7:22 am

Post » Tue Jun 19, 2012 7:05 pm

Some people have also started a script repository here:
http://tesalliance.org/forums/index.php?/forum/132-skyrim-script-repository/
User avatar
Ross Thomas
 
Posts: 3371
Joined: Sat Jul 21, 2007 12:06 am

Post » Tue Jun 19, 2012 6:40 pm

There's already a http://www.creationkit.com/Complete_Example_Scripts page on the wiki. I've suggested on the wiki that it be merged with this page, as they serve pretty much the exact same purpose.

Cipscis
User avatar
Céline Rémy
 
Posts: 3443
Joined: Sat Apr 07, 2007 12:45 am

Post » Tue Jun 19, 2012 11:37 pm

I am not currently in a position to adds critps to eitehr of the listed source, but feel free to chuck this in on my behalf.

Scriptname brawlModeCheck extends ActiveMagicEffectint property questCheck = 0 autoquest property brawlQuest auto; reference in editor: DGIntimidateQuestquest property fighterQuest auto; reference in editor: c00JorrvaskrFightEVENT onHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)	    if(brawlquest.isrunning()) || (fighterQuest.isrunning())			    questcheck = 1	    else   questcheck = 0	    endif	 ;debug.messagebox("questcheck is" +questCheck)	 ; do whatever stuff you want here using the property "questcheck" to do what you want. 0 when not ina  brawl, 1 when in a brawl.endEVENT

Nifty check that allows you to see if a brawl is happening. Its great if you have stuff happening onHit events that you dont want to occur in a brawl/ only want to occur in a brawl.
User avatar
Samantha Wood
 
Posts: 3286
Joined: Sun Oct 15, 2006 5:03 am

Post » Wed Jun 20, 2012 7:30 am

There's already a http://www.creationkit.com/Complete_Example_Scripts page on the wiki. I've suggested on the wiki that it be merged with this page, as they serve pretty much the exact same purpose.

Cipscis

As the repository linked here does not yet have any content I posted my script to that example script page as I thought splitting things was not such a great idea.
User avatar
Nikki Hype
 
Posts: 3429
Joined: Mon Jan 01, 2007 12:38 pm

Post » Wed Jun 20, 2012 12:05 am

Sorry, I wasn't aware of the other one. I'll make a note on the page I created to go to the page Cipscis linked above. Can we get some links added to other pages on the Wiki to point to that page so others can find it easily? Also can we get a topic pinned to the top of this forum called something like "Looking for a particular script" and put the link in it? That might help prevent the next dunce like myself from creating another similar thread.

Also that page on the wiki is great. It's just what we needed. Whoever is responsible, thanks for creating it!
User avatar
Siidney
 
Posts: 3378
Joined: Fri Mar 23, 2007 11:54 pm

Post » Tue Jun 19, 2012 7:01 pm

I don't think my tiny simple scripts will help anyone.
User avatar
Nikki Morse
 
Posts: 3494
Joined: Fri Aug 25, 2006 12:08 pm

Post » Tue Jun 19, 2012 8:41 pm

I don't think my tiny simple scripts will help anyone.

Actually, the tiny simple scripts are the best! They're great examples of how to manange small stuff. Especially if you comment them with they do.
User avatar
teeny
 
Posts: 3423
Joined: Sun Feb 25, 2007 1:51 am

Post » Wed Jun 20, 2012 4:48 am

The problem with adding my scripts (the few I got) is that they need a lot of context for the reader to understand. Most of the time the script is really simple, but creating the stuff around (such as spells, activators, etc) is a hassle and would require a page of it's own.
User avatar
Czar Kahchi
 
Posts: 3306
Joined: Mon Jul 30, 2007 11:56 am

Post » Wed Jun 20, 2012 8:03 am

Actually, the tiny simple scripts are the best! They're great examples of how to manange small stuff. Especially if you comment them with they do.
That was my intention from day 1 and already acted upon it once. I did this with .InterruptCast() and I worked on getting this to work for about 2 weeks, as I feel its a potentially very useful function for anti-enemy caster scripts. Well it was edited for syntax, and I didn't add a script there since. Until I get full understanding of syntax and getting rid of redundant lines, I'll try again(right now Im testing a resurrection script for animals).

Scriptname resurrection extends activemagiceffect;A script that resurrects animals and NPCs.Keyword property Animal autoKeyword property Human auto;I used keywords as I felt this would bring about the best result.Event OnEffectStart(Actor akTarget, Actor akCaster)				akCaster == Game.GetPlayer()					if akTarget.HasKeyword(Animal)						 akTarget.resurrect()						   elseif akTarget.HasKeyword(Human)							  akTarget.resurrect()endifEndEvent;Keyword property for animal is ActorTypeAnimal, and ActorTypeNPC for Human;The papyrus version of this function revives human actors normally.;They aren't revived in a zombie state.
User avatar
rae.x
 
Posts: 3326
Joined: Wed Jun 14, 2006 2:13 pm


Return to V - Skyrim