devolution

Author Topic: General Discussion  (Read 3821406 times)

0 Members and 55 Guests are viewing this topic.

Offline picobyte

  • Jr. Member
  • **
  • Posts: 75
Re: General Discussion
« Reply #9150 on: December 11, 2016, 06:57:54 PM »
Code: [Select]
    $ i = 1
    while i < randint(3, 5):
        $ i += 1
        call city_tavern_thugs_fight

Not sure if it matters here, but this does probably not what you intend: The chance of breaking the loop is not equally distributed between 3 and 5. To show this try running the code below in a python console a few times with test(100):

Code: [Select]
def test(end):
   i=0
   while i < random.randint(1,end):
        i += 1
        print(str(i))

You'll notice that it almost never reaches 50.  The loop tends to stop earlier, since a new end is tested each iteration. It's better to define the end before the loop:

Code: [Select]
    $ i = 1
    $ end = randint(3, 5)
    while i < end:
        $ i += 1
        call city_tavern_thugs_fight

As to your original question, you figured out it was something different, but in contrast the code below can be an infinite loop:

Code: [Select]
    $ i = 1
    while i != randint(3, 5):
        $ i += 1
        call city_tavern_thugs_fight
« Last Edit: December 11, 2016, 07:30:39 PM by picobyte »

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #9151 on: December 12, 2016, 03:02:02 AM »
BTW I never seem to get scrolls for Casters. They are present in game/content/db/items_scrolls.json, but it seems they are not yet loaded? probably a known issue..
I'm not sure yet how to handle them, or if we need them at all. There are a lot of them, they all look the same and do the same thing. Perhaps some kind of menu or a scripted item, like a book of spells, will be better.

You'll notice that it almost never reaches 50.  The loop tends to stop earlier, since a new end is tested each iteration. It's better to define the end before the loop
I see, thanks.

Offline picobyte

  • Jr. Member
  • **
  • Posts: 75
Re: General Discussion
« Reply #9152 on: December 12, 2016, 08:04:56 PM »
I think I'll move on to auto_equip next. 0.05  secs to run to equip 1000 chars should be good enough.

And ehrm.. can I get a status upgrade, or will I be newbie forever? ::)

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #9153 on: December 13, 2016, 12:14:29 AM »
It's up to you, status is based on the number of posts  :)
If I'm not mistaken, the second level requires 50, and the fifth level, Hero Member, requires 1000 posts.
« Last Edit: December 13, 2016, 01:47:41 AM by DarkTl »

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #9154 on: December 13, 2016, 12:40:09 PM »
Finally got my net back, now with a new shiny optical connection! I cannot mess with forum status, or I don't think that I can, it will update itself after required amount of posts is reached.
Like what we're doing?

Offline lamoli

  • Hero Member
  • *****
  • Posts: 553
Re: General Discussion
« Reply #9155 on: December 13, 2016, 01:40:42 PM »
Nice.. finally found a possible good inspiration source for Pytfall clothing..


https://chan.sankakucomplex.com/?tags=houtengeki


can you check if his work is alright for Pytfall clothing.. (from the 215 iv browsed so far it looks great)


Next up is action poses with expression only having 1 is a big problem and not happy until i find more..
« Last Edit: December 13, 2016, 01:43:48 PM by lamoli »

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #9156 on: December 13, 2016, 02:26:57 PM »
Yeah, they are perfect.

Offline picobyte

  • Jr. Member
  • **
  • Posts: 75
Re: General Discussion
« Reply #9157 on: December 13, 2016, 02:34:39 PM »
It's up to you, status is based on the number of posts  :)
If I'm not mistaken, the second level requires 50, and the fifth level, Hero Member, requires 1000 posts.

Ah haha, maybe I'll just post my patches here as well then, for review purposes, of course

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #9158 on: December 14, 2016, 11:40:59 AM »
I added a (free yet) dice minigame in tavern. While it works as intended, it could use cool renpy-based animations to show dices, which is beyond my capabilities.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #9159 on: December 14, 2016, 12:07:02 PM »
I added a (free yet) dice minigame in tavern. While it works as intended, it could use cool renpy-based animations to show dices, which is beyond my capabilities.

Like what? Is this like black-jack with dice?
Like what we're doing?

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #9160 on: December 14, 2016, 12:42:22 PM »
Yeap. Many big games these days have cards/dices minigames, sometimes with quite complex rules - like dice poker in Witcher.

For example, when new dice appears, dices that already are on the "table" could move to the left to free enough space for it, and the new dice will appear via zoomin or slideleft.

Offline Xela

  • Global Moderator
  • *****
  • Posts: 6893
  • "It's like hunting cows"
Re: General Discussion
« Reply #9161 on: December 14, 2016, 12:55:42 PM »
It may not be worth the effort for beta, position of each dice might have to be controlled with custom code. I'll try something simple(r) but it prolly not gonna work.

Edit: Scratch that, I keep forgetting that they keep improving sh!t :)
« Last Edit: December 14, 2016, 01:42:25 PM by Xela »
Like what we're doing?

Offline picobyte

  • Jr. Member
  • **
  • Posts: 75
Re: General Discussion
« Reply #9162 on: December 17, 2016, 08:41:07 AM »
I have a deep respect for whoever wrote the skill code. It must have required a lot of action points, multipliers and training.

Offline picobyte

  • Jr. Member
  • **
  • Posts: 75
Re: General Discussion
« Reply #9163 on: December 17, 2016, 09:04:23 AM »
If I got this straight, for skills there are three multiplier, and 2 linear stats, multipliers are within bounds: 0.5 to 1.5. The first linear describes the 'action', the number of points for the stat, it has the first multiplier. the 2nd linear, determines the training: beyond where action points are going to weight only 1/3, withthe 2nd a multiplier. The third multiplier acts on the result: the action value up to the training threshold, plus the thirds beyond.
This is what you get when you call get_skill(), however, the multiplier is also applied for each new skill point that is added, and again there is another training threshold, but here, beyond, the addition is multiplied by the maximum of 0.1 and 1 - (training beyond / 3000).

Edit: strike last sentence as __setattr__ is not called on apply_item_effects()
« Last Edit: December 17, 2016, 10:59:28 AM by picobyte »

Offline DarkTl

  • Hero Member
  • *****
  • Posts: 4737
Re: General Discussion
« Reply #9164 on: December 17, 2016, 09:13:55 AM »
Here Xela outlined his skills concept in general.