Euflorium: The Eufloria Community

Eufloria => Eufloria Classic => Eufloria Classic Mods => Topic started by: Alex on July 30, 2009, 07:43:39 AM

Title: Script examples
Post by: Alex on July 30, 2009, 07:43:39 AM
Setup script examples

Adding a tree with a starting level of 2 (need to level up once to plant the root)
(click to show/hide)

Add a tree with a flower or mine
(click to show/hide)

Add a superseedling tree
(click to show/hide)

Have an asteroid with superseedlings on it at the start
(click to show/hide)



Level logic examples


Adding a scripted section of a fixed duration:
(click to show/hide)
Of course, you can also check the time any other point e.g.
(click to show/hide)


Drawing examples

Here's a code block that shows some stuff being drawn in the level draw routine, including drawing stuff at a fixed size on screen, checking to see if something is on the screen and levels of detail:
(click to show/hide)

callback examples

oneshot asteroid taken script example
(click to show/hide)

etc
Title: Re: Script examples
Post by: annikk.exe on January 20, 2010, 10:41:51 PM
So did you just forget to add the code to your post or something?  :>
Title: Re: Script examples
Post by: Rudolf on January 23, 2010, 06:33:54 PM
No it is all there under the spoiler buttons.
Does this now work for you?
Title: Re: Script examples
Post by: annikk.exe on January 24, 2010, 12:21:05 AM
Not seeing any spoiler buttons...
I don't think this is merely a graphical bug because when I quote the OP, there is still no code in there.

I administer an SMF-based forum for the band Angelspit.  If you have access to the admin panel, check the member rank permissions - maybe I am erroneously not allowed to see spoiler'd stuff or something? :>

I'll go update my browser and flash and java and so on in the mean time, in case it's that.  Win XP, Firefox, incidentally.
Title: Re: Script examples
Post by: Rudolf on January 24, 2010, 12:31:31 AM
Hmm I think you may have been right...
Which would explain why so few user levels have been made.... :-(

Try again.. see if that is better..
Title: Re: Script examples
Post by: annikk.exe on January 24, 2010, 12:46:52 AM
Working now ^_^
Title: Re: Script examples
Post by: Harsha on March 22, 2010, 09:11:05 PM
Hey non members will not be able to see the spoiler buttons at all.. Is that okay? :-\
Title: Re: Script examples
Post by: Eufloria Admin on March 22, 2010, 09:54:57 PM
Fixed.
Title: Re: Script examples
Post by: Lonnie Soter on July 26, 2011, 03:46:43 PM
I do not see!   :( :( :(
Title: Re: Script examples
Post by: Mihhaelo on July 27, 2011, 12:32:03 AM
Are you using Chrome to view the forums? The spoiler buttons never have seemed to work in chrome. You could try using a different browser to see if that helps?
Title: Re: Script examples
Post by: hitman271 on August 10, 2011, 10:04:41 AM
you could just not use spoilers
Title: Re: Script examples
Post by: annikk.exe on August 10, 2011, 06:04:15 PM
The Spoiler mod in use on these forums is 0.6a.
The latest version is 0.7.2a.

It's not clear whether the newer version supports Chrome or not, however it might be worth a try upgrading it..?

Alex/Rudolf do you want me to try upgrading?  I will of course take a backup first in case anything goes wrong.  :>
Title: Re: Script examples
Post by: BC wins on August 13, 2011, 06:33:22 AM
ermm, im using chrome, no problems with spoilers :D

altough they do apear like only one lined, but sometimes they do sometimes they dont
~edited by P123 - collapse two posts to one
Title: Re: Script examples
Post by: dragoonreas on August 13, 2011, 04:57:30 PM
ermm, im using chrome, no problems with spoilers :D

altough they do apear like only one lined, but sometimes they do sometimes they dont
~edited by P123 - collapse two posts to one
I've noticed that the height of code block frames get reduced to one line when they're nested within spoiler tags, so you have to scroll through the code with only one line being visible at a time (which is why I usually just copy & paste it to a text editor if I want to read it).

I'm using Safari, but since both Chrome and Safari use Webkit I wouldn't be surprised if fixing the problem on one of these browsers would fix it on the other.