before anything please don't send me to look at any more weapon demos b/c they all suck, they don't tell you how its done and they don't tell you where the name of the weapon goes etc so this is what i want as in weapons
i got a file full of weapons (axes.dmi)
Acha D Armas <-- name of weapon
this weapon does 4 D10 +6
this weapon also gives a +2 str (Strength), +1 dex (Dexterity), -3 vit (Vitality), -2 agi (Agility)
the only class that can use this is Fighter, Dark Knight, Beast Master, Ranger
this is a one handed weapon
now i want to attack (my attack vs armor class), then when it hits it does the damage
to "hit" it B.A.B. or base attack bonus (this is a class feature, all classes have diferent B.A.B.) + str (Strength), + any other abilities, class abilities, skills, feats, limitbrakes etc
now when i hit the ac = armor class or pass it i do damage
weapon damage = 4 D10 +6 (this is the weapon damage) + str (Strength)"two handed weapons add a times 1.5 str damage to it" but this is a one handed weapon, i can also add attack bonus(class ability), skills, feats etc
so now how i do this and please dont send me to a demo or to the DM b/c they dont explain this, thanks for your help
ID:164536
May 26 2007, 7:03 pm
|
|
i suggest that you read the DM guide to learn more about the language. most of what you ask is a battle system i suggest you look for demo and libs on combat systems. but i will give you alittle bit of code about objects and varibles.
obj/weapon/var Read more about DM and i hope you can make your combat system. |
In response to GhostAnime
|
|
sir ghostanime i thank you for the info but now im more confuse then before lol, like i say before im new at this coding thing :(
|
In response to B.E.A.M
|
|
thank you sir B.E.A.M. this is not as confusing as mr. ghostanime suggestion, i still dont understand how datum works
|
In response to Gotenl52000
|
|
Okay, you have to walk before you can run and you're trying to sprint right now. Just try to make a basic equip thing. You said that the demos don't even tell you where the name of the weapon goes. You should be able to figure that out for yourself. If you cannot figure that out you haven't read the DM Guide. If you have "read" the DM Guide and you don't understand it, you're lazy and not really reading it.
|
- Have a datum (which I recommend) or something similar where you can define the weapon, such as /Wep
- Name and give the appropriate icon to the weapon object you are trying to make
- Have a variable set up for the roll damage, recorded as a string, such as Wep/var/roll="4d10"
- Have a list variable (or something similar, lists are more cleaner) set up for bonus gains/losses where, when equipped, it effects said stat(s) [having a general proc for equipment and stat modifying is highly recommended]
- Program a battle system which does whatever you want (eg: calls the damage via roll() using the Wep.roll [roll(Wep.rol)]