scrom / Experiments

a NodeJS text adventure - deliberately coded badly to re-experience the pain of legacy code
http://mvta.herokuapp.com/
2 stars 0 forks source link

Allow upgrade for hunting skill to "follow" #376

Closed scrom closed 9 years ago

scrom commented 9 years ago

Offer a reward for hunting more than say 10 times. (in a mission) increase hunt level and implement "follow" action.

follow action will only work if player has a high enough hunting skill (2 or more I guess).

this would require tracking how many times a player has hunted someone

scrom commented 9 years ago

Follow call should be:

                case 'follow':
                    if (!(_object0)) { _object0 = _object1 };
                    description = _player.follow(_verb, _object0, map);

if player has sufficient hunt experience they should be able to follow a trail. if they have no hunt experience, if the creature they want to follow has only just left the current location, player should be able to follow - location.getExitWithNamedCreature (most effective way is a combination of finding which location has the named creature in plus validating their trace is fresh (Math.floor(map.getLocationCount()/5))

scrom commented 9 years ago

this works and it's really cool! :D

scrom commented 9 years ago

Hunt and hunt upgrades are both delivered via missions/rewards, not in the core game logic so the availability of this feature is driven mostly by game data