Mythruna

Modder's Workbench => Scripting => Topic started by: GaraQuor on October 21, 2012, 07:11:20 PM



Title: Scripted-Object V0.1 by Gara
Post by: GaraQuor on October 21, 2012, 07:11:20 PM
Hello everybody (anew :p )
I have coded a another script for server (and you can be run in solo ? to tested ... )

This script given and interpret script, in games, to object. Oo it's complicated all this XD

In this script you have 2 actions:
-"Action" for start the script of a object. The first click executes the script and the second click return the object at the original state.
-"Select Object" for select the object whom you want to add a script (so you must select the object every time before using the commands).

One object can contain divers script which will be executed in the order of their addition.

Commands:
-"~defaction" for define the first action (or the only action)
-"~addaction" for add other action

Action list:
-"up" for go up the object at z coordinate ; Ex: "~defaction up 2" || "~addaction up 2"
-"down" for go down the object at z coordinate ; Ex: "~defaction down 5" || "~addaction down 5"
-"movex" for move the object at x coordinate ; Ex: "~defaction movex 5" || "~addaction movex 5"
-"movey" for move the object at x coordinate ; Ex: "~defaction movey 5" || "~addaction movey 5"
-"rotate" for rotate the object of x degree ; Ex: "~defaction rotate 90" || "~addaction rotate 90"
-"text:" for adding text on the click "action"; Ex: "~defaction text: hello everybody" || "~addaction text: hello everybody"

Example of use:

For this i have typing:
"~defaction up 2"
(http://img4.hostingpics.net/pics/361056Mythruna1350867689164.png)
(http://img4.hostingpics.net/pics/629010Mythruna1350867689165.png)

Here i have typing:
"~defaction movex -0.5"
"~addaction movey 0.5"
"~addaction rotate 90"
(http://img4.hostingpics.net/pics/494320Mythruna1350867689166.png)
(http://img4.hostingpics.net/pics/850462Mythruna1350867689167.png)

And here:
"~defaction up 1"
"~addaction movex 1"
(http://img4.hostingpics.net/pics/479989Mythruna1350867689168.png)
(http://img4.hostingpics.net/pics/471280Mythruna1350867689169.png)

So the download link is here :D http://www.mythruna-france.tk/download/Scripted-Object.init.groovy.php (http://www.mythruna-france.tk/download/Scripted-Object.init.groovy.php)
Good-Game :p


Title: Re: Scripted-Object V0.1 by Gara
Post by: FutureB on October 21, 2012, 07:20:42 PM
Gara your works mindblowing haha all of a sudden these epic plug in's
i cant wait to test this one :] get some ships sailing along XD


Title: Re: Scripted-Object V0.1 by Gara
Post by: GaraQuor on October 21, 2012, 07:35:04 PM
thanks :D
but I find it a little harder to take in hand
because there are plenty of opportunities so this is necessarily a bit more complex.
A++ :D good night :p (for me XD )


Title: Re: Scripted-Object V0.1 by Gara
Post by: Moonkey on October 21, 2012, 10:38:15 PM
Aha, nice work. This could SO work for push doors


Title: Re: Scripted-Object V0.1 by Gara
Post by: Michael on October 22, 2012, 01:30:33 PM
I'm jealous of you :(


Title: Re: Scripted-Object V0.1 by Gara
Post by: EthnWntr on April 03, 2013, 10:57:57 PM
Great work gara, I am really impressed with your talent.


Title: Re: Scripted-Object V0.1 by Gara
Post by: GaraQuor on April 04, 2013, 05:17:13 PM
thanks :) but i don't have a "talent"
I have just occasionally an idea and with my basic coding in java, i do what I can do ;)


Title: Re: Scripted-Object V0.1 by Gara
Post by: Michael on April 04, 2013, 05:20:12 PM
The images aren't loading for me anymore..


Title: Re: Scripted-Object V0.1 by Gara
Post by: GaraQuor on April 04, 2013, 05:25:04 PM
Yes, with me also
I am going reupload the picture ;)
... tomorrow :p


Title: Re: Scripted-Object V0.1 by Gara
Post by: Teknonick on April 04, 2013, 06:59:49 PM
Yes, with me also
I am going reupload the picture ;)
... tomorrow :p
You should use Imgur. They aren't known for their stuff disappearing, so they're very reliable. I've seen pictures disappear all over the internet, yet not once with Imgur. Plus, they're free :3