Difference between revisions of "Scripting Tutorial: My First Creature Script"
Jump to navigation
Jump to search
Scripting Tutorial: My First Creature Script (edit)
Revision as of 13:02, 3 August 2006
, 13:02, 3 August 2006wikifying lists and improving formatting
imported>JOG (Moved to Category "Scripting Tutorials") |
imported>GhanBuriGhan (wikifying lists and improving formatting) |
||
|
=My First Scripted Creature=
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 gonna 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, what we are going to accomplish.==
==So, where to begin.==
# When its done loading, we shall create the creature first.
▲3) Go in the Creatures->Undead Tab. Find Skeleton under the undead tab
▲4) Right click on any CreatureSkeleton, and hit edit. For example, if you wanted an archer, select CreatureSkeletonArcher and right click. Its up to you. I prefer something weak and unarmed, because he comes back endlessly and blood skeletons from castlevania were unarmed.
▲5) Anyway, for now, just change the ID to something like AaaBloodSkeleton(aaa so its on the top)
▲6) When it asks to create a new form, say yes.
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
begin OnDeath
scn AaaBloodSkeletonsScript
begin OnDeath
PlayMagicShaderVisuals effectSummonMythicDawn 5
scn AaaBloodSkeletonsScript
begin OnDeath
PlayMagicShaderVisuals effectSummonMythicDawn 5
PlaySound AMBThunder
scn AaaBloodSkeletonsScript
begin OnDeath
PlayMagicShaderVisuals effectSummonMythicDawn 5
PlaySound AMBThunder
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)
scn AaaBloodSkeletonsScript
*(one space)
begin OnDeath
PlayMagicShaderVisuals effectSummonMythicDawn 5
PlaySound AMBThunder
Resurrect 1
end
There are a number of things you could do....
▲2) Make a script on a ring\amulet\whatever that summons him
I recommend one, because then you would have to do the same thing with the ring.
| |||