Difference between revisions of "Scripting Tutorial: My First Creature Script"

Jump to navigation Jump to search
m
spelling, punctuation, grammar...
imported>GhanBuriGhan
(wikifying lists and improving formatting)
imported>Juharfalvi
m (spelling, punctuation, grammar...)
by: jackmix69
 
Okay, you guys like creatures yes? how about applying a script to one? Anyone ever play castlevania: sotn\cod? Well, if so, then you will remember the pesky Blood Skeleton, a skeleton soaked in blood that reformed when it died and never stayed dead. Well, we are gonnagoing to script a creature JUST like that. (I have a texture for a blood skeleton that I made, but I am unable to upload it). For now, it'll just look like a normal skeleton, but it will be a new entity.
 
==So, whatWhat we are going to accomplish.==
 
# Make a blood skeleton creature (wontwon't look bloody)
# When it dies, it will fall apart. Then it will reform, you will hear thunder, then it will have a unique fire until it is back up.
 
==So, whereWhere to begin.==
 
# Open up the CS
# When itsit's done loading, we shall create the creature first.
# Go in the Creatures->Undead Tab. Find Skeleton under the undead tab
# Right click on any CreatureSkeleton, and hit editEdit. For example, if you wantedwant an archer, select CreatureSkeletonArcher and right click. ItsIt's up to you. I prefer something weak and unarmed, because he comes back endlessly and blood skeletons from castlevania were unarmed.
# Anyway, for now, just change the ID to something like AaaBloodSkeleton(aaa so itsit's on the top)
# When it asks to create a new form, say yes.
 
==Now, we shall make the script.==
 
Go under Gameplay->Edit Scripts. A little text thingy will pop up. Go under File->New and we must first define our scriptname. Make sure Script Type is Object (tab in edit script box)
 
 
scn AaaBloodSkeletonsScript
 
now that thatsthat's defined, we can now begin. When he dies, we want the script to commence. soSo, we are gonnagoing to use the OnDeath command.▼
 
▲now that thats defined, we can now begin. When he dies, we want the script to commence. so, we are gonna use the OnDeath command.
 
 
begin OnDeath
 
 
so, so far it should look like
 
 
scn AaaBloodSkeletonsScript
begin OnDeath
 
 
Good. We defined the scriptname and the command. Now, we want the "Unholy Fire"
 
so, now we add....
 
 
PlayMagicShaderVisuals effectSummonMythicDawn 5
 
This line tells us that the unholy fire will last aproxapprox. 5 seconds. Just enough time to get up. HeresHere's what we got so far▼
 
▲This line tells us that the unholy fire will last aprox. 5 seconds. Just enough time to get up. Heres what we got so far
 
 
scn AaaBloodSkeletonsScript
begin OnDeath
PlayMagicShaderVisuals effectSummonMythicDawn 5
 
 
Giggity. We got the unholy fire going. Now we need to state the thunder sound next.
 
 
PlaySound AMBThunder
 
 
This plays the thunder. (Obviously)
 
 
scn AaaBloodSkeletonsScript
PlaySound AMBThunder
 
Now, I know what youryou are thinking. STOP BABYING US AROUND JACKMIX! Heheh....We only have to define the ressurectionresurrection. We cant just type ressurectresurrect, causebecause then he will magically disappear\reappear. Then tell the script to end. In the resurrect, the '''1''' is causing him to come back together.▼
 
==The Finalfinal, full script.==▼
▲Now, I know what your thinking. STOP BABYING US AROUND JACKMIX! Heheh....We only have to define the ressurection. We cant just type ressurect, cause then he will magically disappear\reappear. Then tell the script to end. In the resurrect, the 1 is causing him to come back together.
 
▲==The Final, full script.==
 
Note: Do not add the *(OneSpace)
end
 
See? ItsIt's really not that hard to script, is it?▼
 
Now, werewe are almost done.▼
 
▲See? Its really not that hard to script is it?
 
▲Now, were almost done.
 
Go back under Creatures->Undead->Skeleton. Select the one we created earlier, (AaaBloodSkeleton) and under the script tab select the dots (elipses) and choose AaaBloodSkeletonsScript. Now, he is linking to his script! Congratulations!
There are a number of things you could do....
 
# Highlight your mouse over the Blood Skeleton's ID name in the Skeleton tab (aaabloodskeleton) and jot down those numbers and letters that come down eventually.. Then go ingamein-game and go in the console and type player.placeatme (hex code for creature)
# Make a script on a ring\amulet\whatever that summons him
Have fun with your skelly, play nice you hear?
 
Oh, one last thing. If you have a question, imI'm at the elderElder scrollsScrolls forums just pmPM me :)
 
[[Category:Tutorials]]
Anonymous user

Navigation menu