Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old December 31, 2011, 22:47   #1
Malak Darkhunter
Knight
 
Malak Darkhunter's Avatar
 
Join Date: May 2007
Location: US
Age: 42
Posts: 720
Malak Darkhunter is on a distinguished road
some more questions about coding

So i've done some extensive work to my V variant, mainly in object.txt and monster list.txt, It seems easy to modify and tweak values as well as removing spell effects and damage values of monsters. My question though is if I add a spell to a monster such as | Missle | or | BO_COLD | will it work in the game just by modifying the creature list.txt without having to do extensive coding that I'm unfamiliar with doing.
__________________
let me try this workaround...oh crap computer just went black
Malak Darkhunter is offline   Reply With Quote
Old December 31, 2011, 23:06   #2
Zyphyr
Adept
 
Join Date: Jan 2008
Posts: 135
Zyphyr is on a distinguished road
So long as you are using an existing spell that is already set up to be used by monsters, no changes beyond the edit file will be needed. If you want a spell that isn't already available to monsters (though I can't think of any that aren't which you would really want to give them) then you would need to do some programming.
Zyphyr is offline   Reply With Quote
Old December 31, 2011, 23:20   #3
Malak Darkhunter
Knight
 
Malak Darkhunter's Avatar
 
Join Date: May 2007
Location: US
Age: 42
Posts: 720
Malak Darkhunter is on a distinguished road
That's awsome! This coding thing is starting to turn into a hobby
__________________
let me try this workaround...oh crap computer just went black
Malak Darkhunter is offline   Reply With Quote
Old December 31, 2011, 23:55   #4
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,023
Derakon is on a distinguished road
I would tend to think of changing the edit files as "modding" instead of "coding" -- coding would require changing the source code and then recompiling. But that's just me being pedantic.

One thing to keep in mind with spells is that if you want to give spells to a monster that doesn't currently have any, you also have to specify the casting frequency (e.g. S:1_IN_5). I think if you don't do that then the frequency is presumed to be "never", though I haven't tried.
Derakon is offline   Reply With Quote
Old January 1, 2012, 00:55   #5
Malak Darkhunter
Knight
 
Malak Darkhunter's Avatar
 
Join Date: May 2007
Location: US
Age: 42
Posts: 720
Malak Darkhunter is on a distinguished road
Quote:
Originally Posted by Derakon View Post
I would tend to think of changing the edit files as "modding" instead of "coding" -- coding would require changing the source code and then recompiling. But that's just me being pedantic.

One thing to keep in mind with spells is that if you want to give spells to a monster that doesn't currently have any, you also have to specify the casting frequency (e.g. S:1_IN_5). I think if you don't do that then the frequency is presumed to be "never", though I haven't tried.
I considered that, but wasn't for sure if it needed changed, have seen where there is 1_in 2, 1_in_6 , but there being more spells than that frequency, Possibly counts blows per round in that frequency as well?
__________________
let me try this workaround...oh crap computer just went black
Malak Darkhunter is offline   Reply With Quote
Old January 1, 2012, 02:16   #6
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,023
Derakon is on a distinguished road
The frequency is just how likely the monster is to choose to cast a spell on their turn. If they do decide to cast a spell, they then decide which spell to cast separately. So a monster with 1_IN_1 might as well have NEVER_MOVE because it will try to cast a spell every turn (well, unless it's confused). A monster with 1_IN_2 will cast spells 50% of the time, and the other 50% attempt to move towards the player (or attack if they're already in melee range). And so on.
Derakon is offline   Reply With Quote
Old January 1, 2012, 02:34   #7
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 36
Posts: 911
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis
Quote:
A monster with 1_IN_2 will cast spells 50% of the time, and the other 50% attempt to move towards the player (or attack if they're already in melee range). And so on.
Huh, so monsters that are not casting spells ALWAYS move toward the player and attempt to melee? Odd that I never noticed that before... well, OK, I did think it was a bit strange that novice mages didn't run away when I attempt to melee them, but I didn't realize they actively pursued the player too!
__________________
You read the scroll labeled NOBIMUS UPSCOTI...
You are surrounded by a stasis field!
The tengu tries to teleport, but fails!
ekolis is offline   Reply With Quote
Old January 1, 2012, 03:52   #8
Malak Darkhunter
Knight
 
Malak Darkhunter's Avatar
 
Join Date: May 2007
Location: US
Age: 42
Posts: 720
Malak Darkhunter is on a distinguished road
Quote:
Originally Posted by Derakon View Post
The frequency is just how likely the monster is to choose to cast a spell on their turn. If they do decide to cast a spell, they then decide which spell to cast separately. So a monster with 1_IN_1 might as well have NEVER_MOVE because it will try to cast a spell every turn (well, unless it's confused). A monster with 1_IN_2 will cast spells 50% of the time, and the other 50% attempt to move towards the player (or attack if they're already in melee range). And so on.
Hmmm, definetly noted will have to remember the frequency when I modify the spell tables for monsters and movement, thanks for clearing that up. I'm experimenting with making a variant more D@D based, So weapons Damage Dice will be completly changed as well as artifacts to reflect basic weapon damage Die. Note this is an experiment, so not sure how this will work end game but I'm envisioning something like this:

1. Daggers-1d4 no change really
2. Short swords, maces, spears, quarterstaffs-1d6
3. Longswords, broadswords, Axes, morningstars, warhammers, light flails-1d8
4. Halberds, tridents, Lucerne Hammers, Katanas, Bastard Swords-1d10
5. Great Axes, Two-handed Swords, Two-handed Flails, Scythes-1d12
6. Giant Weapons-Mace Of disruptions, Blades of Chaos, Executioner Swords-1d20.

This won't hurt the begining game to much but late game it will definetly do a little less damage per blow. Weapon weight will be adjusted some to reflect the less damage die of the weapons.

Blindness and Confusion will be much more rare an effect and individualized to certain monsters that make more sense for them to be able to cause those effects, in ex. Bronze dragons and the like, eyes, drujs, Angels, umber hulks, beholders, Light casting monsters.

Some monsters like liches, will have access to more spells, such as frost bolts, fire bolts, lightning bolts, Greater undead like Master liches will cast fire balls, Cold balls, nether bolts. Mages and Sorcerers will have more to. Priests have summon undead abilities. Some Scare spells removed from monsters such as novice paladins, novice mages, their not powerful enough to scare anybody.

Life Draining will also be a little more rare in general, more specialized to vampiers and ghosts, wights, wraiths. Specters, phantoms, shades, will have a weakness affect such as lose_Str touch attack, or lose_dex, Lose_Con. Hoping to not have to modify monster HP to reflect less damage Die of weapons, and artifacts. I like the idea of modifying the artifacts damage die to the same as base weapon damage die, in order to bring them closer together in competition with one another. in example: Longsword-1d8 and ringil also being 1d8, longsword anduril-1d8 and so on so forth.

This is my idea behind it, input is greatly appreciated, but note it is an experiment to see how well it works.
__________________
let me try this workaround...oh crap computer just went black
Malak Darkhunter is offline   Reply With Quote
Old January 1, 2012, 23:47   #9
buzzkill
Prophet
 
buzzkill's Avatar
 
Join Date: May 2008
Location: Indiana, USA
Posts: 2,939
Donated: $8
buzzkill is on a distinguished road
I was wondering when someone was going to attempt an AD&Dangband. Best of luck!
__________________
www.mediafire.com/buzzkill - Get your 32x32 tiles here. UT32 now compatible Ironband and Quickband 9/6/2012.
My banding life on Buzzkill's ladder.
buzzkill is offline   Reply With Quote
Old January 2, 2012, 08:54   #10
LostTemplar
Knight
 
Join Date: Aug 2009
Posts: 670
LostTemplar is on a distinguished road
Quote:
1. Daggers-1d4 no change really
2. Short swords, maces, spears, quarterstaffs-1d6
3. Longswords, broadswords, Axes, morningstars, warhammers, light flails-1d8
4. Halberds, tridents, Lucerne Hammers, Katanas, Bastard Swords-1d10
5. Great Axes, Two-handed Swords, Two-handed Flails, Scythes-1d12
6. Giant Weapons-Mace Of disruptions, Blades of Chaos, Executioner Swords-1d20.
Dont forget to limit magical pluses to +6 or something like this, otherwise nothing will change.
LostTemplar is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
3.3.0 Questions Monkey Face Vanilla 16 November 18, 2011 12:15
more variant coding woes will_asher Variants 1 February 10, 2011 05:18
Angband coding question will_asher Variants 10 September 3, 2008 22:03
Coding standard? Indentation? Bandobras Vanilla 10 May 24, 2008 19:46
Making DaJAngband: a couple non-coding related questions will_asher Variants 2 April 2, 2008 16:25


All times are GMT +1. The time now is 11:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.