How to Code Phoenix Wright-ish Gameplay?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- HyperEmoGamer
- Newbie
- Posts: 24
- Joined: Wed Feb 12, 2014 5:20 pm
- Projects: Acidic: SoS
- Location: California
- Contact:
How to Code Phoenix Wright-ish Gameplay?
So there's this game I'm making, it has nothing to do with Phoenix Wright but there are some sections in it where you have to argue with another character in a thing called "Logical Warfare". It's gonna be similar to Phoenix Wright, with a few differences. Basically I'm asking this: how do you make a system similar to the cross examinations in Phoenix Wright, with pressing and presenting?
Re: How to Code Phoenix Wright-ish Gameplay?
I dont think theres a simple answer. Renpy has all the necessary tools, but you're pretty much going to have to code all the logic yourself. Here's a simplistic example:
Code: Select all
define Girl = Character('Donut-tan', color="#c8ffc8")
define Me = Character('Me', color = "#ffffff")
image girl = Placeholder("girl")
init python:
def objection():
print argument_label
renpy.hide_screen("my_buttons")
renpy.call("interject")
pass
screen my_buttons:
button:
xalign .50
yalign .05
action Function(objection)
style "menu_choice_button"
text "objection! (click me)" style "menu_choice"
screen objection:
frame:
xalign .50
yalign .50
label _(" Objection!!! ")
# The game starts here.
label start:
Me "It's cross examination time!"
$ arguing = True
$ argument_label = ""
while arguing:
show screen my_buttons
$ argument_label = "argue_point0"
show girl with dissolve
Girl "Powdered donuts are inherently superior to glazed donuts."
$ argument_label = "argue_point1"
show girl
Girl "Glazed donuts feel all slimey on the outside."
$ argument_label = "argue_point2"
show girl
Girl "I always have my donuts with coffee."
hide screen my_buttons
hide girl
Me "Her logic is ironclad! ... How will I convince her!?"
Me "Think Me... there must be a contradiction somewhere..."
Me "Let's try again from the beginning..."
pass
hide screen my_buttons
return
label interject:
hide screen my_buttons
show screen objection
Me "Objection!"
hide screen objection
$ renpy.call(argument_label)
show screen my_buttons
return
label argue_point0:
Me "By what metric did you use to arrive at this conclusion!?"
Girl "...B..Baka.... it's obvious isn't it!?"
Me "We need evidence!"
Girl "I was just about to get to that."
return
label argue_point1:
Me "Have you given them a chance? Expand your horizons!"
Girl "I have no need to expand upon sliminess!"
return
label argue_point2:
Me "Let's go out."
Girl "No."
return
- HyperEmoGamer
- Newbie
- Posts: 24
- Joined: Wed Feb 12, 2014 5:20 pm
- Projects: Acidic: SoS
- Location: California
- Contact:
Re: How to Code Phoenix Wright-ish Gameplay?
Thanks! I just needed a basic idea. So thanks!
- Taleweaver
- Writing Maniac
- Posts: 3428
- Joined: Tue Nov 11, 2003 8:51 am
- Completed: Metropolitan Blues, The Loyal Kinsman, Daemonophilia, The Dreaming, The Thirteenth Year, Adrift, Bionic Heart 2, Secrets of the Wolf, The Photographer
- Projects: The Pilgrim's Path, Elspeth's Garden, Secret Adventure Game!
- Organization: Tall Tales Productions
- Location: Germany
- Contact:
Re: How to Code Phoenix Wright-ish Gameplay?
Moved to Ren'Py Questions
Scriptwriter and producer of Metropolitan Blues
Creator of The Loyal Kinsman
Scriptwriter and director of DaemonophiliaScriptwriter and director of The Dreaming
Scriptwriter of Zenith ChroniclesScriptwriter and director of The Thirteenth Year
Scriptwriter and director of Romance is DeadScriptwriter and producer of Adrift
More about me in my blog"Adrift - Like Ever17, but without the Deus Ex Machina" - HigurashiKira
- Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: How to Code Phoenix Wright-ish Gameplay?
Never played that game, but here are some threads you may find interesting:
http://lemmasoft.renai.us/forums/viewto ... =8&t=28916
http://lemmasoft.renai.us/forums/viewto ... =8&t=28325
http://lemmasoft.renai.us/forums/viewto ... =8&t=18274
http://lemmasoft.renai.us/forums/viewto ... =8&t=28916
http://lemmasoft.renai.us/forums/viewto ... =8&t=28325
http://lemmasoft.renai.us/forums/viewto ... =8&t=18274
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
- octacon100
- Regular
- Posts: 163
- Joined: Thu Sep 12, 2013 11:23 pm
- Projects: Regeria Hope
- Organization: Golden Game Barn
- IRC Nick: Octacon100
- Location: Boston, MA
- Contact:
Re: How to Code Phoenix Wright-ish Gameplay?
You could try looking at the game I'm making now and see if it's similar to the kind of game you want: http://lemmasoft.renai.us/forums/viewto ... 43&t=28559
Who is online
Users browsing this forum: No registered users



