# The Hero of Eastcliff

**URL:** <https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419>\
**Category:** Works In Progress\
**Created:** [October 12, 2015, 6:16pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419 "2015-10-12T18:16:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 6:16pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/1 "2015-10-12T18:16:20Z")

</div>

Hey guys, name is Damon, but you can just call me J3loodT4lon (bloodtalon), Blood, or J3 (this is the most common lol) I also accept “Our Lord and Savior”, “Your Majesty”, and “Brotato”.

I started playing with the ChoiseScript a couple days ago with the desire of creating a game (duh!). The title (displayed above) is _The Hero of Eastcliff_ and will be about an individual (the player) thrust into a quest to save the Realm. I wont go into too many details, but here are a few things to expect:

- Classes: Warrior, Paladin, Ranger, Rogue, Mage.
- Ability stats, like those from D&D/Pathfinder.
- Mana/Rage system (Rage for Warrior, Mana for everyone else)
- Magic weapons and armor.

I have worked out most of the character creation steps, though there are a few things that are providing me some difficulties:

- When allocating the players skills, you can choose to allocate them based upon the standard for your class, or do it yourself. The trouble I am having is getting the choices to listen to my \*disable\_reuse.
- I am trying to set up a choice in the equipment setup process that the player cannot choose unless they are a Ranger or a Rogue. I understand how the ‘reuse’ codes work, but I want it to be disabled unless the player meets one of the two requirements and I am unsure how to do this. **EDIT** : I fixed the problem and it is no longer an issue. My thanks to those that helped.

If anyone can help me out with some pointers or something that would be great. Right now I’m just pushing through it and getting the rest coded, and plan on tinkering with it when I need to.

I will be updating this as my progress continues.

---

<div class="post-metadata">

**Author:** ![leo](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/leo/32/113837_2.png) [@leo](https://forum.choiceofgames.com/u/leo)\
**Post date:** [October 12, 2015, 6:19pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/2 "2015-10-12T18:19:56Z")

</div>

I’m not sure about the problem with disable reuse, but for the ranger/rogue, you might be looking for a [boolean if variable.](http://choicescriptdev.wikia.com/wiki/If)

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 6:21pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/3 "2015-10-12T18:21:55Z")

</div>

Tying it now. Thanks for the link. Will update this if I have further issues.

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [October 12, 2015, 6:27pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/4 "2015-10-12T18:27:26Z")

</div>

> [@J3loodT4lon](#):
>
> The trouble I am having is getting the choices to listen to my \*disable\_reuse.

Just going by this information it could be a number of things, but I guess the most likely one is that you jump from one .txt file to the other somewhere in the process. ChoiceScript only remembers \*disable\_reuse and \*hide\_reuse as long as you remain in the same .txt file. As soon as you go to a different one it forgets them.

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 6:31pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/5 "2015-10-12T18:31:31Z")

</div>

So far the only time I have used \*disable\_reuse is on the .txt file it isn’t working on.

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [October 12, 2015, 6:37pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/6 "2015-10-12T18:37:51Z")

</div>

Could you post the relevant bit of code? It’d make it easier to track down the problem than by just taking wild guesses. (in case you didn’t know yet, you can make code show up properly by selecting it and pressing the \</\> button)

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 6:41pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/7 "2015-10-12T18:41:57Z")

</div>

This is the coding for the choices.

 ![](https://global.discourse-cdn.com/choiceofgames/original/2X/9/9a07b1f9d07b2dca9572436ab7cdd7ffed86a7d1.png)

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 6:42pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/8 "2015-10-12T18:42:32Z")

</div>

And this is what I want to insert. Not sure how to get it to work the way I need it to.  
 ![](https://global.discourse-cdn.com/choiceofgames/original/2X/5/55b2488a142f6318ad10e31ce38da2c3dd3a698b.PNG)

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 6:49pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/9 "2015-10-12T18:49:00Z")

</div>

Hmm…  
I wonder if I should be using this one instead?

\*choice

\*if not (var)

```
#This option to be displayed

  *goto next
```

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [October 12, 2015, 6:51pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/10 "2015-10-12T18:51:18Z")

</div>

Ehm, this bit of code doesn’t use the \*disable\_reuse command anywhere? Not that it matters much, since it probably wouldn’t do what you wanted it to do. I assume that the variable weap\_value is the thing that tells you what weapons you have?

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [October 12, 2015, 6:51pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/11 "2015-10-12T18:51:48Z")

</div>

That should work if you implement it properly.

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 6:56pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/12 "2015-10-12T18:56:03Z")

</div>

ROFL OMFG  
I feel stupid now… I was working on the other one when you posted that, so that’s why I posted the wrong code xD

But yeah, the one I posted is where I am trying to disable/hide an option if the player doesn’t meet the class requirements. The weap\_value correlates with the damage the weapon does, that way I can easily increase or decrease the players total damage when changing weapons without having to effect their base damage.

Don’t ask why I named it weap\_value instead of dmg\_value… I have no idea xD

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 7:01pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/13 "2015-10-12T19:01:24Z")

</div>

```
*disable_reuse
*label start
Don't like the idea of playing one of the standard class setups? Well okey-doke then. Go ahead and spend your points the way you want them. Just make sure to let me know when you are done!
*choice
  #Strength
    *set stat_play 1
    *goto stats
  #Dexterity
    *set stat_play 2
    *goto stats
  #Constitution
    *set stat_play 3
    *goto stats
  #Intelligence
    *set stat_play 4
    *goto stats
  #Wisdom
    *set stat_play 5
    *goto stats
  #Charisma
    *set stat_play 6
    *goto stats

*label stats
*choice
  #8
    *if stat_play = 1
      *set strength 8
      *goto start
    *elseif stat_play = 2
      *set dexterity 8
      *goto start
    *elseif stat_play = 3
      *set constitution 8
      *goto start
    *elseif stat_play = 4
      *set intelligence 8
      *goto start
    *elseif stat_play = 5
      *set wisdom 8
      *goto start
    *elseif stat_play = 6
      *set charisma 8
      *goto start
  #10
    *if stat_play = 1
      *set strength 10
      *goto start
    *elseif stat_play = 2
      *set dexterity 10
      *goto start
    *elseif stat_play = 3
      *set constitution 10
      *goto start
    *elseif stat_play = 4
      *set intelligence 10
      *goto start
    *elseif stat_play = 5
      *set wisdom 10
    *elseif stat_play = 6
      *set charisma 10
      *goto start
  #12
    *if stat_play = 1
      *set strength 12
      *goto start
    *elseif stat_play = 2
      *set dexterity 12
      *goto start
    *elseif stat_play = 3
      *set constitution 12
      *goto start
    *elseif stat_play = 4
      *set intelligence 12
      *goto start
    *elseif stat_play = 5
      *set wisdom 12
      *goto start
    *elseif stat_play = 6
      *set charisma 12
      *goto start
  #14
    *if stat_play = 1
      *set strength 14
      *goto start
    *elseif stat_play = 2
      *set dexterity 14
      *goto start
    *elseif stat_play = 3
      *set constitution 14
      *goto start
    *elseif stat_play = 4
      *set intelligence 14
      *goto start
    *elseif stat_play = 5
      *set wisdom 14
      *goto start
    *elseif stat_play = 6
      *set charisma 14
      *goto start
  #16
    *if stat_play = 1
      *set strength 16
      *goto start
    *elseif stat_play = 2
      *set dexterity 16
      *goto start
    *elseif stat_play = 3
      *set constitution 16
      *goto start
    *elseif stat_play = 4
      *set intelligence 16
      *goto start
    *elseif stat_play = 5
      *set wisdom 16
      *goto start
    *elseif stat_play = 6
      *set charisma 16
      *goto start
  #18
    *if stat_play = 1
      *set strength 18
      *goto start
    *elseif stat_play = 2
      *set dexterity 18
      *goto start
    *elseif stat_play = 3
      *set constitution 18
      *goto start
    *elseif stat_play = 4
      *set intelligence 18
      *goto start
    *elseif stat_play = 5
      *set wisdom 18
      *goto start
    *elseif stat_play = 6
      *set charisma 18
      *goto start

```

This is the code I am using with the \*disable\_reuse. I originally had the last line in each section as \*else instead of \*elseif, but when I tested it I encountered and error. Then when I changed it, the \*disable\_reuse code stopped working.

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [October 12, 2015, 7:06pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/14 "2015-10-12T19:06:35Z")

</div>

I don’t thing \*disable\_reuse can be used in such a way. I’m quite certain I’ve never seen it used in this way, at least. For as far as I’m aware it can only be used to disable single options in choices if you encounter the same \*choice command again. Basically, like this:

```
*choice
  *disable_reuse #Strength
    *set stat_play 1
    *goto stats

```

etc.

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 7:13pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/15 "2015-10-12T19:13:59Z")

</div>

> You can make all options non-reusable, by adding \*hide\_reuse or \*disable\_reuse to the top of your ChoiceScript file. Then you can use the \*allow\_reuse command to allow certain options to be reused.

Well the Advanced guide shows that it should, and it worked perfectly until I got to the last option where it gave me an error for using \*else. So I switched it to \*elseif and now it just doesn’t work.

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [October 12, 2015, 7:24pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/16 "2015-10-12T19:24:59Z")

</div>

And it does. Never noticed that one before. That could be useful from time to time…

Anyway, I don’t really use \*elseif, so I’m not sure about it, but you could try to make it all \*if aside from the last one. If you make that \*else it should catch everything that somehow isn’t caught by the functions before it. Not sure if it’ll help, but it might be worth a shot.

Edit:  
And besides, it looks like the code as it is throws you into an endless loop with limited options, which might also be the thing that causes it to act up.

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 7:29pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/17 "2015-10-12T19:29:50Z")

</div>

For now, yes. I wanted to make sure the system worked first before doing anything else, like I have with everything else I have coded so far.

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [October 12, 2015, 7:31pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/18 "2015-10-12T19:31:51Z")

</div>

In this situation that might (ironically enough) actually be the thing that prevents it from working. Try adding an option that allows you to go out of the loop and see what the code does after you’ve done that.

---

<div class="post-metadata">

**Author:** ![J3loodT4lon](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/j3loodt4lon/32/143559_2.png) [@J3loodT4lon](https://forum.choiceofgames.com/u/J3loodT4lon)\
**Post date:** [October 12, 2015, 7:38pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/19 "2015-10-12T19:38:37Z")

</div>

Yeah I was just thinking that. I’ll have to play with it later since I have to work in 20 minutes.  
But before I go, let me toss you children a teaser of my totally generic and unexciting stat chart!  
 ![](https://global.discourse-cdn.com/choiceofgames/original/2X/3/3397ee1e36144a6901fd2189b8b6fc5c6a8654d9.png)

**EDIT** : LOLOL Okay I feel even dumber now xD  
You were right. The fact that I haden’t set up an ‘exit route’ from the loop is what caused the error. Thanks again for the help @Cecilia_Rosewood

---

<div class="post-metadata">

**Author:** ![Cecilia\_Rosewood](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/cecilia_rosewood/32/253835_2.png) [@Cecilia\_Rosewood](https://forum.choiceofgames.com/u/Cecilia_Rosewood)\
**Post date:** [October 12, 2015, 7:43pm UTC](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419/20 "2015-10-12T19:43:18Z")

</div>

> [@J3loodT4lon](#):
>
> children

Now I feel slightly offended, kind sir (or madam or… whatever not gender specific alternative there might be)

(nah, just kidding 😜 Good luck trying to get that to work the way you want it to 👍 )

[Next page](https://forum.choiceofgames.com/t/the-hero-of-eastcliff/12419.md?page=2)
