Search found 22 matches

by pk space jam
Mon Jan 20, 2014 8:13 pm
Forum: Old Threads (– September 2014)
Topic: I'm writing my game in Python, I need to bring in RenPy
Replies: 3
Views: 1022

Re: I'm writing my game in Python, I need to bring in RenPy

Ren'Py isn't intended to be embedded in other projects. You'd pretty much have to port your code to run inside Ren'Py. One way to do this is to have a class with a .next() method. label start: $ game = MyGame() while game.next(): pass return Then inside the .next() method, you can call whatever you...
by pk space jam
Thu Jan 16, 2014 9:31 pm
Forum: Old Threads (– September 2014)
Topic: I'm writing my game in Python, I need to bring in RenPy
Replies: 3
Views: 1022

Re: I'm writing my game in Python, I need to bring in RenPy

Bump for this, I have a team of other members making content for the game, please let me know if you are interested!
by pk space jam
Mon Dec 30, 2013 1:11 pm
Forum: Old Threads (– September 2014)
Topic: I'm writing my game in Python, I need to bring in RenPy
Replies: 3
Views: 1022

I'm writing my game in Python, I need to bring in RenPy

Hi there! Are you familiar with both ren py and python? I have a team including some members from the site and others and we are all making a game together, but as i tried writing everything in renpy first, i was getting all kinds of bugs in the interpeter. So i have decided to write everything in p...
by pk space jam
Sun Nov 24, 2013 10:50 pm
Forum: Ren'Py Questions and Announcements
Topic: expected statement error help me!
Replies: 1
Views: 484

expected statement error help me!

What have i screwed up here? syntax? menu battle_choices: 'What will you do?': if psi_flag == False: 'Attack': python: attack_roll = rolld100() if attack_roll <= weapon_skill: damage = roll3d6() monster_stats[enemy[1]] -= damage return else: return renpy.label.enemy_attacls_party '%s is hit for %d!'...
by pk space jam
Sat Nov 23, 2013 11:05 pm
Forum: Ren'Py Questions and Announcements
Topic: Will this work as a combat engine?
Replies: 2
Views: 664

Re: Will this work as a combat engine?

Anything I could do to get some help here? :)
by pk space jam
Thu Nov 21, 2013 10:58 pm
Forum: Ren'Py Questions and Announcements
Topic: Will this work as a combat engine?
Replies: 2
Views: 664

Will this work as a combat engine?

Hows this looking so far? figured I would post here before I go any further, if you need me too i can post more code, thanks in advance! #Combat Engine label combat_engine: python: def player_attacking(enemy): intuition_check_result = rolld100() get_weapon_type = inventory['Current Weapon Type'] if ...
by pk space jam
Mon Nov 18, 2013 11:12 pm
Forum: Ren'Py Questions and Announcements
Topic: What am I doing wrong here? trying to use python within rpy
Replies: 17
Views: 2417

Re: What am I doing wrong here? trying to use python within

Ah I just saw this! But I ended up fixing it on my own seeing the exact same issue was gonna post my solution up here but your code looks better than mine! Thanks so much for the help, I really appreciate it. Nice community you guys got here!
by pk space jam
Mon Nov 18, 2013 7:26 pm
Forum: Ren'Py Questions and Announcements
Topic: What am I doing wrong here? trying to use python within rpy
Replies: 17
Views: 2417

Re: What am I doing wrong here? trying to use python within

Tried it, still getting the same error. I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 80, in script File "game/script.rpy", line 84, in python NameError: name 'campers' is not defined -- Full Traceback -----------------------...
by pk space jam
Mon Nov 18, 2013 7:15 pm
Forum: Ren'Py Questions and Announcements
Topic: What am I doing wrong here? trying to use python within rpy
Replies: 17
Views: 2417

Re: What am I doing wrong here? trying to use python within

Like if i am doing

bully = choice(campers.keys())

I dont get how that isnt defind, it should assign randomly one of the keys to bully.
by pk space jam
Mon Nov 18, 2013 7:14 pm
Forum: Ren'Py Questions and Announcements
Topic: What am I doing wrong here? trying to use python within rpy
Replies: 17
Views: 2417

Re: What am I doing wrong here? trying to use python within

xavimat wrote:Yes, is a dict, and you choose a key. Try this before the while loop:

Code: Select all

$ testing = campers.keys()
"[testing]"
You get the list of keys: [ 'pb', 'rb', 'bd', ....]
right, so how is it not defined? I dont get why im getting an error
by pk space jam
Mon Nov 18, 2013 7:09 pm
Forum: Ren'Py Questions and Announcements
Topic: What am I doing wrong here? trying to use python within rpy
Replies: 17
Views: 2417

Re: What am I doing wrong here? trying to use python within

Of course: bully never will be 'm', it's an infinite loop. How is that so? I dont think thats it, I think it was the init python statement, im getting a whole new error now, lol I'm sorry, but an uncaught exception occurred. While executing init code: File "game/script.rpy", line 80, in s...
by pk space jam
Mon Nov 18, 2013 6:57 pm
Forum: Ren'Py Questions and Announcements
Topic: What am I doing wrong here? trying to use python within rpy
Replies: 17
Views: 2417

Re: What am I doing wrong here? Project crashing my computer

I really dont get it, now when i try to open my project, it crashes my computer. please help! i was making such progress! # You can place the script of your game in this file. # Declare images below this line, using the image statement. # eg. image eileen happy = "eileen_happy.png" # Decla...
by pk space jam
Mon Nov 18, 2013 6:51 pm
Forum: Ren'Py Questions and Announcements
Topic: What am I doing wrong here? trying to use python within rpy
Replies: 17
Views: 2417

Re: What am I doing wrong here? trying to use python within

Ok now I dont get it, fixed some things around, and now it wont open at all...