- IDK, sorry One set of books I really do like is the Hero’s Rise ones, as @TheTrueKing said.
- Let me see. Um, I know that @Sashira’s WiP utilizes a lot of code, even in just the first couple chapters. Choice of Vampire might be good too. For beginners I’d recommend Choice of the Dragon, since its easy to see what it is.
- Yes, it does: (Explained better In the Tutorial
*temp monster *rand monster 1 12 *if (monster=1) You encountered a Vampire! *if (monster=2) You encountered a Werewolf! *if (monster=3) You encountered a dragon! *else You encountered a fairy!
You would keep going after three, of course, but for a demo, I thought that was enough.
4) There are some CoG games that do use combat (Choice of Dragon does a “play” on it. Here’s what I would do. (In this case, the magic weapon variable is created in the Startup, and so I don’t need a temp variable.
*title Combating *author J.B. *create magic_weapon true *create dead false *create monster "vampire" *temp win false *temp your_hit_points 0 *comment if hit points goes above 2, you lose. *temp monster_hit_points 0 *comment if hit_points goes above 2, you win! Oh, no! The ${monster} is coming towards you. You: *choice #Run You barely survive his attack. *set your_hit_points +1 *goto attack2 *if (magic_weapon) #Use your Magic Weapon Yay, you hit him hard! *set monster_hit_points +1 *gosub dead_yet *goto attack2 #Attack him He hits you pretty hard back. *set your_hit_points +1 *gosub dead_yet *goto attack2 *label attack2 He looks ready to pummel you. You: *choice #Block it. Oh! That looks like it hurt! *set your_hit_points +1 *gosub dead_yet *goto attack3 #Duck. Nice job! He hits himself in the face! *set monster_hit_points +1 *gosub dead_yet *goto attack3 *label attack3 *if (dead) *goto dead *if (win) *goto win *else *goto final_round *label final_round You and the monster both have one hit point. You: *choice #Go offencive. He doesn't expect that. You win! *set monster_hit_points +1 *set win true *goto win #Go defensive He doesn't expect that. You win! *set monster_hit_points +1 *set win true *goto win #Just stand there. Well that didn't do anything. You lose! *set your_hit_points +1 *set dead true *goto dead *label dead_yet *if (your_hit_points>=2) Well, you died. *set dead true *return *elseif (monster_hit_points>=2) Yay! You win! *set win true *return *else *return *label win *goto end_ch1 *label dead *label end_ch1
Something like that, but way more complicated.