About the books of spells!

Post » Wed Jun 20, 2012 3:28 pm

Can i make a book that i can lean more then one spell? Is script or something, because i gonna make
a spell that have 5 differents powers and is not a good idea made 5 books... maybe made just one, expensive but more easy to
manipulate, you know... how can i do this? Thx xD
User avatar
Emily abigail Villarreal
 
Posts: 3433
Joined: Mon Aug 27, 2007 9:38 am

Post » Wed Jun 20, 2012 8:09 pm

You could do that pretty easily.

event OnRead()
Game.GetPlayer().addSpell(SpellProperty1)
Game.GetPlayer().addSpell(SpellProperty2)
Game.GetPlayer().addSpell(SpellProperty3)
Game.GetPlayer().addSpell(SpellProperty4)
endEvent
User avatar
Pawel Platek
 
Posts: 3489
Joined: Sat May 26, 2007 2:08 pm

Post » Wed Jun 20, 2012 4:31 pm

But where i put this code? Is in the book, but in the Script on there? Thx, BTW!
User avatar
Laurenn Doylee
 
Posts: 3427
Joined: Sun Dec 03, 2006 11:48 am

Post » Wed Jun 20, 2012 6:20 pm

You may want to read some scripting tutorials. Cipcsis is a guy on here who is basically the guru of scripting, and he has some great tutorials. That will help you orient yourself.
You put this script (and all scripts, as far as I'm aware) in the scripts box on the item. Open up the item to edit, the box is on the left. Just add a new script and name it whatever you want. Then add Spell type properties named the same as your spells you will be adding. Then auto fill them, and get out of properties.
Now right click the script and hit "edit source". Put the code as I have it above, changing the SpellProperty for the name of your spells. Should work then.
User avatar
Len swann
 
Posts: 3466
Joined: Mon Jun 18, 2007 5:02 pm

Post » Wed Jun 20, 2012 11:45 pm

So dude, i make what you say and give me a compiler error! I don't know why, but is really strange what you say.
I go to my book and put a script over ther, with a name and press OK, just that; than i go to the property and add
a SPELL with reference of my Spell what? The name? because the name of it is begin with numbers, and the Script of this
engine seems to be not acept number like this... sorry for the stuped, but i really confuse. Thx men, i gonna try more times here.
User avatar
Emma Pennington
 
Posts: 3346
Joined: Tue Oct 17, 2006 8:41 am

Post » Wed Jun 20, 2012 10:25 am

well you need to define the spell properties, and point them at the spells you want the book to teach.
User avatar
jasminε
 
Posts: 3511
Joined: Mon Jan 29, 2007 4:12 am

Post » Wed Jun 20, 2012 7:36 pm

Yeah, they don't necessarily have to have the same name as the spell. But, I prefer doing things that way as it saves you a lot of time if you are reusing scripts over and over.
User avatar
Sebrina Johnstone
 
Posts: 3456
Joined: Sat Jun 24, 2006 12:58 pm

Post » Wed Jun 20, 2012 5:16 pm

Did anyone have a tutorial for god sake? kkkk this is really boring, i don't get it yet... well, if not, please give me the tutorials of the script that you
learned men... when i have some time, i study. It's no good way to explain, it is difficult even xD
User avatar
Amy Masters
 
Posts: 3277
Joined: Thu Jun 22, 2006 10:26 am

Post » Wed Jun 20, 2012 9:10 pm

kkkkk?
Voce e brasileiro?
User avatar
Andrew Tarango
 
Posts: 3454
Joined: Wed Oct 17, 2007 10:07 am

Post » Wed Jun 20, 2012 11:23 am

Aff vc também? Se sim, agente tava falando inglês a toa! kkkkk sou sim, ai cara consegui aqui! N?o sei como mas deu certo, vou ver a cagada que fiz. Me passa
o tutorial que você disse, por favor, vai me ajudar muito. Vlw xD
User avatar
AnDres MeZa
 
Posts: 3349
Joined: Thu Aug 16, 2007 1:39 pm

Post » Wed Jun 20, 2012 11:29 am

Aff vc também? Se sim, agente tava falando inglês a toa! kkkkk sou sim, ai cara consegui aqui! N?o sei como mas deu certo, vou ver a cagada que fiz. Me passa
o tutorial que você disse, por favor, vai me ajudar muito. Vlw xD

Nao, sou americano, mas passei algums meses lah. Entao, aqui e. http://www.cipscis.com/skyrim/tutorials/beginners.aspx
Onde mora vc lah? Eu passava meu intercambio em Ribeirao Preto.

Oh, and for everyone else, he seems to have solved his problem, although he doesn't know how he did it.
User avatar
Stephanie Nieves
 
Posts: 3407
Joined: Mon Apr 02, 2007 10:52 pm

Post » Wed Jun 20, 2012 10:23 pm

Nao, sou americano, mas passei algums meses lah. Entao, aqui e. http://www.cipscis.com/skyrim/tutorials/beginners.aspx
Onde mora vc lah? Eu passava meu intercambio em Ribeirao Preto.

Oh, and for everyone else, he seems to have solved his problem, although he doesn't know how he did it.

Hey, you have a good portuguese men. Congrats! I from S?o Paulo, but i know where you stay, i have two frinds in Ribeir?o Preto. Preatty coll, I heard!
Thx for the tutorials, and i get it what i did it xD
Not so dificult, but it scares like devil in ??the first time, assumed!
User avatar
Jhenna lee Lizama
 
Posts: 3344
Joined: Wed Jun 06, 2007 5:39 am

Post » Wed Jun 20, 2012 12:02 pm

Who are your friends in Ribeirao? Maybe I know them. E um mundo pequeno e diminuindo.
User avatar
No Name
 
Posts: 3456
Joined: Mon Dec 03, 2007 2:30 am

Post » Wed Jun 20, 2012 11:36 pm

Who are your friends in Ribeirao? Maybe I know them. E um mundo pequeno e diminuindo.

Caio Vinícios and Rodrigo Faria Alves; we meat in the Left 4 Dead fase xD
User avatar
Paula Ramos
 
Posts: 3384
Joined: Sun Jul 16, 2006 5:43 am

Post » Wed Jun 20, 2012 11:58 am

Nao os conheco.
User avatar
Victoria Bartel
 
Posts: 3325
Joined: Tue Apr 10, 2007 10:20 am

Post » Wed Jun 20, 2012 7:48 pm

Nao os conheco.

Se você conhecesse, eu ficaria assustado cara!
User avatar
Nuno Castro
 
Posts: 3414
Joined: Sat Oct 13, 2007 1:40 am

Post » Wed Jun 20, 2012 8:57 pm

Hey, another question: What code i put when the character read and leaned the book, after this, destroy them (Like a Spell Book)?
User avatar
QuinDINGDONGcey
 
Posts: 3369
Joined: Mon Jul 23, 2007 4:11 pm

Post » Wed Jun 20, 2012 9:54 pm

Hey, another question: What code i put when the character read and leaned the book, after this, destroy them (Like a Spell Book)?

Adding:

self.disable()
Game.GetPlayer().removeitem(self)

Before endevent should do that.
User avatar
rheanna bruining
 
Posts: 3415
Joined: Fri Dec 22, 2006 11:00 am

Post » Wed Jun 20, 2012 9:00 pm

Nope, not work. Do not remove from my inventory, but i have a better way for my book, and if someone knows how to do this code, post plz:
- My book cost 3000 golds, and when you read you learned 4 differents spells. When you do that, the book transform the original cost to
the new cost, 0 golds, so i keep the book but i can selled and gain some golds, got it?

Is better them remove because I wrote some importants stuffs in the book!
User avatar
Sara Johanna Scenariste
 
Posts: 3381
Joined: Tue Mar 13, 2007 8:24 pm

Post » Wed Jun 20, 2012 5:41 pm

The easiest way to make it disappear is to check the "Teaches Spell" area and have one of the spells it teaches in that slot. It will automatically self delete when it teaches that spell.
User avatar
Schel[Anne]FTL
 
Posts: 3384
Joined: Thu Nov 16, 2006 6:53 pm


Return to V - Skyrim