Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Is there is way to...?

12 years ago

For example you put "Charisma", "Intelligence", "Speed" etc. as variables. During the game player selections change the values of these variables. Could I do something like if there is an option "Run away from the mad dog" and if they click that if "Speed" is greater than say 6 there are able to but if less than 6 not? Sorry this is poorly worded. Would any of this be possible? Thanks in advance.  :)

Is there is way to...?

12 years ago

Have you played "mommy, can I go out and kill tonight?" or "Dungeon stompage" ?

If so, you should know the answer is yes.

I have no idea how to do so though XD

 

You should ask Berka zerka about it, send him a PM or ask around in the advanced editor section.

Is there is way to...?

12 years ago

Hi thanks for the reply and suggestion. Yes I will do as you suggested.  ;)

Is there is way to...?

12 years ago

Check this out:

http://chooseyourstory.com/help/articles/article.aspx?ArticleId=1

There are more advanced articles in the H&I section. Everything you've mentioned is easily doable.

Is there is way to...?

12 years ago

Use the way to make to make a diffrent ending appear for a diffrent score described here except make the variable Charisma blah and the link that link.

Is there is way to...?

12 years ago

Hi, and as everyone is saying, yes you can do all of that with Scripting (and even with just Variables and Link Restrictions too if Scripting seem daunting at the moment.

Using your Speed Variable Example
Set up your SPEED Variable

Then set up your in-game modifiers for the Speed Variable off Links and such. For example, set SPEED to start the game at a value of 1. Then later, maybe an event adds +2, and a Speed Potion temporarily adds +5 (if the player has found it yet).

To do it with Link and Variables Only:
In the case where you want to see if the player is fast enough to escape something, just create your outcome pages (say a page for ‘Escape’ & a page for ‘Getting Caught’)

On the Links that lead to each Page, just Name both ‘Try to Escape’ and Restrict them not to show - like this:
Link to Escape: SPEED > 3
Link to Getting Caught: Speed < 4

This way, if the player’s SPEED is 3 or less, the Try to Escape Link goes to Getting Caught; while if the player’s SPEED is 4 or more the same-looking Link (try to escape) goes to the Escape page.

To do it with Scripting:
You just need 1 Link called ‘Try to Escape’ without any Link Restrictions.

Then on the Link Script ( := ) you would use something like this:
IF %SPEED > 3 THEN
  $DEST := @P100
IF %SPEED < 4 THEN
  $DEST := @P200

This way, it does the same as the Link example above, but checks off one Link and sends the player to the correct page depending on the SPEED Variable value (where page 100 is Getting Caught & page 200 is Escape).