maximusleroy

Member
Aug 26, 2016
147
563
Since you want to display stat changes, which would have changed when clicking something on the previous passage, you could change your stats macro to only calculate the value of the change and push it to an array:
variables().changes.push([stat, value]);

Then in the next passage you can call a macro that will display all the changes and empty the array
You don't have permission to view the spoiler content. Log in or register now.

All the player stat have been moved to a player object, and all addictions to an addiction object. That way if you were to add more addictions at some point you wouldn't have to rewrite functions that loop over all addiction like this:
You don't have permission to view the spoiler content. Log in or register now.
Since the addictions total will become stale as soon as any of the addictions change, it's better to assign it as a temporary var and only calculate it when needed. Otherwise it will become stale and, if you forget to recaculate it before using it again, could lead to unexpected outcomes.


If you want to display an image randomly, instead of:
<<randomInt 1>><<if $int eq 0>><img src="img/enemy1/01/tease1.jpg"><</if>><<if $int eq 1>><img src="img/enemy1/01/tease2.jpg"><</if>>
You could use this:
[img[`img/enemy1/01/${either('tease1', 'tease2')}.jpg`]]
 
Last edited:

Turbonerd

New Member
Feb 18, 2018
4
19
Does Lana being an aspirant make her less likely to get more content? Cuz I would love to have some kind of progression with her... or any futa character down the road. Great start! Hooray for girlcock addictions!
 

maximusleroy

Member
Aug 26, 2016
147
563
You might want to turn player into a class, keeps the code better organized.
Then you can keep the code in macros to a minimum.
You don't have permission to view the spoiler content. Log in or register now.
Edit: Classes need to be made compatible to be successfully stored within story variables.
You can stick with generic object and let SugarCube handle that on its own if you would prefer.
You don't have permission to view the spoiler content. Log in or register now.
 
Last edited:

maximusleroy

Member
Aug 26, 2016
147
563
If you want to keep value within a certain range, you could define a function that does that

JavaScript:
Math.clamp = (val, min, max) => {
  min = parseInt(min) || -Infinity;
  max = parseInt(max) || Infinity;
  if (min > max) [min, max] = [max, min];
  
  return (val < min) ? min : (val > max) ? max : val;
}
 

Oliz82

Active Member
Mar 15, 2021
763
693
Hello.

The samples and summary, which reminded me of Trials of the Succubi from Indyc and already mentioned by other players, made me come. The result is correct but difficult.

The worldbuilding is limited but fitting.
The characters are few and different.
The plot is interesting.
The photos and videos are well chosen.

The protagonist's girlfriend has been kidnapped by succubi and, to take her back, he decides to challenge them.
The flow of events is alright. There's a good variety of them.
The characters are nice. The MC's personality is fine.
The artistic side is well done. The models are appealing. The sex scenes are diverse and exciting.

I didn't go far in the game since I die everytime I encounter Sarah (yeah, it's too hard for me; whatever I do don't seem to be effective enough since my lust increase too much and too easily compared to her ridiculous few points gained) but what I saw was fine.

There's a gay path planned and, as a bi man, it makes it even more interesting.

Good continuation.
 
  • Like
Reactions: tommyboyx595
4.40 star(s) 5 Votes