(Moved from RPG Maker 2003 Forum) Need help with custom battle system.

Status
Not open for further replies.

Doinathing

That Guy
Member
Joined
Sep 4, 2020
Messages
26
Reaction score
18
First Language
English
Primarily Uses
RM2k3
My dearest Forum.
Recently, I've been trying to create a battle system that essentially rolls a d20 for every action. I've gottenstuck on trying to make an items menu. The code I have now is as follows;
@> Control Variables: [0003:Enemy health] = 261
@> Control Variables: [0001:player Health] = [Zack]'s HP
@> Play SE: 'Combat1', 100, 100, 50
@> Wait: 0.2 seconds
@> Play BGM: 'Battle 1', 100, 100, 50
@> Set Move Route: Player, Turn Up
@> Wait: 0.4 seconds
@> Text: Skeleton appeared!
@> Label: 1
@> Conditional Branch: Variable [0003:Enemy health] <= 0
@> Play BGM: 'JEnd of Battle 1', 100, 100, 50
@> Text: The Skeleton is out of HP! \.\.
: :
: : YOU WIN!
@> Control Variables: [0003:Enemy health] = -255
@> Erase Event
@>
: Else
@> Conditional Branch: Variable [0001:player Health] <= 0
@> Text: \n[0] is out of HP! \.\.
: : The battle was lost...
@> Game Over
@>
: Branch End
@> Control Variables: [0004:RFD] = 0
@> Control Variables: [0001:player Health] = [Zack]'s HP
@> Text: \n[0]'s HP is \v[1].
@> Show Choices: Attack, Magic, No
: When [Attack]
@> Control Variables: [0002:Roll to hit?] = Random No. (1...20)
@> Conditional Branch: Variable [0002:Roll to hit?] >= 10
@> Play SE: 'Blow4', 100, 100, 50
@> Control Variables: [0004:RFD] = Random No. (30...60)
@> Control Variables: [0003:Enemy health] -= Variable [0004]
@> Text: The attack hits, dealing \v[4] damage.
@>
: Else
@> Play SE: 'Evade1', 100, 100, 50
@> Text: \n[0]'s attack misses.
@>
: Branch End
@>
: When [Magic]
@>
: When [No]
@>
: Branch End
@> Control Variables: [0002:Roll to hit?] = 0
@> Text: The enemy attacks!
@> Control Variables: [0002:Roll to hit?] = Random No. (1...20)
@> Conditional Branch: Variable [0002:Roll to hit?] >= 10
@> Play SE: 'Blow4', 100, 100, 50
@> Control Variables: [0004:RFD] = Random No. (30...60)
@> Change HP: [Zack], - Variable [0004]
@> Text: The attack hits, dealing \v[4] damage.
@>
: Else
@> Play SE: 'Evade1', 100, 100, 50
@> Text: The Skeleton's attack misses.
@>
: Branch End
@> Jump to Label: 1
@>
: Branch End

I want to make an items menu in a similar vain to this, but am not sure how to do it.
Any advice would be greatly appreciated!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,617
Reaction score
5,156
First Language
Dutch
Primarily Uses
RMXP

Don't make duplicate threads. Also, the 2003 forum was the correct place to post this question. Closing this now.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Officially not a mod anymore. Thanks for the many years!
Thinking if i should post on the classifieds section...
Made another plugin showcase video! :kaojoy:
(Plugins and details inside the description of the YouTube video.) :LZScheeze:
Ami
Castle is my Biggest Fear :kaodes:. I just Managed make Part by Part (like the Entrance only),not the Entire Castle like in the RM Sample...
This video really speaks to me...

Forum statistics

Threads
104,371
Messages
1,005,900
Members
135,892
Latest member
Duskpyx
Top