Jump to content


Sticz

Member Since 28 Aug 2004
Offline Last Active Apr 14 2009 03:47 AM

Posts I've Made

In Topic: Scripting Difficulties

24 July 2008 - 02:33 AM

As a point of reference should anyone else be attempting a similar spell, here is what someone came up with for me:

ScriptName MyHouseSCRIPT

ref pLocation1
ref pLocation2
ref pLocation3
short iButton

begin ScripEffectStart

if ( getStage, Dark01Knife >= 40 )
set pLocation1 to DarkSancDoorSoundREF

if ( getStage, TG11Heist == 160 )
set pLocation2 to TGGateREF

if ( GetStage, MQ04 >= 50 )
set pLocation3 to cloudRulerGateREF
MessageBox "Where do you wish to travel?" , "Wayside Manor" , "Dark Sanctuary", "Dareloth's House", "Cloud Ruler Temple", "Nowhere"

else
MessageBox "Where do you wish to travel?" , "Wayside Manor" , "Dark Sanctuary", "Dareloth's House", "Nowhere"

endif

elseif ( GetStage, MQ04 >= 50 )
set pLocation2 to CloudRulerGateREF
MessageBox "Where do you wish to travel?" , "Wayside Manor" , "Dark Sanctuary", "Cloud Ruler Temple", "Nowhere"

else
MessageBox "Where do you wish to travel?" , "Wayside Manor" , "Dark Sanctuary", "Nowhere"

endif

elseif ( GetStage, TG11Heist == 160 )
set pLocation1 to TGGateREF

if ( GetStage, MQ04 >= 50 )
set pLocation2 to CloudRulerGateREF
MessageBox "Where do you wish to travel?" , "Wayside Manor" , "Dareloth's House", "Cloud Ruler Temple", "Nowhere"

else
MessageBox "Where do you wish to travel?" , "Wayside Manor" , "Dareloth's House", "Nowhere"

endif

elseif ( GetStage, MQ04 >= 50 )
set pLocation1 to CloudRulerGateREF
MessageBox "Where do you wish to travel?" , "Wayside Manor" , "Cloud Ruler Temple", "Nowhere"

else
MessageBox "Where do you wish to travel?" , "Wayside Manor" , "Nowhere"

endif

end


Begin GameMode

set iButton to GetButtonPressed

; did the player press a button?
if iButton > -1

; depending of the button that was pressed in the messagebox, Teleport to a guildhall.
playSound DRSOblivionGateOpen

;Determine button
if ( iButton == 0 )
player.MoveTo, MyHOUSEGATEREF

elseif ( iButton == 1 )
if ( pLocation1 != 0 )
player.moveTo, pLocation1
endif

elseif ( iButton == 2 )
if ( pLocation2 != 0 )
player.moveTo, pLocation2
endif

elseif ( iButton == 3 )
if ( pLocation3 != 0 )
player.moveTo, pLocation3
endif

endif

endif

end

Hope this helps someone.


Sticz

In Topic: Scripting Difficulties

21 July 2008 - 09:10 PM

Ok, after alot of trial and error, this is what I have:

ScriptName MyHouseSCRIPT

; This is the script that runs when using the Teleport spell
int iButton

Begin ScriptEffectStart
; Open messagebox for selecting desired Teleport destination.
MessageBox "Where do you wish to travel?" , "Wayside Manor" , "Dark Sanctuary", "Dareloth's House", "Cloud Ruler Temple", "Nowhere",

end

Begin GameMode
set iButton to GetButtonPressed

; did the player press a button?
if iButton > -1
; depending of the button that was pressed in the messagebox, Teleport to a guildhall.
playSound DRSOblivionGateOpen
if iButton == 0
player.MoveTo MYHOUSEGATEREF
endif

if iButton == 1 && getstage Dark01Knife >= 40
player.MoveTo DarkSancDoorSoundRef
Else
TriggerHitShader 3
Message "You have not earned this location"
endif

if iButton == 2 && GetStage TG11HEIST == 160
player.MoveTo TGGateREF
Else
TriggerHitShader 3
Message "You have not earned this location"
endif

if iButton == 3 && Getstage MQ04 >= 50
player.MoveTo cloudrulergateREF
Else
TriggerHitShader 3
Message "You have not earned this location"
endif

endif
End





HOWEVER: This is a really lazy work around. I would rather have the buttons ("Wayside Manor" , "Dark Sanctuary", etc.) be 'activated' with variables, but I tried that several ways and to no avail. Does anyone know of a way to set up those buttons as variables? This script works with the only hitch that button number 4 seems to always default to one of the other button "else" conditions. I am not sure why.

Any expertise would be very welcome.

Sticz

In Topic: Making Static Items

19 July 2008 - 11:16 PM

It took me some digging and a few different search engines, but found my own answer:

http://cs.elderscrol...p_by_Step_Guide

Hope this helps someone

In Topic: where can I find Exnem's Eyecandy body replacer?

19 July 2008 - 10:52 PM

http://teseyecandy.com is the main site for Eye Candy. *There are some links to nudity, so please do not venture there if you are easily offended or under the age of 18.


Sticz

In Topic: What is the Easiest way to... X2 - ?????

08 May 2008 - 05:19 PM

Sure thing. I havent been on here in a while and good to see my limited knowledge is useful to someone.

:cheers:  Sticz