title: getting attribute error in renpy where object has no attribute EDIT: Additional information
body: <p>I've been trying to make a pesudo RPG like game on renpy using python coding. I'm mostly using this as a basic testing ground and organized my code into different rpy files.  But right now, I am having trouble trying to tie these skills from the subclass to the main class. Here's the character  class</p>
  <p>#Detective Attributes</p>
  <pre><code>class Detective:
      def __init__(self, name, intelligence, psyche, strength, dexterity):
          self.name = name
          self.intelligence = intelligence
          self.psyche = psyche
          self.strength = strength
          self.dexterity = dexterity
  </code></pre>
  <p>#Intelligence skills</p>
  <pre><code>class IntSkill(Detective):
      def __init__(self, logic, history, persuasion, deception):
          super().__init__(self, name, intelligence, psyche, strength, dexterity)
  
          self.logic = logic
          self.history = history
          self.persuasion = persuasion
          self.deception = deception
  </code></pre>
  <p>default detective = Detective(&quot;nameless&quot;, 5, 5, 5, 5)</p>
  <p>I feel as though I should just post the full script so people will know what I'm looking for. Trying to apply pesudo RPG like effects where the attributes of the detective class will also carry into the skills that are supposed to be defined as the child of the class.</p>
  <pre><code>label start:
  
  
  unknown &quot;Can you feel it?&quot;
  
  &quot;...&quot;
  
  unknown &quot;Can you see it?&quot;
  
  &quot;...&quot;
  
  unknown &quot;The spark of life flowing back in your mortal coil.&quot;
  
  unknown &quot;It may feel empty, cold and dark at first. That's always the case like this.&quot;
  
  unknown &quot;Now, your last moments, do you remember them, child of man?&quot;
  
  unknown &quot;'Sorry detective, but the game was rigged from the start.'&quot;
  
  &quot;First silence,&quot;
  
  &quot;then there was gunfire.&quot;
  
  &quot;Three shots were fired.&quot;
  
  &quot;The last two were in rapid succession, as though fired at the same time.&quot;
  
  unknown &quot;Yes, yes it is exactly as you remember it.&quot;
  
  unknown &quot;But do you remember anything after? Anything before?&quot;
  
  &quot;No... I don't think I do.&quot;
  
  unknown &quot;Nobody really remembers their experiences after death.&quot;
  
  unknown &quot;But most would remember their time before their death. Do you not know?&quot;
  
  &quot; I don't know if I know myself. Who am I?&quot;
  
  unknown &quot;Ahh, scrambled and fried like eggs over an open flame.&quot;
  
  &quot;Something happened?&quot;
  
  unknown &quot;Yeah child of man... you died.&quot;
  
  &quot;I knew that from what you were saying.&quot;
  
  unknown &quot;And do you remember nothing before then?&quot;
  
  &quot;Some double fucking mother fucker with poor fashion sense.&quot;
  
  &quot;And a... bird folk?&quot;
  
  unknown &quot;Ah so some memories have survived.&quot;
  
  &quot;Why is this happening?&quot;
  
  unknown &quot;Because sometimes the universe has a cosmological joke to play on all of us,&quot;
  
  unknown &quot;even me.&quot;
  
  &quot;So what happens now?&quot;
  
  unknown &quot;First I will ask you a couple questions.&quot;
  
  menu:
       unknown &quot;What is your most definitive attributes?&quot;
  
       &quot;My vast intellect to unraveling the Material world&quot;:
           $ nameless.intelligence += 2
  
           jump after_attribute_1
  
       &quot;My intimate relationship with the Immaterial.&quot;:
           $ nameless.psyche += 2
  
           jump after_attribute_1
  
       &quot;My martial prowess&quot;:
           $ nameless.strength += 2
  
           jump after_attribute_1
  
       &quot;My flexability and nimbleness.&quot;:
           $ nameless.dexterity += 2
  
           jump after_attribute_1
  
  label after_attribute_1:
  
  menu:
       unknown &quot;Good... now, what is your weakest trait?&quot;
  
       &quot;I struggle to grasp the basics of Material science&quot; if nameless.intelligence == 5:
           $ nameless.intelligence -= 2
           jump after_attribute_2
  
       &quot;I am deaf to the Immaterial.&quot; if nameless.psyche == 5:
           $ nameless.psyche -= 2
           jump after_attribute_2
  
       &quot;I am physically weak.&quot; if nameless.strength == 5:
           $ nameless.strength -= 2
           jump after_attribute_2
  
       &quot;I trip over my own feet.&quot;if nameless.dexterity == 5:
           $ nameless.dexterity -= 2
           jump after_attribute_2
  
  label after_attribute_2:
  
  unknown &quot;Now let us see how you handle critical thinking.&quot;
  
  unknown &quot;What do you think happened?&quot;
  
  if nameless.intelligence.logic &gt;= 7:
      &quot;\[Passive Logic Successful] I think I got shot in the head.&quot;
  
  if nameless.intelligence.logic &lt; 7:
      &quot;Balls if I know&quot;
  
  
  return
  </code></pre>
  <p>And this is what I keep on getting.</p>
  <pre><code>[code]
  I'm sorry, but an uncaught exception occurred.
  
  While running game code:
    File &quot;game/script.rpy&quot;, line 126, in script
      if int.logic &gt;= 7:
    File &quot;game/script.rpy&quot;, line 126, in &lt;module&gt;
      if int.logic &gt;= 7:
  AttributeError: type object 'int' has no attribute 'logic'
  
  -- Full Traceback ------------------------------------------------------------
  
  Full traceback:
    File &quot;game/script.rpy&quot;, line 126, in script
      if int.logic &gt;= 7:
    File &quot;renpy/ast.py&quot;, line 1892, in execute
      if renpy.python.py_eval(condition):
    File &quot;renpy/python.py&quot;, line 2249, in py_eval
      return py_eval_bytecode(code, globals, locals)
    File &quot;renpy/python.py&quot;, line 2242, in py_eval_bytecode
      return eval(bytecode, globals, locals)
    File &quot;game/script.rpy&quot;, line 126, in &lt;module&gt;
      if int.logic &gt;= 7:
  AttributeError: type object 'int' has no attribute 'logic'
  
  Windows-10-10.0.19041
  Ren'Py 7.4.6.1693
  Tales of Tellus Mindthrob 0.1
  Thu Jun 24 22:48:31 2021
  [/code]
  </code></pre>
  <p>I've been trying to use things like class inheritor but I just don't know what I am doing wrong.</p>