Rallies
Moderators: Scenario Moderators, Plugin Moderators
Re: Rallies
@KoalaGuy , People with Message board, complaining about something that they don't like.
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Rallies
Lobby from a conversation Oct. 21 wrote:Code: Select all
[ { "id":"$notify_test00", "type":"notification", "text":"Hi, I'm a test notification!", "frames":[{"steal":"$anim_people_source01","frame":14}] }, { "id":"$notification_test_building00", "type":"decoration", "width":1, "height":1, "frames":[{"x":480,"y":0,"w":32,"h":16}], "on click fun":[ { "actions":[{"type":"notify","id":"$notify_test00","z":1}] } ] } ]
You define the notification and can then start it in a fun action, here I trigger it if you tap on the building
you can even set some properties for notifications
"important":true will make them blinking red like the fire notification
"immersive":true will show them in a own window
"closeable":false will remove the close button; but I don't know how to close it then...
"show once":true will make that the notification is only shown once in a cities' lifetime
So, you could have a building that spawns cars that are people holding signs with "local only":true and a "speed":0.01, give a notification with "important":true, and "z":1. "z":1 provides the zoom to spot button.





Last edited by Anonymous on 14 Nov 2017, 18:16, edited 1 time in total.
Reason: Outdated definition
Reason: Outdated definition
Re: Rallies
@CommanderABab Horray!
This is what I was looking for! Time to go to work! Thank you very much! BTW, do you guys know what mean ppa/ppaph we see on the RCI?


This is what I was looking for! Time to go to work! Thank you very much! BTW, do you guys know what mean ppa/ppaph we see on the RCI?
Re: Rallies
@CommanderABab , @KoalaGuy, I thought something were missing that I could not connect to make it,
(1) I got confused on where to put the notification part.
Is it like this:
(2) If I switch it to "fun" does that mean it would just generate automatically or I should use "random fun" instead. And what's the description differences of the fun and random fun?
Sorry for many questions. BTW what I meant for rally was "Demonstration" hahaha
(1) I got confused on where to put the notification part.
Is it like this:
Code: Select all
[
{
"id":the dummy building",
"frames":
- whatever else need -
"influence park":-1000 <-- just to show the last line
},
{
"id":"$notify_test00",
"type":"notification",
"text":"Hi, I'm a test notification!",
"frames":[{"steal":"$anim_people_source01","frame":14}]
},
{
"id":"$notification_test_building00",
"type":"decoration",
"width":1,
"height":1,
"frames":[{"x":480,"y":0,"w":32,"h":16}],
"on click fun":[
{
"actions":[{"type":"notify","id":"$notify_test00","z":1}]
}
]
}
]
Sorry for many questions. BTW what I meant for rally was "Demonstration" hahaha
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Rallies
If you put it in fun without any condition, it would appear every day at the same spot.
This placed in a random fun in notification_test_building00
would test if the dummy building is buildable the last day of every game year at the x,y the random function provides.
I think
would go in the dummy building and would need to occur only once.
This placed in a random fun in notification_test_building00
Code: Select all
...
"condition":
{
"type":"and","inner":[
{"type": "date","frame":360, "min": 358,"max":359},
{"type":"buildable","id":"$the dummy building"}
]
},...
I think
Code: Select all
"actions":[{"type":"notify","id":"$notify_test00","z":1}]
Re: Rallies
@CommanderABab , what if I put requirement to it? ie.
Building A spawn car "Horse" and "Notification about Horse". But I'll put requirement.
In order for building A to spawn car "Horse" and "Horse Notification" the requirement is building B.
Building A spawn car "Horse" and "Notification about Horse". But I'll put requirement.
In order for building A to spawn car "Horse" and "Horse Notification" the requirement is building B.
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Rallies
Try it and see...
Re: Rallies
Okay, I'll go check it in a while haha I've just read articles about fun functionalities and it feels great and stressful. But I think the stressful part is when you are a beginner for it.
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Rallies
Remember that requirements are for a building or upgrade to build. 

Re: Rallies
Can car spawner be used with fun by searching a building? Well based on the tutorial, I don't think so. I'm just looking for possibilities.
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Rallies
No, the car spawner has to be in main body.
Re: Rallies
@CommanderABab Hey, I got curious though. What does "p":X do on the car spawner? It accepted the code and tried to observed. But maybe there is more calculated answer for that.
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Rallies
What did you set "p" to? I imagine if it is used, it would be probability a car is spawned each day.
Re: Rallies
I tried both p:1 and p:0.01
Both didn't make a difference. Maybe unless you have 2 or more cars on the cars spawner then the code would translate to: probability which would be spawned most per day.
Since we're still at it, what does p:X do to zone buildings? And how do we get to add borders/Fences when we create zones?
Both didn't make a difference. Maybe unless you have 2 or more cars on the cars spawner then the code would translate to: probability which would be spawned most per day.
Since we're still at it, what does p:X do to zone buildings? And how do we get to add borders/Fences when we create zones?