Trigger ReferenceThis page lists all of the triggers that are supported by the player. Each trigger is extensively documented, and examples of scripts using said triggers are also included.Unless you are a wayward connoisseur, there is really no need to memorize any of these triggers, since the editor already has plenty of user-friendly dialogs that can be used to automatically insert the following triggers into your script. Triggers add_evidence_animatedSyntax: add_evidence_animated(evidence_id)Parameters:
This trigger adds the provided evidence to the Court Record, and it also shows the animation along with a custom message in the textbox. Example:
add_evidence_silentSyntax: add_evidence_silent(evidence_id)Parameters:
Unlike add_evidence_animated, this trigger adds the given evidence to the Court Record without the animation that you're used to seeing. It's useful to add default evidence before starting a case. Example:
add_locationSyntax: add_location(new_location,target_location)Parameters:
In order for the user to be able to move from place to place, you need to call this trigger. Here, new_location is added to target_location's list of places that can be navigated to. Basically, if the user is at target_location, and if he or she clicks the Move button in the player, new_location will then be listed on that screen. Example:
add_presentableSyntax: add_presentable(character_id,court_rec_id,target_block)Parameters:
This trigger will add either a piece of evidence, or a character profile to a character's list of Court Record items that the user can present. Initially, all characters start off with an empty list. Each call to this trigger will include that Court Record item to the character's list of presentables. If the user does in fact present this item, then the player will execute target_block. Example:
add_profileadd_talk_optionchange_character_captionchange_character_descchange_character_genderchange_character_namechange_evidence_captionchange_evidence_descchange_evidence_nameclear_location_musicclear_presentablesclear_talk_optionsdirect_gotodisplay_testimonyfade_outflashgotohalt_musichide_evidencehide_temp_imagemove_court_cameraplay_musicput_characterremove_presentableremove_talk_optionrequest_answerrequest_evidenceset_animationset_bad_presentable_blockset_court_overview_imageset_locationset_location_musicset_location_triggerset_temp_imagesfxshow_evidencespeakerspecial_effecttimed_gotoHosted on Sourceforge.net. All Phoenix Wright trademarks and other property are copyright Capcom. |