Functionality using fun
Replies: 23
by
JustAnyone »
Wed Sep 13, 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
11114 Views
Last post by DESOLAN
Sat Aug 08, 2020 19:05
Condition Index
Replies: 41
by
JustAnyone »
Thu Oct 05, 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
13522 Views
Last post by Kulche
Thu Apr 01, 2021 19:02
Virtual Variables
Replies: 9
by
JustAnyone »
Wed Jan 31, 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
7995 Views
Last post by dc5
Fri Mar 19, 2021 8:04
Action Index
Replies: 28
by
JustAnyone »
Thu Oct 05, 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
11226 Views
Last post by Imran M
Mon Oct 28, 2019 22:13
Fun basics
Replies: 9
by
JustAnyone »
Fri Nov 17, 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
8645 Views
Last post by Jeremiah Stephens
Sun Feb 07, 2021 15:56
Animation control
Replies: 9
by
JustAnyone »
Sun Sep 02, 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
7047 Views
Last post by CommanderABab
Sun Jan 24, 2021 14:20
Sound with Fun
Replies: 13
by
KINGTUT10101 »
Sun Nov 05, 2017 5:16
First post
Would it be possible to make a building play a sound using fun?
Last post
Use Lua for that
13 Replies
9035 Views
Last post by JustAnyone
Tue Nov 24, 2020 7:50
Call Lua from Fun
Replies: 1
by
JustAnyone »
Sun Oct 27, 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
Is these can local function such as GUI dialog inside that local function?
Thanks in advance
1 Replies
4315 Views
Last post by rjroldan1
Mon Nov 02, 2020 9:37
Notifications (368)
Replies: 32
by
JustAnyone »
Sat Oct 21, 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
10627 Views
Last post by KINGTUT10101
Sun Oct 27, 2019 3:02
Variables
Replies: 11
by
JustAnyone »
Sat Jan 13, 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
8708 Views
Last post by Lobby
Sat Jun 29, 2019 22:07
7 Replies
7932 Views
Last post by CommanderABab
Sat Feb 09, 2019 16:47
How to Make a Basic Pathfinding AI
Replies: 1
by
KINGTUT10101 »
Thu Dec 13, 2018 5: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
6029 Views
Last post by Kartofun
Thu Dec 13, 2018 15:50
Console commands
by
JustAnyone »
Thu Oct 25, 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
6843 Views
Last post by Lobby
Thu Oct 25, 2018 19:48
Date dependent fun condition
Replies: 21
by
JustAnyone »
Sun Oct 22, 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
Wait, how can action be executed at random day of the year? :calc
21 Replies
9216 Views
Last post by Kulche
Thu Apr 26, 2018 20:26
Weather manipulation
Replies: 3
by
JustAnyone »
Sat Jan 27, 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
6966 Views
Last post by CommanderABab
Sat Jan 27, 2018 16:59
9 Replies
7523 Views
Last post by CommanderABab
Wed Nov 08, 2017 18:31
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