Rune is a third person action, combat, and adventure games with strong themes from Norse mythology. You play a young Viking trying to uncover the mysteries around recent attacks on your village. The game is played from third person perspective to make the melee combat with a huge variety of weapons more fun, as well as giving you a chance to fully appreciate and explore the complex world.

Post tutorial Report RSS How to Make the Colored Vampire Power Up Effect

How to Make the Colored Vampire Power Up Effect Author: Hollower Last Updated: January 16, 2002 at 10:01:07 AM

Posted by on - Intermediate Mapping/Technical

Originally posted here: How to Make the Colored Vampire Power Up Effect

Mirrored for archival purposes

This began as instructions for Holiday who wanted a blue colored version of the broadsword's vampiric power up. While I was writing I realized it was a slightly bigger job than I first thought and I had to compile the scripts myself to be sure I did it correctly. So I ended up writing this tutorial aimed at a more general audience.

This is mostly a copy-and-paste script job. Not much UScript knowledge is needed. But knowing UScript is how I knew which classes to use, and where to point to them inside the scripts. This idea required several new classes. This tutorial assumes the reader is familiar with the RuneEd class browser, knows how to create new empty classes, and knows how to copy and paste text from one window to another. I didn't cover importing textures. Read a skinning tutorial if you need to know how. Here we go.

IMPORTANT: Use the same package name for all of the new classes you create. If you decide to import a new texture save it in there as well. For this tutorial I used the name BlueVamp. Don't forget. If you accidentally save into RuneI it will damage your copy of Rune.

Create a new class under Weapons->Sword->VikingBroadSword. I named mine BlueVampSword.

Open the VikingBroadSword script and copy the complete SpawnPowerUpEffect() function.

Paste it into the new class.

There is a part that reads class'EffectSkelVampire'
Change it to class'BlueVamp.EffectSkelVampireBlue'
Copy the complete CalculateDamage() function.
Paste it into the new class.

There is a line that reads dam = Super.CalculateDamage(...
Change it to dam = Super(sword).CalculateDamage(...
(Super jumps up one step in the class tree. Since we added this one below and we don't want to do this function twice, we must specify that it is sword we want.)

There is a line that reads vamp = Spawn(class'VampireTrail'...
Change it to vamp = Spawn(class'BlueVamp.VampireTrailBlue'...
Open the default properties for this new sword.

Go to Weapon->PoweredUpSwipeClass.
Change it to class'RuneI.WeaponSwipeBlue'
Feel free to change the PickupMessage to something unique.

The sword is done.

Create a new class under Effects->EffectSkeleton->EffectSkelVampire. Name it EffectSkelVampireBlue.

Once again copy and paste from the original to the new. This time copy the Spawned() function. (it's the only function in there)
There is a part that reads class'CoronaRed'
Change it to read class'BlueVamp.CoronaBlue'

Create a new class under Effects->CoronaRed. Name it CoronaBlue.
Open its default properties. Go to Display->Texture.
For this tutorial I used Texture'RuneFX.lightningcorona'
You might want to choose another or import your own. With the properties window open and a texture selected in the texture browser, pressing the Use button will fill the field with the proper format.

The glow effect is done.

Create a new class under Effects->VampireTail. Name it VampireTrailBlue.
Open its default properties. Go to VampireTrail->SwipeClass.
Change it to class'BlueVamp.BlueVampHealthTrail'

Create a new class under ParticleSystem->WeaponSwipe->WeaponSwipeVampHealthTrail. Name it BlueVampHealthTrail.
Open its default properties. Go to ParticleSystem->ParticleTexture->(0).
For this tutorial I used Texture'RuneFX.beam'

The vampire trail is done.

There are a few things I did not do which I'll leave as a exercise to the reader. If you followed the instructions so far you should be more familiar with the editing process now. There is an effect called VampireReplenish. It is the little red sparks when the vampire trails return. I also did not change the ending pulse effect for which you need two functions PowerupEndingPulseOn() and PowerupEndingPulseOff(). Look at another weapon to see how it's done.

Press F7 to compile the scripts. All done!
This weapon can be summoned in the game as "BlueVamp.BlueVampSword".

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: