[script] looking for opposite functions - blerg!

Post » Mon Nov 19, 2012 2:49 am

This is killing me! Can anyone help me find opposite functions or work-arounds to do the reverse of what these do:
  • http://www.creationkit.com/DrawWeapon_-_Actor (I need to lower, sheath the weapon/fists)
    Idle Property DefaultSheathe AutoaRef.PlayIdle(DefaultSheathe)
  • TeachWord (http://www.gamesas.com/topic/1406655-script-opposite-of-unlockword/) - Ideally looking to lock all current words
    - WIP: http://www.creationkit.com/RemoveShout_-_Actor is looking promising.
  • http://www.creationkit.com/AddToMap_-_ObjectReference (ideally want to hide all map markers with a script)
    Marker.disable()
User avatar
Nicole Elocin
 
Posts: 3390
Joined: Sun Apr 15, 2007 9:12 am

Post » Sun Nov 18, 2012 11:02 pm

http://www.creationkit.com/AddToMap_-_ObjectReference (ideally want to hide all map markers with a script)
for console commands, tmm does this (toggle map markers). not sure about papyrus though
User avatar
Quick Draw III
 
Posts: 3372
Joined: Sat Oct 20, 2007 6:27 am

Post » Sun Nov 18, 2012 12:09 pm

Yeah i've used 'tmm' before but would like to do it with script..

Source engine has a function that can run console commands -- is there something similar in skyrim?
User avatar
Nana Samboy
 
Posts: 3424
Joined: Thu Sep 14, 2006 4:29 pm

Post » Sun Nov 18, 2012 3:48 pm

No, but if you request it the SKSE team might be able to make it accessible via Papyrus.

Cipscis
User avatar
Scared humanity
 
Posts: 3470
Joined: Tue Oct 16, 2007 3:41 am

Post » Sun Nov 18, 2012 4:08 pm

Maybe a way to run a batch file of console commands? (im clutching at staws now!)
User avatar
BRIANNA
 
Posts: 3438
Joined: Thu Jan 11, 2007 7:51 pm

Post » Sun Nov 18, 2012 5:10 pm

Batch files can be created and run, but only via the console. SKSE is your best (and, as far as I know, only) chance of accessing console functions through Papyrus.

Cipscis
User avatar
Jerry Jr. Ortiz
 
Posts: 3457
Joined: Fri Nov 23, 2007 12:39 pm

Post » Sun Nov 18, 2012 12:20 pm

For weapon sheathe you can use this (with Actor aRef)

Idle Property DefaultSheathe AutoaRef.PlayIdle(DefaultSheathe)

For to hide a mapmarker
Marker.disable()
does the trick (but for all markers, that could be painful, or maybe with using a formlist?)
User avatar
Alex Vincent
 
Posts: 3514
Joined: Thu Jun 28, 2007 9:31 pm

Post » Sun Nov 18, 2012 3:25 pm

For weapon sheathe you can use this (with Actor aRef)

Idle Property DefaultSheathe AutoaRef.PlayIdle(DefaultSheathe)

For to hide a mapmarker
Marker.disable()
does the trick (but for all markers, that could be painful, or maybe with using a formlist?)

Thanks!
they both seem to work.. In the end i might not bother with hiding all markers because the form list length would be ridiculous!

Thats 2 out of 3.. Now im working on an unTeachWord function http://www.gamesas.com/topic/1406655-script-opposite-of-unlockword/#entry21458202
User avatar
Julie Serebrekoff
 
Posts: 3359
Joined: Sun Dec 24, 2006 4:41 am

Post » Sun Nov 18, 2012 12:42 pm

You can walk through the FormList, no matter its length, disabling all the markers with a while loop. See http://www.creationkit.com/Complete_Example_Scripts#Cycle_Through_a_List_of_Objects_and_Perform_an_Action_on_Each_Object.28FormLists.29. Unlike Arrays, FormLists don't have a limit, so it's feasible.
User avatar
Lizzie
 
Posts: 3476
Joined: Sun Nov 19, 2006 5:51 am

Post » Sun Nov 18, 2012 10:55 am

You can walk through the FormList, no matter its length, disabling all the markers with a while loop. See http://www.creationkit.com/Complete_Example_Scripts#Cycle_Through_a_List_of_Objects_and_Perform_an_Action_on_Each_Object.28FormLists.29. Unlike Arrays, FormLists don't have a limit, so it's feasible.

Yeah i know, but i'd have to still add ALL the markers to the list.. Which i just don't think i can be bothered doing with this mod.
User avatar
Tiffany Castillo
 
Posts: 3429
Joined: Mon Oct 22, 2007 7:09 am

Post » Sun Nov 18, 2012 6:17 pm

Yeah i know, but i'd have to still add ALL the markers to the list.. Which i just don't think i can be bothered doing with this mod.
Yeah, that would take awhile.
User avatar
jess hughes
 
Posts: 3382
Joined: Tue Oct 24, 2006 8:10 pm


Return to V - Skyrim