Functionality using fun
Replies: 23
by
JustAnyone »
13 Sep 2017, 12:26
First post
Hi,
in this topic I'll try to give a step-by-step guide into fun functionality. Dependent on your current knowledge it might need some time getting...
Last post
I need help
There's any code for alternate type,?
●Like
{type road decoration}
{Type fence}
{Etc}
●Example
{Lamp > wire > lamp > wire....}...
23 Replies
17456 Views
Last post by CERRERA
08 Aug 2020, 19:05
Condition Index
Replies: 41
by
Lobby »
05 Oct 2017, 10:52
First post
A generic condition looks like:
Description
To check for such a condition you would use the code condition :{ type : condition name ,...},...
Last post
You can use variables for that:
41 Replies
21877 Views
Last post by Kulche
01 Apr 2021, 19:02
Virtual Variables
Replies: 9
by
JustAnyone »
31 Jan 2018, 23:23
First post
Virtual variables are variables that are used by the game internally and are exposed for use in fun. See here to learn more about variables in...
Last post
How do I enter when changing demand?
9 Replies
12402 Views
Last post by dc5
19 Mar 2021, 08:04
Action Index
Replies: 28
by
Lobby »
05 Oct 2017, 10:55
First post
A generic action looks like:
Description
To do some actions (iff the corresponding condition is true) you can use the code: actions : ,
Possible...
Last post
There's 2 toasts.
I like toast, but this is one toast too many.
28 Replies
17745 Views
Last post by Imran M
28 Oct 2019, 22:13
is it possible to increase the duration of music playing in fun?
Replies: 2
by
arangasit »
Yesterday, 20:37
First post
there was a problem during the production of the plugin. I made an Easter egg - when you click on the building, a song plays. but out of 3 minutes,...
Last post
That seems to be unknown limitation on some Android devices which we do not know why.
2 Replies
119 Views
Last post by JustAnyone
Today, 12:16
Call Lua from Fun
Replies: 2
by
JustAnyone »
27 Oct 2019, 18:08
First post
If you, for whatever reason, want to combine Fun and Lua: There's an action to call Lua functions from Fun.
On the json side :json
action :{ type...
Last post
Passing of argument values seems wrong my script can't archive my target value from what I've set from fun
2 Replies
7819 Views
Last post by Hadestia
09 Apr 2022, 17:30
Sound with Fun
Replies: 14
by
KINGTUT10101 »
05 Nov 2017, 05:16
First post
Would it be possible to make a building play a sound using fun?
Last post
What is the max length of the sound can it play?
14 Replies
15450 Views
Last post by TheFennekin
20 Mar 2022, 11:40
Date dependent fun condition
Replies: 22
by
JustAnyone »
22 Oct 2017, 20:54
First post
Since 369 there's a condition for fun to check for a specific date/range.
To do so, use condition type: date and define a range using min and max...
Last post
I want add sound fun for nature+ Plugin,it depends on time,such as at day it plays daytime sound when is night it play nighttime sounds, please...
22 Replies
14968 Views
Last post by Kiki012
13 Jul 2021, 07:50
Fun basics
Replies: 9
by
Lobby »
17 Nov 2017, 18:04
First post
Fun is really powerful but complex at the same time. It allows you to write plugins that reacts to user input, build things, destroy things, play...
Last post
How do I create a plugin? How do I create the texture for my building? How?????
9 Replies
13804 Views
Last post by Jeremiah Stephens
07 Feb 2021, 15:56
Animation control
Replies: 9
by
Lobby »
02 Sep 2018, 19:37
First post
An often requested feature is animation control using fun. It's possible in recent versions and looks like that :json
[
{
id :...
Last post
It would be:
handle y : 15,
handle x :0
:)
9 Replies
11685 Views
Last post by CommanderABab
24 Jan 2021, 14:20
Notifications (368)
Replies: 32
by
Lobby »
21 Oct 2017, 23:31
First post
I heard that there's an interest in showing notifications via plugins. So, here we go (version 368):
notify.png
You can define a notification by...
Last post
You sly dog :bt
32 Replies
17492 Views
Last post by KINGTUT10101
27 Oct 2019, 03:02
Variables
Replies: 11
by
Lobby »
13 Jan 2018, 16:30
First post
Wouldn't it be useful to have some sort of state you can access from all of your plugins? That's what variables are for. They're stored globally for...
Last post
Yes, you can just write something like
condition : x>0
or even
condition : y/2 =
==
11 Replies
13444 Views
Last post by Lobby
29 Jun 2019, 22:07
7 Replies
12142 Views
Last post by CommanderABab
09 Feb 2019, 16:47
How to Make a Basic Pathfinding AI
Replies: 1
by
KINGTUT10101 »
13 Dec 2018, 05:07
First post
What do I mean by pathfinding AI? Well, in this context I'm talking about something that is able to detect a target and move towards it, eventually...
Last post
Cool! Very useful. :bc :json
1 Replies
9414 Views
Last post by Kartofun
13 Dec 2018, 15:50
Console commands
by
Lobby »
25 Oct 2018, 19:48
Commands are defined using the meta tag that can be defined in any plugin. It will look like:
meta :{
tags :{
console :{
commands :{
mycommand...
0 Replies
10510 Views
Last post by Lobby
25 Oct 2018, 19:48
Weather manipulation
Replies: 3
by
JustAnyone »
27 Jan 2018, 13:46
First post
Since variables are available it's possible to change weather using something called virtual variables. Virtual variables are variables that are used...
Last post
Are you sure this is the right topic? Dang you beat me to that.
Yes, it changes the weather!
3 Replies
10776 Views
Last post by CommanderABab
27 Jan 2018, 16:59
Forum permissions
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum