Rallies

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 14:29

Platform

Rallies

#1

Post by 22Alpha »

Does anyone have a code for rallies? or even an id would probably do. But if you have a sample code for rallies please pm me if it is more convenient for you. I want to learn that part for now.

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 14:29

Platform

Re: Rallies

#2

Post by 22Alpha »

@KoalaGuy , People with Message board, complaining about something that they don't like.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Rallies

#3

Post by CommanderABab »

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
22Alpha wrote:
14 Nov 2017, 02:52
@KoalaGuy , People with Message board, complaining about something that they don't like.
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.

:json :teach :mine :fire :bc
Last edited by Anonymous on 14 Nov 2017, 18:16, edited 1 time in total.
Reason: Outdated definition

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 14:29

Platform

Re: Rallies

#4

Post by 22Alpha »

@CommanderABab Horray! :fire :space

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?

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 14:29

Platform

Re: Rallies

#5

Post by 22Alpha »

@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:

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}]
      }
    ]
  }
]
(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

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Rallies

#6

Post by CommanderABab »

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

Code: Select all

...
            "condition":
            { 
              "type":"and","inner":[
                {"type": "date","frame":360, "min": 358,"max":359},
                {"type":"buildable","id":"$the dummy building"}
              ]
            },...
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

Code: Select all

"actions":[{"type":"notify","id":"$notify_test00","z":1}]
would go in the dummy building and would need to occur only once.

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 14:29

Platform

Re: Rallies

#7

Post by 22Alpha »

@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.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Rallies

#8

Post by CommanderABab »

Try it and see...

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 14:29

Platform

Re: Rallies

#9

Post by 22Alpha »

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.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Rallies

#10

Post by CommanderABab »

Remember that requirements are for a building or upgrade to build. :)

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 14:29

Platform

Re: Rallies

#11

Post by 22Alpha »

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.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Rallies

#12

Post by CommanderABab »

No, the car spawner has to be in main body.

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 14:29

Platform

Re: Rallies

#13

Post by 22Alpha »

@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.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Rallies

#14

Post by CommanderABab »

What did you set "p" to? I imagine if it is used, it would be probability a car is spawned each day.

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 448
Joined: 23 Sep 2017, 14:29

Platform

Re: Rallies

#15

Post by 22Alpha »

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?

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”