PyTFall > PyTFall: General information

Information about creation of magic

(1/2) > >>

nemojason:
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")

Xela:

--- Code: ---"gfx": "ice_1",
--- End code ---
==>
--- Code: ---"gfx": "rasdemaree",
--- End code ---

Should do the trick.

nemojason:

--- Quote from: Xela on June 03, 2019, 08:05:01 AM ---
--- Code: ---"gfx": "ice_1",
--- End code ---
==>
--- Code: ---"gfx": "rasdemaree",
--- End code ---

Should do the trick.

--- End quote ---


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?

Xela:
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)

nemojason:

--- Quote from: Xela on June 03, 2019, 09: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)

--- End quote ---


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?

Navigation

[0] Message Index

[#] Next page

Go to full version