Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 612 results for
troll
- Page 1
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
1 Month Ago
by Salem
It should be obvious by now from their posting history that the OP is a
troll
.
Re: Change-a-Letter-or-Two-Game
Community Center
Geeks' Lounge
17 Years Ago
by christina>you
troll
Re: I want to make a internet portal like Yahoo!
Community Center
14 Years Ago
by Fortinbra
troll
Re: c++ login and encryption help
Programming
Software Development
12 Years Ago
by silvercats
Troll
!
Re: Add real-time XMPP chat to any web application
Programming
Web Development
8 Years Ago
by diafol
Troll
VB.net Retrieve XML and Parse it
Programming
Software Development
16 Years Ago
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
12 Years Ago
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
14 Years Ago
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
16 Years Ago
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
16 Years Ago
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
12 Years Ago
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
16 Years Ago
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
16 Years Ago
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
16 Years Ago
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
16 Years Ago
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
13 Years Ago
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
16 Years Ago
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
16 Years Ago
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
12 Years Ago
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
16 Years Ago
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
16 Years Ago
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
16 Years Ago
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
16 Years Ago
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
16 Years Ago
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
18 Years Ago
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
16 Years Ago
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
16 Years Ago
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
16 Years Ago
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
14 Years Ago
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
14 Years Ago
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 << &…
1
2
3
11
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC