Scripting Help needed MD!!

Scripting help, tricks, and tips. How to use the editor.
Post Reply
Redsatori
Posts: 87
Joined: Sun Nov 18, 2007 8:43 pm
Contact:

Scripting Help needed MD!!

Post by Redsatori »

AHHHHHHHHHHHHHHHHHH!!!

MD, my minimalist level has only one life ><!! It was supposed to be infinite lives, I don't know what happened. I would go in and change it, but I have had problems when I go to change something that the scripting I put in there will disappear. Any suggestions would be appreciated.
The world keeps a balance, through mathematics, defined by whatever you've added and subtracted.
Atmosphere, Godlovesugly
It's better to be choking your chicken in hand than to be tossing your rocks off in a bush.
Shin Chan
swartzer
Posts: 144
Joined: Sun Oct 21, 2007 1:38 pm

Post by swartzer »

I'm glad it wasn't actually meant to have only one life. That would be sadistic. In like fifteen tries, the best I've managed to do is take out three of the "flutterbys" before getting cacked. That's a damn good level, though.
MD
Site Admin
Posts: 195
Joined: Sun Aug 12, 2007 2:06 pm

Post by MD »

Redsatori wrote:No, it was supposed to be infinite lives. I don't know what happened, and I can't change it until I get a chance to talk to MD, since I have had issues when going in to an already completed level and the script that I had written not loading as well. And I don't remember what all the piece's numbers are...
Wow, I had no idea there were issues in loading levels, but indeed I tried it for myself and it's not working properly. Here's a workaround though: Open your level, open the editor, hit play, and open the editor again.

I'll get that fixed as soon as i can.

~MD
Geiss
Posts: 77
Joined: Tue Sep 25, 2007 9:52 am

Post by Geiss »

I've experienced this as well when I went back to make edits to Four Corners. First I had to load the level in the editor, then hit the play button in there, then hit p for the pause menu and hit edit again. Then my ai commands would be present. It took several tries to figure out during which my level was unbeatable because the switches were out of order. :oops:
trickstapriest
Posts: 47
Joined: Thu Nov 29, 2007 7:30 pm

Post by trickstapriest »

I have to do the same thing; my AI panel won't even open otherwise.
Another problem, just as annoying if not more so, is about key-presses. Sometimes they don't work at all no matter how much I hit them. Particularly with changing anchors, sometimes it'll lock onto the core and not allow it to cycle through. I can take it off with 'v' to unlock it, but as soon as I try and cycle through it locks on the core again.

I think the option of a 'text only' editor window would be helpful as a way of copying properties of levels easier and handling things like linking on complex maps, but exams come first. Just a suggestion I saw somewhere and wanted to repeat.
Redsatori
Posts: 87
Joined: Sun Nov 18, 2007 8:43 pm
Contact:

Post by Redsatori »

Thanks for the tip MD, it now has the proper number of lives. I like things difficult, but even I cannot beat that level with only one life.
The world keeps a balance, through mathematics, defined by whatever you've added and subtracted.
Atmosphere, Godlovesugly
It's better to be choking your chicken in hand than to be tossing your rocks off in a bush.
Shin Chan
jon99977
Posts: 2
Joined: Sun Jun 15, 2008 6:29 am

Post by jon99977 »

i'll change my levels right now
Sasadad
Posts: 109
Joined: Wed Jan 02, 2008 1:23 pm
Location: Over there... no, a little to the left
Contact:

Post by Sasadad »

Huh? Change your levels? This thread is months old, the problem here has been resolved, I believe.

And jon, if you want to enter your clock level in the contest you need to post it in the topic.
secret1
Posts: 11
Joined: Wed Nov 26, 2008 10:11 pm

Re: Scripting Help needed MD!!

Post by secret1 »

Hi I've just registered, and I need some help in my scripting

What you're now seeing is the problemic part


Image

(In fact I want it to change into orange(ff6600) and become vulnerable at the same time after 3 seconds.
And after another 3 seconds, return to purple(9900ff) and become invincible again)

And the above process is repeated many times


This is my script(which doesn't work....):
AI_makeTrigger,timeRepeat,90,90,col,ff6600,7848
AI_makeTrigger,timeRepeat,90,90,makeVulnerable,7848
How should I change it so that the circle behaves as the above description?
MD
Site Admin
Posts: 195
Joined: Sun Aug 12, 2007 2:06 pm

Re: Scripting Help needed MD!!

Post by MD »

That's a good question, it takes a hint of math to get it like that.

Here's my interpretation of what you're saing:
-the entire cycle takes 6 seconds
-at the start of the cycle it should go orange/vulnerable
-at the middle (3 seconds) it should go purple/invincible

thus:
makeTrigger,timeRepeat,0,180,col,9900ff,1
starting at 0 seconds, repeat every 6 seconds, go purple

makeTrigger,timeRepeat,90,180,col,ff6600,1
starting at 3 seconds, repeat every 6 seconds, go orange

same idea for vulnerable/invincible
Post a link to your level when you're done :)
~MD

ps, is the grey box, that says Plain Square, always so wide? it should only be as wide as the text. Also, seven thousand parts? are you crazy? ;)
secret1
Posts: 11
Joined: Wed Nov 26, 2008 10:11 pm

Re: Scripting Help needed MD!!

Post by secret1 »

MD wrote:That's a good question, it takes a hint of math to get it like that.

Here's my interpretation of what you're saing:
-the entire cycle takes 6 seconds
-at the start of the cycle it should go orange/vulnerable
-at the middle (3 seconds) it should go purple/invincible

thus:
makeTrigger,timeRepeat,0,90,col,9900ff,1
starting at 0 seconds, repeat every 6 seconds, go purple

makeTrigger,timeRepeat,90,180,col,ff6600,1
starting at 3 seconds, repeat every 6 seconds, go orange

same idea for vulnerable/invincible
Post a link to your level when you're done :)
~MD

ps, is the grey box, that says Plain Square, always so wide? it should only be as wide as the text. Also, seven thousand parts? are you crazy? ;)

Certainly I'm not crazy :D
Actually the editor sometimes gone unrespond
When I refresh the page and "recover" my level
The piece no. of the newest piece will add one digit

E.g. 7,8,9,10....
After recover: 80,81,82,83....
After 2nd recover:706,707,708,709....
After 3rd recover:7869,7870,7871,7872....
Etc.

But if you use "My level" to recover your level, the piece no. won't become weird

This is why some pieces are 7806 while others are 567

And to your gray box problem
Sometimes it display normally
Sometimes it is very wide

Maybe there are bugs in the editor :?:

Well sadly my level got overwritten accidentially
So I need to build it alll over again.............


Btw I've just tested the code

It works fine except

It still cannot become orange and vulnerable at the same time, it always turns to blue when it becomes vulnerable.....

Is it impossible to make it orange and vulnerable at the same time?? :?:
User avatar
XxoriginxX
Posts: 10
Joined: Sat Aug 08, 2009 10:09 pm
Location: Far away from you.

Re: Scripting Help needed MD!!

Post by XxoriginxX »

I know this topic hasn't been replied on in a while, but i have a way to fix your problem: Make the vulnerability start 1 frame before the color change. That or switch the commands, from
AI_makeTrigger,timeRepeat,90,90,col,ff6600,7848
AI_makeTrigger,timeRepeat,90,90,makeVulnerable,7848

to
AI_makeTrigger,timeRepeat,90,90,makeVulnerable,7848
AI_makeTrigger,timeRepeat,90,90,col,ff6600,7848
"A wise man can see more from the bottom of a well then a fool can from a mountain top."-Unknown
Post Reply