8/15/2023 0 Comments Dopewars clone tutorial![]() # Add the loan shark to location 1 Stores 1,Īn NPC is who the player fights every EncounterRange days if Encounters is set to true. # Have a store appear at location 2, that sells equipments 1,2 Stores 2, Message length is defined in +BulletinLength.Īll other stores have their inventory defined in arrays of Equipment objects. This is a place the player can go to pay BulletinCost cash to leave a small message on the bulletin board. If the player doesn’t pay the bookie back within BookieTolerance days, the bookie will break their legs and end the game. The bookie’s name is defined in BookieName. This is where the player can borrow or repay the bookie. This is where the player can store extra cash they have and earn BankInterestRate interest. There are a few built-in store types you can use for game specific needs: bank Each store must be linked to a location_id to show up. You can customize the stores in the data file. Stores are where players can buy equipment to boost their strength, defense, space or life points. # Have a location appear at slot 8 Locations 8, :name => 'Some Location') To customize the locations in the game, edit the Locations array in the data file. Locations are where players buy products and see available shops. :disposable => true # apply life immediately and throw away the med pack :limit => 999, # limit should be set so they can buy enough to fully heal :price => 10_000, ![]() This helps the player absorb hits in fights. This makes the player hit harder in fights. This adds space so the player can carry more items. This adds to the player’s max life as long as they hold the item. If this is set to true the equipment is immediately applied to the player and disposed ofĮquipment can adjust the following attributes, in the :adds attribute: life This is how many the player is allowed to have in their equipment array. The ID used to reference the equipment name If an item is disposable its immediately applied to the player, but not stored in their equipment array.Įquipment has the following attributes: id As long as the equipment is in the players control that attribute is boosted.Įquipment can also be :disposable which is generally used for healing. :max_message => 'Speakers are really expensive!'Įquipment is what the player can purchase to help boost certain stats. :min_message => 'Speakers are really cheap!', # Add a product for speakers, selling between 1000-3000 If the price is bumped down, the :min_message is shown in the event box, if it goes up the :max_message is displayed. Special events also occur which might bump prices down or up. Prices fluctuate normally between the price_range. Products are what the player can buy and sell at different locations to make cash. The game length, all NPCs, encounters, products, equipment, special events, locations and shops. *See: lib/wars/wars/data.rb* You can configure most of the game details through the data file. There is a demo up and running on heroku: Configuring Wars ¶ ↑ The main objective of Wars is to become to top trader of office supplies and crush your foes! Installing/Running Wars ¶ ↑ It doesn’t have fancy graphics or any of that jazz, but it is really fun to kill a few minutes during downtime. If you were a fan of the DopeWars games then give this a shot. Wars is a web based trading game with gameplay based on DopeWars.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |