The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: Mariofan0 on November 24, 2006, 02:38:43 PM

Title: Party Switching Event
Post by: Mariofan0 on November 24, 2006, 02:38:43 PM
Ok it is still in working stages but heres what i have so far...


Name : Actor 1 Switch  Trigger : None

@>conditional Branch : Variable [0001: Actor 1 P/Actor 2 ==1
  @>Change Party Member: Add [Actor 2] Initialize
  @>Contol Variables:[0002: Actor 1 P/Actor 2 -=1
  @>
: Else
  @>
: Branch End
@>Conditional Branch [Actor 4] Is In The Party
  @>Control Variables: [0003: Actor 3 P/Actor 4 +=1
  @>Change Party Member: Remove [Actor 4]
  @>
: Else
  @>
: Branch End
@>Conditional Branch: [Potion] In Invintory
  @>Control Variables:[0004: Actor 3 Potions]+=[Potion]In Invintory
  @>
: Else
  @>
: Branch End
@> Change Party Member: Add [Actor 1]
@> Change Party Member: Remove [Actor 3]



As You Might Of Guessed You Need A Variable For Every Item And Actor Used.
Also If You Wish To Reverse The Prosess I Will Currently Be Typing Up The Other Halve.
Title: Re: Party Switching Event
Post by: Mariofan0 on November 24, 2006, 02:58:32 PM
Here We Go The Secound Halve

Name : Actor 3 Switch   Trigger : None

@>Conditional Branch : [actor 2] Is In The Party
  @>Control Variables: [0001: Actor 1 P/Actor 2] +=1
  @>Change Party Member: Remove [Actor 2]
  @>
: Else
  @>
: Branch End
@> Conditional Branch: Variable [0003: Actor 3 P/Actor 4] ==1
  @> Change Party Member: Add [Actor 4] Initialize
  @>Control Variables: [0003: Actor 3 P/Actor 4] -=1
  @>
: Else
  @>
: Branch End
@> Conditional Branch: [potion] in invitory
  @>control variables: [0005: Actor 1 Potions] += [potion] in invintory
  @>
: Else
  @>
: Branch End
@> Change Party Member: Add [Actor 3] Initialize
@> Change Party Member: Remove [Actor 1]


And Like I Said Its Not Finished I Beleve I Forgot To Add The Add Items Equivelent To The Variables. But All And All So Far So Good.
Title: Re: Party Switching Event
Post by: Mariofan0 on November 26, 2006, 08:51:55 PM
Add This In My Event To Save Location.

@>Control Variables:[0001:Map ID ?]=Map ID
@>Control Variables:[0002:Position X ?]= X Position
@>Control Variables:[0003:Positoion Y ?]= Y Position

Create Two Seperate Variables For Each Variable Up There. Then Add This...

@>Tranceport Player:Variables [0001][0002][0003]*

Agian Make Two Of these Events.

>0001 Map ID 1     >
>0002 X Position 1 >
>0003 Y Position 1 >

>0004 Map Id 2     >
>0005 X Position   >
>0006 Y Position   >

In Order To Tranceport Between Two Exsact Positions You Must Have Two Sets Of Variables.
When You Activate The Event It Saves The Location Your At Before Teliporting

Note In Order Two Teleport Between Events You Must Have Actuly Tranceported Before In Other Words If You Have Not Used It Before It Will Only Screw Up The Game...

My Sugestion Is To Use A Teleport Event That Saves The Spot And Teleports To The Starting Location Of The Other Group.(If Your Using My System)