MappingHell

Archive => The Mega Archive => Topic started by: Zoocata on October 27, 2011, 12:27:58 AM

Title: Scripting Clan Projects
Post by: Zoocata on October 27, 2011, 12:27:58 AM
Here is where you post MOD ideas, or scripts in general.
Title: Re: Scripting Clan Projects
Post by: Lazy Kat on October 27, 2011, 12:41:32 AM
May I post my ideas Zoocata?
Title: Re: Scripting Clan Projects
Post by: Zoocata on October 27, 2011, 01:59:24 AM
Read the title. "Clan Projects". Emphasis on "clan".
Title: Re: Scripting Clan Projects
Post by: vampirefrog on October 28, 2011, 10:13:48 AM
Ah let him post his ideas  :princess:
Title: Re: Scripting Clan Projects
Post by: Zoocata on October 28, 2011, 05:29:58 PM
Okay :P
Go  ahead.
Title: Re: Scripting Clan Projects
Post by: Lazy Kat on October 30, 2011, 05:53:55 AM
I forgot >.<
Title: Re: Scripting Clan Projects
Post by: Lazy Kat on October 30, 2011, 02:51:31 PM
Oh yeah, I remember!
You should make the weapons, and fps view like Half-Life!
Title: Re: Scripting Clan Projects
Post by: Zoocata on October 31, 2011, 08:04:09 AM
Minecraft script is almost done. I need help with selecting the next cube.
I tried "universaldelta 1" but that made it so you could only break cubes in one direction.
any suggestions?
also, the range is a bit messy. I can go all the way across the map, and still break a brick on the other side XD
Title: Re: Scripting Clan Projects
Post by: Zoocata on October 31, 2011, 11:35:29 PM
ah, forgot to post the script. Here goes:

bind LSHIFT [  digcube ]

digging = 0

digcube = [
if (= $digging 0) [

digging = 1

sleep 1000 [   
// enter edit mode
edittoggle

// clear selections
cancelsel

// keep a consistent gridsize
gridpower 4


// delete the cube we're facing
editface 0 1

// select next cube
universaldelta 1
cancelsel


// return to normal mode
edittoggle

digging = 0
]
]




     
]
Title: Re: Scripting Clan Projects
Post by: unixfreak on November 01, 2011, 01:14:12 AM
Zoocata, this is what i had, doesn't work though as i said (one direction only)
bind LSHIFT [  digcube ]

digging = 0

digcube = [
                if (= $digging 0) [

                        digging = 1

                        // cancel any selection (doesnt seem to work though)
                        cubecancel
                        cancelsel

                        // keep a consistent gridsize
                        gridpower 4


                        // alpha the cube we are digging
                        sleep 50 [
                                edittoggle
                                alpha
                                edittoggle
                        ]

                        sleep 1000 [
                                // enter edit mode
                                edittoggle


                                // delete the cube we're facing'
                                editdel

                                // select the next cube (instead of empty grid)
                                universaldelta 1

                                //return to normal mode
                                edittoggle

                                digging = 0
                        ]
                ]


                //onrelease [ clearsleep ]


]


what is "editface" for and does it work better?