Jump to content

Scripting Newb in need of assistance.


TerraMcCloud

Recommended Posts

I need help setting up one small script, basically I am trying it up so when the player drinks an item called the "Mead of Challenge" they are taken to the beginning of the challenge dungeon and all items are removed from their inventory.(Items are given within the dungeon)

 

I have the script effect set on the mead as a script effect spell, but when I use the mead nothing happens.

 

this is the script I have set up I probably done it way wrong, if I did please dont be too harsh.

ScriptName AAChallengeLabyrinthInvScript

begin ScriptEffectStart
    
    player.removeallitems AAChallengeDungeonChest
    player.GetInCell AAChallengeDungeonHub

End

Sorry I am the newbiest of newbs at scripts.

 

EDIT: I got the removeallitems bit to work, but the getincell still does not work.

 

EDIT2: Got it somehow, derped about with the scripts and made it work. If any staff wants to they can lock this.

Edited by welchdrew
Link to comment
Share on other sites

I know you said that you've fixed it already, but I did notice this:

 

player.GetInCell AAChallengeDungeonHub
... is actually a query as in:

 

if player.GetInCell AAChallengeDungeonHub 
	Do something
endif
I think you wanted something like:

player.MoveTo AAChallengeDungeonMarker
...where AAChallengeDungeonMarker is an XMarkerHeading that you've placed and named.
Link to comment
Share on other sites

I know you said that you've fixed it already, but I did notice this:

 

player.GetInCell AAChallengeDungeonHub
... is actually a query as in:

 

if player.GetInCell AAChallengeDungeonHub 
	Do something
endif
I think you wanted something like:

player.MoveTo AAChallengeDungeonMarker
...where AAChallengeDungeonMarker is an XMarkerHeading that you've placed and named.

 

 

Yes I figured out I needed a Moveto not a Getincell. :P

Link to comment
Share on other sites

  • Recently Browsing   0 members

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