Jump to content

Scripting help


TheNazizombie

Recommended Posts

Hello people of the TESNexus forums(the best place for Oblivion mods), I need help making a script for a door to be opened, you get a message box, cast a spell on you, and then teleport you to another location. If any one would like to help by posting a script for this, or telling me how to script this, I would be greatful ^.^ I am new to scripting in Oblivion, though I have made some decent mods, just never scripted any thing. The spell cast, and the teleport location can be any thing, just leave me a not to where they are.

 

Any help would be appreciated, and your name will be put on the credits!

Link to comment
Share on other sites

I think you need to be a bit more specific as to the design parameters of the desired script. I find myself unable to parse the clauses.

 

Here is my shot in the dark:

 

SCN AAFoggySpecSCRIPT

; Object script applied to a door.

Begin Onactivate
    MessageBox "Die foolish mortal!"
    Cast StandardFireDamageTarget5Master Player
    Player.MoveTo AAScaryXMarkerHeadingInCustomOblivionWorldspace.
End 

Link to comment
Share on other sites

Ok, Here what I need in the order if this helps any one.

1. The player Activates the door

2. A message box Apears saying something, and there are two options

3. If the player hits "yes", a spell will be cast on them(lets say an area fireball spell for this), and they will be teleported to somewhere(lets say The Market District for this)

4. If the player hits "no", nothing happens.

 

if you want any thing more specific, I could post some of the code I already have, and you could check it.

Thanks Again to the people who helped and people who are going to help!

Link to comment
Share on other sites

That's specific enough.

 

Scn SCRIPT
Short Button

Begin OnActivate
Player.messageBox "Saying Something", "Yes", "No"
set button to GetButtonPressed
end

begin gamemode
if button == 0
cast SPELL player
player.moveto PLACE
set button to -15
elseif button == 1
return
set button to -15
endif
end

Link to comment
Share on other sites

  • 2 weeks later...

That's specific enough.

 

Scn SCRIPT
Short Button

Begin OnActivate
Player.messageBox "Saying Something", "Yes", "No"
set button to GetButtonPressed
end

begin gamemode
if button == 0
cast SPELL player
player.moveto PLACE
set button to -15
elseif button == 1
return
set button to -15
endif
end

 

Muchas Gracias!!!

 

sorry for taking a while to get back to you, but I was woking on the building =)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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