Re: Change-a-Letter-or-Two-Game Community Center Geeks' Lounge by christina>you troll Re: I want to make a internet portal like Yahoo! Community Center by Fortinbra troll Re: c++ login and encryption help Programming Software Development by silvercats Troll ! Re: Add real-time XMPP chat to any web application Programming Web Development by diafol Troll VB.net Retrieve XML and Parse it Programming Software Development by Maffyx …level="70" name="Blakcghost" race="Troll" raceId="8" rank="6" url… level="70" name="Tallnskinny" race="Troll" raceId="8" rank="8" url… level="63" name="Gordafreeman" race="Troll" raceId="8" rank="8" url… Overloading functions in polymorphism Programming Software Development by mke48 …0; virtual void be_attacked(Orc* aggressor) = 0; virtual void be_attacked(Troll* aggressor) = 0; virtual void be_attacked(Goblin* aggressor) = 0… { Entity* monster1 = new Orc; Entity* monster2 = new Troll; monster1->attack(monster2); // calls void Orc::attack(Entity*) which… Game Error Programming Game Development by skorm909 …; int goblin = 25; int dwarf = 50; int troll = 75; int giant = 100; int glvl = 1…cout << "You have killed a Troll!\n"; cout << "\nYour loot…= 25; // monsters health. int dwarf = 50; int troll = 75; int giant = 100; int glvl = 1;… must be called with orc instance as first argument (got nothing instead)! Programming Software Development by tomtetlaw … + self.health return 'Defense' + self.defense class troll(): def _init_(self): self.health = 50 self.defense …() if monster_attacking == 2: print 'his attributes are:' + troll.getAttributesInfo() if __name__ == '__main__': main() [/code] hope someone… Re: must be called with orc instance as first argument (got nothing instead)! Programming Software Development by tomtetlaw … + self.health return 'Defense' + self.defense class troll(): def _init_(self): self.health = 50 self.defense…1: new_monster = orc() elif monster_attacking == 2: new_monster = troll() choce = raw_input('Do you want to attack:') if choice … RPG Game Help!!!! Programming Software Development by opprogrammer …;You are a wizard." Orc = Create(20, 75, 0) Troll = Create(500, 100, 500) Dog = Create(20, 20, 20)…." def train(): global sword, crossbow, knife, experience, Orc, Troll, Dog print print "-------------------------Monsters-------------------------" print "There are… Re: Text games are frustrating! Programming Software Development by lllllIllIlllI … 'You killed the Orc' def getInfo(self): self.getAttributesInfo() class troll(Monster): def _init_(self): Monster._init_(self, 7, 50, 7… if player.attacking == 1: print "You are attacking a Troll." if self.health <= 0: print 'You killed the… Re: Text games are frustrating! Programming Software Development by tomtetlaw …'You killed the Orc' def getInfo(self): self.getAttributesInfo() class troll(Monster): def _init_(self): Monster._init_(self, 7, 50, …if player.attacking == 1: print "You are attacking a Troll." if self.health <= 0: print 'You killed the… Text games are frustrating! Programming Software Development by tomtetlaw …You killed the Orc' def getAttributesInfo(self): Monster.getAttributesInfo() class troll(Monster): def _init_(self): Monster._init_(self, 7, 50, …if player.attacking == 1: print "You are attacking a Troll." if self.health <= 0: print 'You killed … Re: Text games are frustrating! Programming Software Development by tomtetlaw … def getInfo(self): self.getAttributesInfo() class troll(Monster): def _init_(self): Monster._init_(…1: print "You are attacking a Troll." if self.health <= 0… 30, 5) elif monster_attacking == 2: new_monster = troll(7, 50, 7) choice = raw_input('Do you… Case label not within a switch statement Programming Software Development by zendet … (troll_choice) case 1: cout<<"\nYou strike the troll with your sword\n"; troll_health = ( troll_health - attack );…else if ( troll_health > 0 ) { cout<<"The troll is still alive!!"; getch(); goto startfighttroll; case 2: cout… Re: must be called with orc instance as first argument (got nothing instead)! Programming Software Development by Gribouillis …2) if monster_attacking == 1: new_monster = orc() elif monster_attacking == 2: new_monster = troll() choce = raw_input('Do you want to attack:') if choice == 'yes…): Monster.__init__(self, 4, 30, 5) if player ..... class troll(Monster): def __init__(self): monster.__init__(self, 7, 50, 7… Re: must be called with orc instance as first argument (got nothing instead)! Programming Software Development by tomtetlaw … if monster_attacking == 1: new_monster = orc() elif monster_attacking == 2: new_monster = troll() choce = raw_input('Do you want to attack:') if choice == 'yes…Monster.__init__(self, 4, 30, 5) if player ..... class troll(Monster): def __init__(self): monster.__init__(self, 7, 50, 7… Re: RPG Game Help!!!! Programming Software Development by Schol-R-LEA …: %s" % Orc.defense print print "Troll info:" print "\tPower: %s" % Troll.power print "\tAttack: %s"…; % Troll.attack print "\tDefense: %s" % Troll.defense print print "… Needing help with a C++ program ~ Programming Software Development by fans3267 … when the dragon appears. If they both do nothing, the troll will think they are nice, animal lovers and will give…. If they both draw their swords on the dragon, the troll will think they are stressed out and over-reacting, and… P draws its sword and the U does nothing, the troll will think that the P is very brave and that… Re: must be called with orc instance as first argument (got nothing instead)! Programming Software Development by shadwickman It also looks like your "getAttributesInfo()" function in the troll class doesn't have "self" passed to it as an argument, and the same goes for the orc one. I think that's what your error is coming from. They should read "def getAttributesInfo( self ):" Re: Text games are frustrating! Programming Software Development by tomtetlaw …3, 'Orc') def GetAttributesInfo(self): monster.GetAttributesInfo(self) class troll(monster): def __init__(self): monster.__init__(self, 5, 20…if new_monster == 1: new_monster = orc() elif new_monster == 2: new_monster == troll() P = player() P.attack() if __name__ == '__main__': main() [/… Re: Text games are frustrating! Programming Software Development by Gribouillis … def GetAttributesInfo(self): return monster.GetAttributesInfo(self) class troll(monster): def __init__(self): monster.__init__(self, 5,… == 1: new_monster = orc() elif new_monster == 2: new_monster == troll() P = player() P.attack(new_monster) if __name__ == '__main__': … Re: Text games are frustrating! Programming Software Development by tomtetlaw … def GetAttributesInfo(self): return monster.GetAttributesInfo(self) class troll(monster): def __init__(self): monster.__init__(self, 5,…new_monster == 1: new_monster = orc() elif new_monster == 2: new_monster = troll() elif new_monster == 3: new_monster = dragon() elif new_monster == 4:… Rpg Programming Software Development by Mouche …current_monster = None rocky_path.monster_probability = 20 cave.possible_monsters_names = ["troll"] cave.current_monster = None cave.monster_probability = 1 # Monster …2, 2, 12,(16,16), 0, 10, 5 ) troll = ( "troll", 5, 4, 16,(60,60),-1, 30, 2 …in certain rooms. The cave always contains a troll, but it's too tough for the beginner… Re: Text games are frustrating! Programming Software Development by Gribouillis … changing the method's name is this [code=python] class Troll(Monster): def getAttributesInfo(self): Monster.getAttributesInfo(self) [/code] It's… in the parent's class. This allows you to define troll-specific behaviour in the derived class method. Re: Text games are frustrating! Programming Software Development by lllllIllIlllI … work out something else. THREE [code] if self.attack > troll.defense or orc.defense: [/code] This dosent work either. Python… checks if self.attack is more then troll.defence. If False then it checks the other requirement which… Re: Text games are frustrating! Programming Software Development by Gribouillis Also, your methods getAttribute info in troll and orc return None instead of what they should return. You shoud write [code=python] def getAttributeInfo(self): return monster.getAttributeInfo(self) [/code] C++ Game error Programming Software Development by skorm909 …goblin = 250; // monsters health. int dwarf = 500; int troll = 750; int giant = 1000; int glvl = 1; … = 250; // monsters health. int dwarf = 500; int troll = 750; int giant = 1000; int glvl = 1; …lt;< endl; cout << "3. Troll." << endl; cout << &… function error Programming Software Development by skorm909 …goblin = 250; // monsters health. int dwarf = 500; int troll = 750; int giant = 1000; int glvl = 1; … = 250; // monsters health. int dwarf = 500; int troll = 750; int giant = 1000; int glvl = 1; …lt;< endl; cout << "3. Troll." << endl; cout << &… Re: What does it take to be banned from this site? Community Center Meta DaniWeb by VernonDozier … of the doubt. If any mod doubts someone's a troll, proceed with the normal infraction system. But everyone has a…/thread347061.html[/url] From this thread all by itself, troll or no troll, he's just too annoying to bother keeping around… said something like (paraphrasing) "I know you're a troll so I'm not going to bother telling you, but…