Gamebook Attributes
PhilMakesGames
23 Oct 2016, 23:07So I am setting up a reputation system, similar to that of Mass Effect's Renegade/Paragon system.
Basically, certain decisions (clicking certain links) will result in you either increasing your Samaritan or Vile 'rank.'
(Note: there is no decreasing either value, nor is there a limit - just increases by increments of +1).
This Samaritan/Vile rank system plays a role in future decisions.
For example: Say you are about 60% of the way through the game, and are confronting an angry man.
Your normal options (links to pages) are to >stand down >or confront him.
HOWEVER, if you Samaritan rank is at level 5, then an additional link would appear (to 'charm' him or whatever).
Is this kind of system possible in Gamebook, and if so, can someone teach me how to set it up?
Thank you in advance!
hegemonkhan
23 Oct 2016, 23:17see my post's links in your other thread, for a guide on Attributes and the 'if' Script usages (these two super scripts, especially when used together, let's you do 90% of all actions/events/coding/scripting you want to do in your game)
here's an example of the concept of what you want (in code):
// checking from high to low:
// (optionally: checking for exceeding a max and min limit/range):
if (test.score > 100) {
test.score = 100
} else if (test.score < 0) {
test.score = 0
}
if (test.score >= 90) {
test.grade = "A"
} else if (test.score >= 80) {
test.grade = "B"
} else if (test.score >= 70) {
test.grade = "C"
} else if (test.score >= 60) {
test.grade = "D"
} else {
test.grade = "F"
}
// or, checking from low to high:
// (optionally: checking for exceeding a max and min limit/range):
if (test.score > 100) {
test.score = 100
} else if (test.score < 0) {
test.score = 0
}
if (test.score < 60) {
test.grade = "F"
} else if (test.score < 70) {
test.grade = "D"
} else if (test.score < 80) {
test.grade = "C"
} else if (test.score < 90) {
test.grade = "B"
} else {
test.grade = "A"
}
PhilMakesGames
24 Oct 2016, 00:02So how do I implement this on a Gamebook?
hegemonkhan
24 Oct 2016, 00:59see the other thread, as I stated at the top of my previous post