Author Topic: Information about creation of magic  (Read 665 times)

0 Members and 1 Guest are viewing this topic.

Offline nemojason

  • Jr. Member
  • **
  • Posts: 62
Information about creation of magic
« on: June 01, 2019, 03:51:22 AM »
Hello, for create magic ,i need some information about :

       
        "menu_pos": 0,
        "effect": 10,
        "multiplier": 1.0,
        "range": 4,
     
        "attacker_effects": {
           
            "zoom": 1.5,
            "duration": 0.84,
            "cast": {
                "point": "bc",
                "yo": -75
            }
        },
        "main_effect": {
            "gfx": "ice_1",
            "sfx": "content/sfx/sound/be/ice3.mp3",
            "duration": 2.0,
            "aim": {
                "point": "bc",
                "anchor": [0.5, 1.0],
                "yo": 60
            },
            "start_at": 0,
            "zoom": 1.9
 
I want to add this line renpy to .json, how can i do? :
image rasdemaree = Movie (channel="movie_dp", play="content/db/gfx/be/aqnimation/rasdemaree.webm")
« Last Edit: June 01, 2019, 10:52:22 AM by nemojason »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Information about creation of magic
« Reply #1 on: June 03, 2019, 07:05:01 AM »
Code: [Select]
"gfx": "ice_1", ==>
Code: [Select]
"gfx": "rasdemaree",
Should do the trick.
Like what we're doing?

Offline nemojason

  • Jr. Member
  • **
  • Posts: 62
Re: Information about creation of magic
« Reply #2 on: June 03, 2019, 08:12:02 AM »
Code: [Select]
"gfx": "ice_1", ==>
Code: [Select]
"gfx": "rasdemaree",
Should do the trick.


My problem is i don't know where put this declaration : image rasdemaree = Movie (channel="movie_dp", play="content/db/gfx/be/aqnimation/rasdemaree.webm")
Must i create a different file .rpy with this line for declare this variable because when i create it in the .json i get an error?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Information about creation of magic
« Reply #3 on: June 03, 2019, 08:29:46 AM »
It needs to be in .rpy file, it doesn't matter where you put the file itself. Normally you'd make a folder of some kind, let's say:

'game/mods/nemojason/my_mod_resourses.rpy'

(name of the file or folder structure doesn't matter)
Like what we're doing?

Offline nemojason

  • Jr. Member
  • **
  • Posts: 62
Re: Information about creation of magic
« Reply #4 on: June 03, 2019, 10:41:08 AM »
It needs to be in .rpy file, it doesn't matter where you put the file itself. Normally you'd make a folder of some kind, let's say:

'game/mods/nemojason/my_mod_resourses.rpy'

(name of the file or folder structure doesn't matter)


Ah good, so in this file ****.rpy i just add this line as declaration inside the file-> i don't need to write anything else?

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: Information about creation of magic
« Reply #5 on: June 03, 2019, 12:43:44 PM »
You'll need the movie sprite itself obviously but yes, it should do the trick.
Like what we're doing?

Offline nemojason

  • Jr. Member
  • **
  • Posts: 62
Re: Information about creation of magic
« Reply #6 on: June 03, 2019, 02:12:47 PM »
You'll need the movie sprite itself obviously but yes, it should do the trick.


Good, i maked the movie sprite in webm but my pb was to insert it in the code lol