G
Guest
Guest
Archived from groups: rec.games.roguelike.development (More info?)
I playtested Dweller yesterday and found a small curiosity that I didn't
mean to happen when I wrote the code:
In Dweller I have an item, Book of Charms, that can be used to pacify a
nearby monster and make it friendly. If the monster is charmed and
becomes friendly it's AI is changed so that it always tries to stay in a
map cell adjacent to the player. If the monster starts it's turn in a
cell adjacent to the player it will start defending the player from
other nearby monsters. It will attack any monster that is adjacent to
the player. The thing is that if the charmed monster is the only monster
adjacent to the player it will start attacking itself, committing
suicide in order to protect the player from itself.... talk about
overprotective!
Weird/fun/bug/feature... I don't know, but I guess I'll have to change
it for the next release
Happy coding everyone!
BR,
Björn Bergström
roguelike development [http://roguelikedevelopment.org]
dweller - cellphone roguelike [http://roguelikedevelopment.org/dweller]
I playtested Dweller yesterday and found a small curiosity that I didn't
mean to happen when I wrote the code:
In Dweller I have an item, Book of Charms, that can be used to pacify a
nearby monster and make it friendly. If the monster is charmed and
becomes friendly it's AI is changed so that it always tries to stay in a
map cell adjacent to the player. If the monster starts it's turn in a
cell adjacent to the player it will start defending the player from
other nearby monsters. It will attack any monster that is adjacent to
the player. The thing is that if the charmed monster is the only monster
adjacent to the player it will start attacking itself, committing
suicide in order to protect the player from itself.... talk about
overprotective!
Weird/fun/bug/feature... I don't know, but I guess I'll have to change
it for the next release
Happy coding everyone!
BR,
Björn Bergström
roguelike development [http://roguelikedevelopment.org]
dweller - cellphone roguelike [http://roguelikedevelopment.org/dweller]