Announcement
Announcement
| 2nd Quarter Contest Announcement posted! See the Community Announcements section. |
New threads (complete scripts) here will go into a moderation queue. You will not see your thread appear when you create it. A moderator will decide if it will be approved or denied.
![]() ![]() |
Jun 7 2009, 05:55 PM
Post
#1
|
|
|
You can dance if you want to, you can leave your friends behind. ![]() Type: Coder |
Script is simple and self explanatory, so I'm not going to use a template. Just post here if you have an issue.
PREEMPTIVE = Party attacks first SURPRISE = Enemies attack first UPDATED TO v0.2a on 6/7 10:00 PM. (very) Minor bug fix involving putting auto-preempt or surprise into a random encounter. My apologies for not thinking clearly when I wrote the script. CODE =begin
AlphaWhelp's Auto Preemptive or Surprise Add the troop ids to the appropriate variables below noted with comments above them. If you input a troop ID into both variables, auto-preemptive takes effect instead of auto-surprise. Enjoy. Version 0.2a Changes from 0.1a Minor bug fix involving random encounters Created 6/7/09, 1:34 A.M. =end module AW #Insert auto-preemptive troop IDs below #E.X. [1, 2, 3, 4] AUTOPREEMPTTROOPIDS = [1] #Insert auto-surprise troop IDs below #E.X. [5, 6, 7, 8] AUTOSURPRISETROOPIDS = [2] end class Scene_Battle < Scene_Base alias aw_preempt_pbs process_battle_start def process_battle_start awtroopid = $game_troop.troop.id if AW::AUTOPREEMPTTROOPIDS.include?(awtroopid) $game_troop.preemptive = true else if AW::AUTOSURPRISETROOPIDS.include?(awtroopid) $game_troop.surprise = true end end aw_preempt_pbs end end class Scene_Map < Scene_Base alias aw_preempt_pos preemptive_or_surprise def preemptive_or_surprise awtroopid = $game_troop.troop.id if AW::AUTOPREEMPTTROOPIDS.include?(awtroopid) $game_troop.preemptive = true else if AW::AUTOSURPRISETROOPIDS.include?(awtroopid) $game_troop.surprise = true else aw_preempt_pos end end end end This post has been edited by AlphaWhelp: Jun 8 2009, 01:06 AM -------------------- My Scripts:
Spoiler: |
|
|
|
Jun 8 2009, 12:03 AM
Post
#2
|
|
![]() ![]() Type: Designer |
This is a great script, thanks for adding it.
--Dioxyde-- |
|
|
|
Jun 21 2009, 02:14 PM
Post
#3
|
|
|
You can dance if you want to, you can leave your friends behind. ![]() Type: Coder |
This is a great script, thanks for adding it. --Dioxyde-- I see you registered just to post here! Thanks. -------------------- My Scripts:
Spoiler: |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 19th May 2013 - 07:37 AM |
|
|