Jump to content

Need Some Help With Scripting


Mihael_13

Recommended Posts

I wanted to make some things but could figure any one of them out: :wacko:

1:I want to do a script for a book (no need meshes textures and text,, can figure that out myself) that, when read, adds a sword and a spell* (even better a lesser power) **{see 2}** to you, and when read agein, removes them from your inventory, and that so can be done as many times as needed. now can anyone please help me out with that?

 

2: I wanted to do a script for the sword i mentioned earlyer; a random chance(1/4) of making the victims skin stone-like (like in the petrify spells mod by jackmix69) but instead of killing them instantly just paralizing them and gets a 5 dmg per sec (like an ablility or something added to the victim) and leaving the stone look after theyre dead. and the spell i also mentioned earlyer to remove all of these effects/ability from them ( including the stone look) aswell as a resurrect command if theyre already dead..

 

3: non conected to the two above i just want to add a script to an amulet(new item) that once on you

equip it, a massage** pops out, says some things, you press ok,the amulet teaches you some spells and is removed fom your inventory

 

all help will be apreciated

 

 

*if anyone wants to know about the background of the weapon contact me

**if the content of the messege is realy important contact me aswell

Link to comment
Share on other sites

Here is #1. I'm writing this on-the-fly so it may not be 100% correct but will be very close.

 

scn YourBookScript

short YourBookVar

Begin OnActivate
 if IsActionRef player == 1
if YourBookVar != 1
  set YourBookVar to 1
  player.additem YourSword
  player.addspell YourSpell
else
  set YourBookVar to 2
  player.removeitem YourSword
  player.removespell YourSpell
endif
 endif
End

 

Hopefully this is what you're looking for.

 

Mez

Link to comment
Share on other sites

Here is #3. Again I'm writing this on-the-fly so I hope it works.

 

scn YourAmuletScript

short button

Begin OnEquip
messagebox "blah blah blah", "OK"
End

Begin GameMode
set button to GetButtonPressed
if button > -1
	if button == 0
		player.addspell YourAmuletSpell01
		player.addspell YourAmuletSpell02
		player.unequip YourAmulet
		player.removeitem YourAmulet
	endif
endif
End

 

Mez

Link to comment
Share on other sites

HI and thanx to you my future helper...

I am absolute noob in scripting....

could you please tell me how to add simple selfmade npc's to oblivion? Which programs will i need to download? maybe someone knows a link where i can find those informations....thx alot--- may dibella guide you

Link to comment
Share on other sites

thanx to mezlo, who guided me on my first steps, i compelted all i wanted to do so therse no need for aditional help.

took a lot of time at the tescs wiki but its done, all thats left is testing...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...