I am quite new to modding so please have patience with me. :unsure:
I want a piece of wall to work as a teleportation device.
When you activate it you will get a riddle, if you choose the right answer you will be teleported inside. Pretty cool huh? :clap:
The problem is that it looks like I can't ad a script to the wall... I tried with a torch ring also but no succes How can I make my dreams come true?
This is how far I have gotten with the script itself.
Begin my_first_script
Short controlvar
Short button
If ( OnActivate == 1 )
If ( controlvar == 0 )
MessageBox "Here be riddle of D00M!", "Wrong answer", "Wrong", "Correct answer", "Not correct"
Set controlvar to 1
endif
endif
if ( controlvar == 1 )
set button to GetButtonPressed
if ( button == -1 )
return
elseif ( button == 2 )
MessageBox "Enter"
Player->PositionCell 4204 -2631 -14684 "Castle Solstheim entrance"
set controlvar to 2
else
MessageBox "You shall not pass or something"
set controlvar to -1
Endif
elseif ( controlvar == 2 )
Player->PositionCell 4204 -2631 -14684 "Castle Solstheim entrance"
Set controlvar to 3
endif
End
I am aware of the fact that you only have one try to get in and if you choose the wrong answer you wont be able to enter at all. But that way it is more exciting. bliviongate: