ID:179232
Jan 30 2002, 3:37 pm
|
|
Ok, what I want to do is make a text only game, but i want a combat system with which you can equip weapons, armor, etc. Can somebody pleas help me in how I would go about doing so?
|
Jan 31 2002, 1:46 pm
|
|
I would say just don't make a viewable screen, but make some way that the players can get weapons/items.
|
In response to Mertek
|
|
i Say give them a verb to buy it when they have enough gold
and when they buy it make an equip verb as well |
In response to Richter
|
|
There are lots of way you could approach it. One way would be to still give them obj's in their contents (inventory) so you can access that obj's stat increases.
mob var obj arm_e leg_e body_e head_e obj arm shield var/defense = 5 Equip() set src in usr if(arm_e) usr << "You already have something equiped there!" arm_e = src usr.defense += defense Unequip() set src in usr if(!arm_e) usr << "You have nothing equiped there!" arm_e = null usr.defense -= defense Something like that should work for you, you'll make it your own way to fit your game of course. |