Talk:Scripting Tutorial: My First Spell

From the Oblivion ConstructionSet Wiki
Revision as of 06:15, 20 April 2008 by imported>Qazaaq (→‎Small problem: any other mods checked?)
Jump to navigation Jump to search

Good to see more tutorials coming together. When working on a project I like to set Oblivion to run in windowed mode by full screen more to 0 in Oblivion.ini. While you can't make changes in real-time, it does help you to spot fix problems and refer to scripts and settings without having to quit out of the game entirely. JBurgess 09:21, 8 April 2006 (EDT)

That's a good idea. I'll modify the tutorial. I'm not sure my poor computer could handle running Oblivion and the CS at the same time though :) Mrflippy 15:54, 8 April 2006 (EDT)

How would I do this exact same function, but with a one-time use scroll instead? I have tried everything to make a scroll. But in my testing, unable to get it into my inventory using additem or addspell. --Brainspackle 04:04, 9 April 2006 (EDT)

RemoveAllItems

Do you really want to use RemoveAllItems?

That seems a little drastic. Would that not cause the player's inventory to become blank when the spell is cast? If not, what does it do?

Callie 15:30, 12 April 2006 (EDT)

--Mrflippy 15:35, 12 April 2006 (EDT): Yes, that's what it does. This was a simple script example, and I wanted to do something interesting without going into spawning dynamic containers and returning the objects back to their rightful owners and all that. I don't even know if there's a way to make the NPCs reequip everything once they get it back. Maybe I should change the effect or put in a warning.

Query

Hey this is a great explanation:

but what i don't understand are the small things, such as where to start a new line and why there are spaces where there are spaces.

but anyway, i would like to create a spell that summons three NPC's or creatures at once. and i would like this spell to be added to the players spell repetoire upon the equipping of a ring. How would i go about doing this?

any tips, guidelines or tutorial scripts would be greatly appreciated..

thanks, Luis

Small problem

I made my simple spell. 100 fire damage and area 100. So it definitely should work. Then I saved it as a plugin, opened Oblivion launcher and checked my plugin from the Data Files. Once I get into the game, I type "player.addspell 01000CE8" into console, but I don't get my spell. Yes. I have checked that my spells Form ID is 01000CE8.

Are you sure the new plugin and Oblivion.esm are the only entries checked in the plugin list?
--Qazaaq 07:15, 20 April 2008 (EDT)