[dismiss]
This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.
Difference between revisions of "Talk:Portal:Scripting"
Jump to navigation
Jump to search
no edit summary
imported>DragoonWraith |
imported>Jordanrooben |
||
Line 1: | Line 1: | ||
== Script Saving Bug == | |||
Okay, I'm new to this whole modding business, so if this is the wrong place to say this please forgive me. Anyway, i've been working on a script for a certain quest I am making. I typed the script up, got a few save errors but fixed them. So now my problem is that when I go to save it nothing happens. When I try to exit out of the window it asks if I want to save the script. If I choose yes nothing happens. If I choose no it exits out the script editing window and the script reverts back to the previous state. Here is the script if it helps. | |||
---- | |||
ScriptName MazonMalkorDialogBox | |||
Short Button | |||
Short ButtonPressed | |||
Short Button2 | |||
Short ButtonPressed2 | |||
Short Button3 | |||
Short ButtonPressed3 | |||
Short DoOnce | |||
Begin OnActivate | |||
If ( GetStage BCIExploringBeastClawIsland <= 5 ) | |||
MessageBox "A pleasure to meet with you, i'm Mazon Malkor. I'm a sailor from Beast Claw Island, a beautiful island off the shore of Anvil. But I, a sailor at heart yearned to explore the world, and found the town of Anvil during my adventures. But, the sea calls to me, and I must leave soon. I'll be heading back to Beast Claw Island soon, and I would be willing to take you with me when I leave. Take some time to think about my offer and come back when you've decided." | |||
Set DoOnce to 1 | |||
SetStage BCIExploringBeastClawIsland 5 | |||
EndIf | |||
If ( GetStage BCIExploringBeastClawIsland == 6 ) | |||
MessageBox "Have you made a decision, will you be joining me?", "Yes", "No" | |||
Set ButtonPressed to 1 | |||
EndIf | |||
End | |||
Begin GameMode | |||
If ( DoOnce == 1 ) | |||
SetStage BCIExploringBeastClawIsland 6 | |||
EndIf | |||
End | |||
Begin GameMode | |||
If ( ButtonPressed == 0 ) | |||
Return | |||
EndIf | |||
Set Button to GetButtonPressed | |||
If ( Button > -1 ) | |||
If ( Button == 1 ) | |||
Return | |||
Set ButtonPressed to 0 | |||
ElseIf ( Button == 0 ) | |||
Player.MoveTo BeastClawDockMazonMalkor | |||
Set ButtonPressed to 0 | |||
MessageBox "If you ever want to go back to Anvil come see me, i'll be glad to be out to sea again." | |||
SetStage BCIExploringBeastClawIsland 10 | |||
EndIf | |||
EndIf | |||
EndIf | |||
End | |||
Begin OnActivate | |||
If ( GetStage BCIExploringBeastClawIsland >= 10 ) | |||
If ( Player.GetInWorldSpace BeastClawIsland !=1 ) | |||
Return | |||
Else | |||
MessageBox "Do you want to go back to Anvil?", "Yes", "No" | |||
Set ButtonPressed2 to 1 | |||
EndIf | |||
End | |||
Begin GameMode | |||
If ( ButtonPressed2 == 0 ) | |||
Return | |||
EndIf | |||
Set Button2 to GetButtonPressed | |||
If ( Button > -1 ) | |||
If ( Button == 1 ) | |||
Return | |||
Set ButtonPressed to 0 | |||
ElseIf ( Button == 0 ) | |||
Player.MoveTo AnvilDockMazonMalkor | |||
Set ButtonPressed2 to 0 | |||
EndIf | |||
EndIf | |||
EndIf | |||
End | |||
Begin OnActivate | |||
If ( GetStage BCIExploringBeastClawIsland >= 10 ) | |||
If ( Player.GetInWorldSpace BeastClawIsland == 1 ) | |||
Return | |||
ElseIf | |||
MessageBox "Do you want to go to Beast Claw Island?", "Yes", "No" | |||
Set ButtonPressed3 to 1 | |||
EndIf | |||
End | |||
Begin GameMode | |||
If ( ButtonPressed3 == 0 ) | |||
Return | |||
EndIf | |||
Set Button3 to GetButtonPressed | |||
If ( Button > -1 ) | |||
If ( Button == 1 ) | |||
Return | |||
Set ButtonPressed3 to 0 | |||
ElseIf ( Button == 0 ) | |||
Player.MoveTo AnvilDockMazonMalkor | |||
Set ButtonPressed to 0 | |||
EndIf | |||
EndIf | |||
EndIf | |||
End | |||
---- | |||
==Scripting Portal== | ==Scripting Portal== | ||
This is awesome. Just sayin'.<br /> | This is awesome. Just sayin'.<br /> |