15 Nisan 2020 Çarşamba

Choice of Game Coding {3}

Day 3 of my logbook,

Well I wrote that I'll try to update at the end of the day, I was pretty occupied with sorting out a sidetrack issue of the main character MC).

I used temprorary variables for designating some outcomes and binded those outcomes to actions,
4+(1) temp variables and 3 binding actions by using ifs.

For 1st temp and if action I also added another temp variable with another short action.

Than  I used 1d12 dice and for designating the binding 3 actions and their return values.

Finally for summing up the day I needed to use the outcome of the main temp used as 1d12. But after using the temps for 2 different set of actions and having label breaks I couldn't manage to have the outcome.

for e.g.
Think it as your character barista at a coffechain and fresh one.
*temp performance
*rand performance 1 12

*if performance  < 5
bla bla bla
*if (performance > 4) and (performance <9)
bla bla
*if performance > 9
bla bla

so also for  another action used performance temporary variable again with success.

When at the end of the day setting daily tips based on performance the system crushes.
I had the right solution but implemented to wrong place.

After few hours of break,  I sat and introdced another set of variables - not temp for stating three degrees; AAA / BBB /CCC let's say.

So when I added
*set aaa +1 to the right *if statement after its action messages but before
*goto  than I proceeded to the end day action
*if aaa > 0
 have tips of aaa
*set characterswealth +1¢

 voilaaa! worked smoothly. Another selfcreated problem solved. (If I tried a little simpler approach I wouldn't have to deal with the problem of multiple layer random variables and their outcomes of multiple if statements.)

because it is a sidetrack issue I only added variables to startup.txt and variables.txt but not savegame - no need to save them they will be usefull as 0 values for next scenes.

So enough with my amateur code experiencing , the story for the paths are shaping in my mind and as I proceed without stucking (codewise) I believe I will gain pace.

Another side scene is mostly complete - a rich one as well. Yesterday marked my completion of 1st side scene. 4th main story scene also in progress ~ %20  - % 22.

Also thought about few concepts to implement into gosubs for general usage .

I will probably finish side scene with story and arithmetics wise rich tonight.
So far satified with the development.

Before closing todays log  I also would like to share that I received my reply from asst. editor of Choice of Games . I now have the proper address to send my beta besides dashingdon.

Step by step I'm on my way of gaming journey as developer ^^





Hiç yorum yok:

Yorum Gönder