Drafting Abilities Event help?

Vidarr

Warper
Member
Joined
Mar 29, 2019
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hello! I've been using RPG Maker for awhile, and with my latest project I had a very simple idea:

When the player would start up the Dungeon-delving section of the game, they're met with a simple drafting mechanism similar
Hearthstone's Arena or MTG's Winston draft that they'd draft up their character's abilities and go through as far as they can for that section of game play. Think Persona 3 + Isaac/Gungeon/Roguelikes in overall scope

Trying to do this without using Javascript, mostly because I haven't hit that section in my actual studies (in Computer Software programming at my local College), I created an Event that would run the draft; There were a total of 17 abilities, and none of the abilities could appear twice/three times in a single choice. (so I'd have Ability A, Ability B, and Ability C) and the player would make 4 of these choices to get their starting abilities. When I'd run it, it occasionally let me go through the entire draft, or it would occasionally just hit the SyntaxError: Unidentified identifier or Unexpected Token wall, usually after the third or fourth pick.

◆Control Variables:#0007 DraftPicks = 0
◆Control Variables:#0008 AbilityCount = 3
◆Loop
◆Control Variables:#0001 CH1 = Random 21..38
◆Control Variables:#0002 Choice1 = CH1
◆Loop
◆Control Variables:#0003 CH2 = Random 21..38
◆If:CH2 ≠ CH1
◆Break Loop

:End

:Repeat Above
◆Control Variables:#0004 Choice2 = CH2
◆Loop
◆Control Variables:#0005 CH3 = Random 21..38
◆If:CH3 ≠ CH1
◆If:CH3 ≠ CH2
◆Break Loop

:End

:End

:Repeat Above
◆Control Variables:#0006 Choice3 = CH3
◆If:CH1 = 21
◆Control Variables:#0001 CH1 = "A Lesser Attack"

:End
◆If:CH1 = 22
◆Control Variables:#0001 CH1 = "A Lesser Utility"

:End
◆If:CH1 = 23
◆Control Variables:#0001 CH1 = "A Greater Attack"

:End
◆If:CH1 = 24
◆Control Variables:#0001 CH1 = "B Lesser Attack

:End
◆If:CH1 = 25
◆Control Variables:#0001 CH1 = B Lesser Utility

:End
◆If:CH1 = 26
◆Control Variables:#0001 CH1 = "B Greater Attack"

:End
◆If:CH1 = 27
◆Control Variables:#0001 CH1 = "C Lesser Attack"

:End
◆If:CH1 = 28
◆Control Variables:#0001 CH1 = "C Lesser Utility"

:End
◆If:CH1 = 29
◆Control Variables:#0001 CH1 = "C Greater Attack"

:End
◆If:CH1 = 30
◆Control Variables:#0001 CH1 = "D Lesser Attack"

:End
◆If:CH1 = 31
◆Control Variables:#0001 CH1 = "D Lesser Utility"

:End
◆If:CH1 = 32
◆Control Variables:#0001 CH1 = "D Greater Attack"

:End
◆If:CH1 = 33
◆Control Variables:#0001 CH1 = "E Lesser Attack"

:End
◆If:CH1 = 34
◆Control Variables:#0001 CH1 = "E Lesser Utility"

:End
◆If:CH1 = 35
◆Control Variables:#0001 CH1 = "E Greater Attack"

:End
◆If:CH1 = 36
◆Control Variables:#0001 CH1 = "F Lesser Attack"

:End
◆If:CH1 = 37
◆Control Variables:#0001 CH1 = "F Lesser Utility"

:End
◆If:CH1 = 38
◆Control Variables:#0001 CH1 = "F Greater Attack"

:End
◆If:CH2 = 21
◆Control Variables:#0003 CH2 = "A Lesser Attack"

:End
◆If:CH2 = 22
◆Control Variables:#0003 CH2 = "A Lesser Utility"

:End
◆If:CH2 = 23
◆Control Variables:#0003 CH2 = "A Greater Attack"

:End
◆If:CH2 = 24
◆Control Variables:#0003 CH2 = "B Lesser Attack

:End
◆If:CH2 = 25
◆Control Variables:#0003 CH2 = B Lesser Utility

:End
◆If:CH2 = 26
◆Control Variables:#0003 CH2 = "B Greater Attack"

:End
◆If:CH2 = 27
◆Control Variables:#0003 CH2 = "C Lesser Attack"

:End
◆If:CH2 = 28
◆Control Variables:#0003 CH2 = "C Lesser Utility"

:End
◆If:CH2 = 29
◆Control Variables:#0003 CH2 = "C Greater Attack"

:End
◆If:CH2 = 30
◆Control Variables:#0003 CH2 = "D Lesser Attack"

:End
◆If:CH2 = 31
◆Control Variables:#0003 CH2 = "D Lesser Utility"

:End
◆If:CH2 = 32
◆Control Variables:#0003 CH2 = "D Greater Attack"

:End
◆If:CH2 = 33
◆Control Variables:#0003 CH2 = "E Lesser Attack"

:End
◆If:CH2 = 34
◆Control Variables:#0003 CH2 = "E Lesser Utility"

:End
◆If:CH2 = 35
◆Control Variables:#0003 CH2 = "E Greater Attack"

:End
◆If:CH2 = 36
◆Control Variables:#0003 CH2 = "F Lesser Attack"

:End
◆If:CH2 = 37
◆Control Variables:#0003 CH2 = "F Lesser Utility"

:End
◆If:CH2 = 38
◆Control Variables:#0003 CH2 = "F Greater Attack"

:End
◆If:CH3 = 21
◆Control Variables:#0005 CH3 = "A Lesser Attack"

:End
◆If:CH3 = 22
◆Control Variables:#0005 CH3 = "A Lesser Utility"

:End
◆If:CH3 = 23
◆Control Variables:#0005 CH3 = "A Greater Attack"

:End
◆If:CH3 = 24
◆Control Variables:#0005 CH3 = "B Lesser Attack

:End
◆If:CH3 = 25
◆Control Variables:#0005 CH3 = B Lesser Utility

:End
◆If:CH3 = 26
◆Control Variables:#0005 CH3 = "B Greater Attack"

:End
◆If:CH3 = 27
◆Control Variables:#0005 CH3 = "C Lesser Attack"

:End
◆If:CH3 = 28
◆Control Variables:#0005 CH3 = "C Lesser Utility"

:End
◆If:CH3 = 29
◆Control Variables:#0005 CH3 = "C Greater Attack"

:End
◆If:CH3 = 30
◆Control Variables:#0005 CH3 = "D Lesser Attack"

:End
◆If:CH3 = 31
◆Control Variables:#0005 CH3 = "D Lesser Utility"

:End
◆If:CH3 = 32
◆Control Variables:#0005 CH3 = "D Greater Attack"

:End
◆If:CH3 = 33
◆Control Variables:#0005 CH3 = "E Lesser Attack"

:End
◆If:CH3 = 34
◆Control Variables:#0005 CH3 = "E Lesser Utility"

:End
◆If:CH3 = 35
◆Control Variables:#0005 CH3 = "E Greater Attack"

:End
◆If:CH3 = 36
◆Control Variables:#0005 CH3 = "F Lesser Attack"

:End
◆If:CH3 = 37
◆Control Variables:#0005 CH3 = "F Lesser Utility"

:End
◆If:CH3 = 38
◆Control Variables:#0005 CH3 = "F Greater Attack"

:End
◆Loop
◆Text:None, Window, Bottom
: :Select an Ability:
◆Show Choices:\V[001], \V[003], \V[005] (Window, Middle, -, -)
:When \V[001]
◆If:Choice1 = 21
◆If:Dummy has learned A Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + A Lesser Attack
◆Break Loop

:End

:End
◆If:Choice1 = 22
◆If:Dummy has learned A Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + A Lesser Utility
◆Break Loop

:End

:End
◆If:Choice1 = 23
◆If:Dummy has learned A Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + A Greater Attack
◆Break Loop

:End

:End
◆If:Choice1 = 24
◆If:Dummy has learned B Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + B Lesser Attack
◆Break Loop

:End

:End
◆If:Choice1 = 25
◆If:Dummy has learned B Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + B Lesser Utility
◆Break Loop

:End

:End
◆If:Choice1 = 26
◆If:Dummy has learned B Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + B Greater Attack
◆Break Loop

:End

:End
◆If:Choice1 = 27
◆If:Dummy has learned C Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + C Lesser Attack
◆Break Loop

:End

:End
◆If:Choice1 = 28
◆If:Dummy has learned C Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + C Lesser Utility
◆Break Loop

:End

:End
◆If:Choice1 = 29
◆If:Dummy has learned C Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + C Greater Attack
◆Break Loop

:End

:End
◆If:Choice1 = 30
◆If:Dummy has learned D Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + D Lesser Attack
◆Break Loop

:End

:End
◆If:Choice1 = 31
◆If:Dummy has learned D Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + D Lesser Utility
◆Break Loop

:End

:End
◆If:Choice1 = 32
◆If:Dummy has learned D Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + D Greater Attack
◆Break Loop

:End

:End
◆If:Choice1 = 33
◆If:Dummy has learned E Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + E Lesser Attack
◆Break Loop

:End

:End
◆If:Choice1 = 34
◆If:Dummy has learned E Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + E Lesser Utility
◆Break Loop

:End

:End
◆If:Choice1 = 35
◆If:Dummy has learned E Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + E Greater Attack
◆Break Loop

:End

:End
◆If:Choice1 = 36
◆If:Dummy has learned F Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + F Lesser Attack
◆Break Loop

:End

:End
◆If:Choice1 = 37
◆If:Dummy has learned F Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + F Lesser Utility
◆Break Loop

:End

:End
◆If:Choice1 = 38
◆If:Dummy has learned F Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + F Greater Attack
◆Break Loop

:End

:End

:When \V[003]
◆If:Choice2 = 21
◆If:Dummy has learned A Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + A Lesser Attack
◆Break Loop

:End

:End
◆If:Choice2 = 22
◆If:Dummy has learned A Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + A Lesser Utility
◆Break Loop

:End

:End
◆If:Choice2 = 23
◆If:Dummy has learned A Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + A Greater Attack
◆Break Loop

:End

:End
◆If:Choice2 = 24
◆If:Dummy has learned B Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + B Lesser Attack
◆Break Loop

:End

:End
◆If:Choice2 = 25
◆If:Dummy has learned B Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + B Lesser Utility
◆Break Loop

:End

:End
◆If:Choice2 = 26
◆If:Dummy has learned B Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + B Greater Attack
◆Break Loop

:End

:End
◆If:Choice2 = 27
◆If:Dummy has learned C Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + C Lesser Attack
◆Break Loop

:End

:End
◆If:Choice2 = 28
◆If:Dummy has learned C Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + C Lesser Utility
◆Break Loop

:End

:End
◆If:Choice2 = 29
◆If:Dummy has learned C Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + C Greater Attack
◆Break Loop

:End

:End
◆If:Choice2 = 30
◆If:Dummy has learned D Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + D Lesser Attack
◆Break Loop

:End

:End
◆If:Choice2 = 31
◆If:Dummy has learned D Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + D Lesser Utility
◆Break Loop

:End

:End
◆If:Choice2 = 32
◆If:Dummy has learned D Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + D Greater Attack
◆Break Loop

:End

:End
◆If:Choice2 = 33
◆If:Dummy has learned E Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + E Lesser Attack
◆Break Loop

:End

:End
◆If:Choice2 = 34
◆If:Dummy has learned E Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + E Lesser Utility
◆Break Loop

:End

:End
◆If:Choice2 = 35
◆If:Dummy has learned E Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + E Greater Attack
◆Break Loop

:End

:End
◆If:Choice2 = 36
◆If:Dummy has learned F Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + F Lesser Attack
◆Break Loop

:End

:End
◆If:Choice2 = 37
◆If:Dummy has learned F Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + F Lesser Utility
◆Break Loop

:End

:End
◆If:Choice2 = 38
◆If:Dummy has learned F Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + F Greater Attack
◆Break Loop

:End

:End

:When \V[005]
◆If:Choice3 = 21
◆If:Dummy has learned A Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + A Lesser Attack
◆Break Loop

:End

:End
◆If:Choice3 = 22
◆If:Dummy has learned A Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + A Lesser Utility
◆Break Loop

:End

:End
◆If:Choice3 = 23
◆If:Dummy has learned A Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + A Greater Attack
◆Break Loop

:End

:End
◆If:Choice3 = 24
◆If:Dummy has learned B Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + B Lesser Attack
◆Break Loop

:End

:End
◆If:Choice3 = 25
◆If:Dummy has learned B Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + B Lesser Utility
◆Break Loop

:End

:End
◆If:Choice3 = 26
◆If:Dummy has learned B Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + B Greater Attack
◆Break Loop

:End

:End
◆If:Choice3 = 27
◆If:Dummy has learned C Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + C Lesser Attack
◆Break Loop

:End

:End
◆If:Choice3 = 28
◆If:Dummy has learned C Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + C Lesser Utility
◆Break Loop

:End

:End
◆If:Choice3 = 29
◆If:Dummy has learned C Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + C Greater Attack
◆Break Loop

:End

:End
◆If:Choice3 = 30
◆If:Dummy has learned D Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + D Lesser Attack
◆Break Loop

:End

:End
◆If:Choice3 = 31
◆If:Dummy has learned D Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + D Lesser Utility
◆Break Loop

:End

:End
◆If:Choice3 = 32
◆If:Dummy has learned D Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + D Greater Attack
◆Break Loop

:End

:End
◆If:Choice3 = 33
◆If:Dummy has learned E Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + E Lesser Attack
◆Break Loop

:End

:End
◆If:Choice3 = 34
◆If:Dummy has learned E Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + E Lesser Utility
◆Break Loop

:End

:End
◆If:Choice3 = 35
◆If:Dummy has learned E Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + E Greater Attack
◆Break Loop

:End

:End
◆If:Choice3 = 36
◆If:Dummy has learned F Lesser Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + F Lesser Attack
◆Break Loop

:End

:End
◆If:Choice3 = 37
◆If:Dummy has learned F Lesser Utility
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + F Lesser Utility
◆Break Loop

:End

:End
◆If:Choice3 = 38
◆If:Dummy has learned F Greater Attack
◆Text:None, Window, Bottom
: :You've already Learned this ability!

:Else
◆Change Skill:Dummy, + F Greater Attack
◆Break Loop

:End

:End

:End

:Repeat Above
◆If:DraftPicks ≤ AbilityCount
◆Control Variables:#0007 DraftPicks += 1

:Else
◆Control Variables:#0001..0008 = 0
◆Break Loop

:End

:Repeat Above
◆Text:None, Window, Bottom
: :bloop
◆Erase Event

Is there some sort of limitation with the Events system I'm hitting? is it something stupid that I completely forgot about?

Also I have no idea how to run the debug menu so I can see what exact line is causing the issues? Is there a way to do that?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Press F8 to open the console/debug
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,087
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
Looks like "B Lesser Utility" should be enclosed in quote marks all 3 times. :p

Incidentally, why assign the text variables if you're not using them in the "learn skill" message? :kaoswt2:
 

Vidarr

Warper
Member
Joined
Mar 29, 2019
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMMV
why assign the text variables if you're not using them in the "learn skill" message?
It's the display for the choice options, there's probably a better way to do it.
After rewriting this with a lot less abilities (just the [Type] Lesser Attacks) it seems to be fine.
 

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

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top