Author Topic: Proper syntax for posting events  (Read 501 times)

We need to devise a proper syntax for events.  Something that contains everything, is easy to look at, and easily made.  Post how you do it/what you think is the best way to write out events on the forums.  The main thing is how easy it is to look at and understand.

The example event you should post is onActivate, self, setcolor red, toggled to be off and event number 1.  Maybe we can agree on a standard for event writing?

1 [-] onActivate -> Self -> setColor 0

If we can all agree on a standard, I can probably make a mod so you can input text into the events menu to paste events in.

I usually go for:
1 [unchecked] onActivate -> Self -> setColor [Colour]

A human-readable method for copy/pasting or saving events like yours would be nice, though. I think [-] should be when the event is enabled and [ ] for when it's disabled, though.

You could look at how Clockturn's (M's) event saver saves.
That way you can copypasta in to a save file and it'll load, too.

Interesting idea, ingame I usually just go OnActivate > Self > SetColor Color, but outside of the game I typically just use images to show the events.

You could look at how Clockturn's (M's) event saver saves.
That way you can copypasta in to a save file and it'll load, too.

Where does it save to?
EDIT: Oh, and, of course, once I ask it I immediately figure out.
Anyways, this is my event save for rainbow vehicles:
Code: [Select]
EVENTS 6
1 33 onActivate Self fireRelay
1 500 onRelay Self fireRelay
1 100 onRelay Self setColor 0
1 200 onRelay Self setColor 1
1 300 onRelay Self setColor 2
1 400 onRelay Self setColor 3
Unfortunately, you may have to change it around depending on what colorset you use.
« Last Edit: June 27, 2009, 11:54:18 AM by Tingalz »