Post by Fluffy, Destroyer of Worlds on Jan 21, 2007 16:29:06 GMT -5
Here are a few interesting Morrowind Construction Set Editor scripts for all you aspiring modders out there. Due to the way this forums text editor works, It cannot display the spaces so I replaced them with periods. Be sure to replace these periods with spaces once you put them in a script.
begin cvaAttackCountScript
short count
if ( MenuMode )
......return
endif
if ( player->GetSoundPlaying "Weapon Swish" )
....if ( player->GetItemCount "1W_daedric_soulreaver"=1); replace yourWeaponID with proper weapon ID
........set count to ( count + 1 )
........if ( count > 3 )
.............Messagebox "A VOICE RINGS OUT IN YOUR HEAD: Kill them! Take no mercy! I thirst for blood!" count
.............set count to 0
.........endif
......endif
endif
This little script makes it so whenever you attack with a certain weapon, a message box appears at the bottem of the screen. It works when ever the game system hears the Swish sound which is played everytime you attack. So therefore it works every time. I added in a Count variable so it makes the message box once every 3 strikes.
begin magicbook
;adds a spell when you activate the book
short done
if (done == 1)
.......return
endif
if ( OnActivate == 1 )
.....Player->AddSpell "armor eater" ;replace spell ID with your spell ID
..............set done to 1
...............Activate
endif
End
This script starts once an object is activated. It adds the spell Armor Eater to the PCs spell list, and only once does it work. Replace the Armor Eater with you spell ID. You can also make it add an item to your inventory. Just replace the AddSpell with Player->AddItem "ITEMS ID" (NUMBER OF OBJECTS)
begin BILL_MarksDaedraSummon
; Summon an Daedra when an item is removed from altar
;
; script location: should be placed upon an object on a Daedric Altar
; variables
short done
if ( OnActivate == 1 )
.............if ( done == 1 )
(Two Tabs)Activate
(Two Tabs)return
(One Tab)else
(Two Tabs)Set done to 1
(Two Tabs)PlaceAtPC "Dremora_lord" 1 128 1
(Two Tabs);1 of them, 256 units away, in back (1) of the player
(Two Tabs)Activate
(One Tab)endif
endif
End
This script begins once the PC takes an object. It makes a creature of your choosing appear right behind the PC. Just replace the Dremora_lord with your creature ID. This is a very basic script used many times in the game. This script you push the Tab button however many times it says to space it.
Begin noPickUp
;no wife, no pickup, no mustache.
if ( OnActivate ==1 )
(One Tab)return
endif
End
Very simple script that does not allow the player to pick up an object. Very useful for objects you merely want to display.
begin cvaAttackCountScript
short count
if ( MenuMode )
......return
endif
if ( player->GetSoundPlaying "Weapon Swish" )
....if ( player->GetItemCount "1W_daedric_soulreaver"=1); replace yourWeaponID with proper weapon ID
........set count to ( count + 1 )
........if ( count > 3 )
.............Messagebox "A VOICE RINGS OUT IN YOUR HEAD: Kill them! Take no mercy! I thirst for blood!" count
.............set count to 0
.........endif
......endif
endif
This little script makes it so whenever you attack with a certain weapon, a message box appears at the bottem of the screen. It works when ever the game system hears the Swish sound which is played everytime you attack. So therefore it works every time. I added in a Count variable so it makes the message box once every 3 strikes.
begin magicbook
;adds a spell when you activate the book
short done
if (done == 1)
.......return
endif
if ( OnActivate == 1 )
.....Player->AddSpell "armor eater" ;replace spell ID with your spell ID
..............set done to 1
...............Activate
endif
End
This script starts once an object is activated. It adds the spell Armor Eater to the PCs spell list, and only once does it work. Replace the Armor Eater with you spell ID. You can also make it add an item to your inventory. Just replace the AddSpell with Player->AddItem "ITEMS ID" (NUMBER OF OBJECTS)
begin BILL_MarksDaedraSummon
; Summon an Daedra when an item is removed from altar
;
; script location: should be placed upon an object on a Daedric Altar
; variables
short done
if ( OnActivate == 1 )
.............if ( done == 1 )
(Two Tabs)Activate
(Two Tabs)return
(One Tab)else
(Two Tabs)Set done to 1
(Two Tabs)PlaceAtPC "Dremora_lord" 1 128 1
(Two Tabs);1 of them, 256 units away, in back (1) of the player
(Two Tabs)Activate
(One Tab)endif
endif
End
This script begins once the PC takes an object. It makes a creature of your choosing appear right behind the PC. Just replace the Dremora_lord with your creature ID. This is a very basic script used many times in the game. This script you push the Tab button however many times it says to space it.
Begin noPickUp
;no wife, no pickup, no mustache.
if ( OnActivate ==1 )
(One Tab)return
endif
End
Very simple script that does not allow the player to pick up an object. Very useful for objects you merely want to display.