Even with the wiki I am a bit lost on scripting

Post » Sun Jun 17, 2012 12:24 pm

Hey everyone I am doing extremely well with anything art/story/technical on the creation kit, working with this new software has been nothing but fun very slick stuff!

Anyway I am lost on the scripting, I am testing things in a new world space and I want to go visit it in game in oblivion I would use this script


scn movemesomehwere

begin Onactivate

player.MoveTo worldmarker0001

end


I don't really get how to translate the same script into papyrus I am just getting tons of compile errors so please if someone could translate that for me I am sure I would understand the new system.

Thank you for reading
User avatar
Laura-Jayne Lee
 
Posts: 3474
Joined: Sun Jul 02, 2006 4:35 pm

Post » Sun Jun 17, 2012 12:27 pm

I know it seems early to bump but wit the speed the forums are moving at my post was at the bottom of the page so hope no one minds.
User avatar
sara OMAR
 
Posts: 3451
Joined: Wed Jul 05, 2006 11:18 pm

Post » Sun Jun 17, 2012 12:22 pm

Try this:

ScriptName movemesomewhere extends ObjectReferenceObjectReference Property myMarker autoevent OnActivate(ObjectReference akActionRef)   game.GetPlayer().moveto(myMarker)endEvent

Once you've attached the script to your activator, you'll need to assign your marker to the myMarker property.
User avatar
Katie Pollard
 
Posts: 3460
Joined: Thu Nov 09, 2006 11:23 pm

Post » Sun Jun 17, 2012 6:12 pm

Thanks for the help imp however with your patch to it

it looks like this


Scriptname AATestmovescript extends ObjectreferenceObjectReference Property MyMarkerevent OnActivate(ObjectReference akActionRef) 	  game.GetPlayer().moveto(MyMarker)endEven

I now get the following errors:

Mismatched input event expecting function

Object reference is not set to an instance of an object


What do I need to do to get this fixed?

mismatched input 'event' expecting FUNCTION
User avatar
lucile
 
Posts: 3371
Joined: Thu Mar 22, 2007 4:37 pm

Post » Sun Jun 17, 2012 6:40 pm

just gonna bump again stuff is moving fast and I want to try and get this resolved to night :)
User avatar
Christina Trayler
 
Posts: 3434
Joined: Tue Nov 07, 2006 3:27 am

Post » Mon Jun 18, 2012 1:30 am

Ok, tried it out, looks like you're just missing the "auto" at the end of "ObjectReference Property MyMarker". Also, there's a missing 't' at the end of "endEvent", but I'm guessing that's a copy/paste error.

The only time you won't be putting "auto" there is if you're defining getter/setter functions.

*Edit - Or defining it as "autoreadonly" instead of "auto".
User avatar
The Time Car
 
Posts: 3435
Joined: Sat Oct 27, 2007 7:13 pm

Post » Sun Jun 17, 2012 10:54 pm

Message property box1 auto: This is a special keyword that you just have to remember to use when you are declaring properties. (Almost all properties will use the "auto" keyword. Don't worry about why this is for now. Just remember to add "auto" when you are declaring properties.).


Do the tutorial ... It takes about 30 minutes :wink:
Edit: Oh b***er ... see above
User avatar
Star Dunkels Macmillan
 
Posts: 3421
Joined: Thu Aug 31, 2006 4:00 pm

Post » Mon Jun 18, 2012 4:44 am

Ok so I still am having problems, I am fine getting scripts to compile at least however it is not moving the player to the marker.


Scriptname AAtestmovescript extends ObjectReference ReferenceAlias Property player autoObjectReference Property JOSHMARKER1 autoEvent OnActivate(ObjectReference akActionRef)   Game.GetPlayer().MoveTo(JOSHMARKER1)EndEvent

That is the code I am using a COC marker heading in a new worldspace titled JOSHMARKER1 the activator is a sarcophagus stripped of scripts with my AAMovescript added, I am frustrated. : (
User avatar
Ana
 
Posts: 3445
Joined: Sat Jul 01, 2006 4:29 am

Post » Mon Jun 18, 2012 2:11 am

Just checking the obvious, as it can be easy to miss. Your script is attached correctly, with properties set up? Plugin saved and loaded?

Cipscis
User avatar
Sophie Louise Edge
 
Posts: 3461
Joined: Sat Oct 21, 2006 7:09 pm

Post » Sun Jun 17, 2012 9:45 pm

Enlighten me as to what properties you're referring to, and yes plugin is saved and loaded. I am just angry now
User avatar
Jeff Turner
 
Posts: 3458
Joined: Tue Sep 04, 2007 5:35 pm

Post » Sun Jun 17, 2012 3:10 pm

I'm referring to your "JOSHMARKER1" property, as it doesn't look like you've used your "player" property. Have you made sure that the value for that property is assigned properly in script tab for the scripted form's dialogue window in the Creation Kit?

Cipscis
User avatar
SaVino GοΜ
 
Posts: 3360
Joined: Mon Sep 17, 2007 8:00 pm

Post » Sun Jun 17, 2012 3:26 pm

So I was trying to do a similar thing and could not get it to work. I used your script, replaced with my variables and it was not kicking off either. Until I went into the script, selected properties and then attached the COCMaker mark to my property name (your Joshmaker1) Now it works great.
I am just using a throne to teleport the player to another location. In this case, the beginning of the dungeon.

Pretty powerful and simple. Thanks for posting and hope you can get your script working.
User avatar
Matthew Aaron Evans
 
Posts: 3361
Joined: Wed Jul 25, 2007 2:59 am


Return to V - Skyrim