Recent posts by dragon_of_celts on Kongregate

Flag Post

Topic: Cardinal Quest 2 / Post Your Made Up Class Here!

The following class is slow, with apalling block and evade chances, and is utterly hopeless with Magic (and almost as bad with Holy skills, unless the Mountain Guru ability is unlocked). On the up side, it has lots of HP and a useful companion, and can achieve heightened fighting skills when using an axe.
After a few levels, there are two ways to go: the path of the Mountain Guru (relatively peaceful, can use ram for fighting, and buff it with Holy spells) and the path of the Wild Man (berzerk fighter).


Edit: The Cardinal Quest 2 wiki seems to indicate that defence is used for block rate, not damage reduction as one would expect. If this is, in fact, true, then this class should be adjusted accordingly or Mountaineer would require special treatment to get damage reduction instead of block chance from defence stat.

Name: Mountaineer

Stats:
Very high: [none]
High: HP
Medium: Defence, Stealth
Low: Faith, Speed, Attack
Very low: Intelligence

Starting Skills:

[none]

Starting Items:

Weapon: axe
Head: [none]
Body: skins (+ 1 def, + 1 stealth (same starting armour as Celt, new))
Gloves: [none]
Footwear: fur boots (+ 1 def, + 1 stealth (new armour))
Jewelry: [none]

Special:

Like the ranger, Mountaineer has an animal companion: a ram. The ram has two possible attacks: a charge attack and a very weak hoof attack (charging damage will increase the further away the ram’s target is). When fighting enemies, the ram will usually attempt to disengage from melee in order to gain distance so that it can charge.
The ram has better defence and slightly more HP than the dog, but is inferior in all other stats (also, unlike the dog, there is no way to control what ram does — ram may even attack charmed or summoned creatures, scavengers, or anyone else besides the Mountaineer). The ram will not respawn after death unless a skill point is spent to resurrect it. It will not pursue blood orbs while it is still engaged in combat.

The Mountaineer gains an attack bonus when wielding an axe. His/her initial evade and block chances are rather dismal, but can be improved (against critical hits only) through passive abilities.

Skill Tree: (all skill tiers are cumulative unless stated otherwise)

Chop Chop (passive x3) —> Hacker Skills (passive x3) —> Wild Man (passive x3 + skill)

Solitude (passive) —> Foraging (skill) —> Mountain Guru (passive x2)

(Foraging can also be accessed from Survival Instinct)

Toughness (passive x-) —> Survival Instinct (passive x3) —> Fresh From the Ovine (special x-)

Chop Chop: Gain + 1 speed per tier when attacking only (does not apply speed increase when moving or using items or skills).

Hacker Skills: Gain + 1 attack per tier when wielding an axe. Also gain a slightly increased chance to critical hit per tier (increase is doubled when wielding an axe).

Wild Man (locked if Mountain Guru is chosen; requires level 6):
Tier 1: Gives Berzerk skill. Berzerk will automatically trigger if Mountaineer takes a critical hit or ram dies.
Tier 2: Chance to perform a second melee attack immediately after the first. If Berzerk is active, this chance is doubled. Second attack is a punch or kick, so weapon’s stats are not used.
Tier 3: If Mountaineer blocks, he/she counterattacks, but only half of attack stat is used to calculate whether hit connects. If Berzerk is active and hit connects, attack automatically becomes a critical hit (note that tier 2’s chance of a second attack will also be applied to this, though any second attack is not guaranteed to be critical).

Solitude: Receive 50% bonus to all effects of potions and activated skills when no other entities (apart from your ram) are visible.

Foraging (skill; recharges slowly by kills): This is basically a much weaker, physical (ie, not Magic or Holy) Heal. It will apply to both caster and any companions (if present), but be split among them according to their wounds (whoever has the lowest percentage of health from their maximum will receive the greatest benefit).

Mountain Guru (locked if Wild Man is chosen; requires level 5):
Tier 1: Gain + 7 faith. Damage from all attacks intiated by Mountaineer is reduced by 20% (rounded up; reduction minimum is 1, but damage cannot be below 0). Mountaineer’s axe attack bonus is now a staff bonus instead.
Tier 2: Gain a temporary, stackable + 1 faith bonus whenever Mountaineer takes damage, but these expire if Mountaineer attacks. All healing is now shared between Mountaineer and ram, and any Holy spells that usually only target caster can optionally be cast on ram.

Toughness: + 7 HP per tier.

Survival Instinct: Each tier increases chance to block and chance to evade for both Mountaineer and ram, but only for critical hits against them.

Fresh From the Ovine: Resurrect ram. Only unlocked if ram has expired. May be repeatedly used.

Perks:

Survivalist: Gain extra morale for using potions and skills with Solitude’s bonus and by Foraging.
Rambunctious: Ram’s charging damage is doubled, but all of Mountaineer’s damage (from any source) is halved. Gain extra morale and XP for ram’s kills.
Fleece Your Victims: Ram’s charging targets drop a few coins of gold (once a target drops gold, subsequent charging hits on that target will not produce any more).
Mutton Chops: Ram can now charge several entities in a line, pushing all but the last aside for 50% damage and a brief speed penalty (last target takes full damage). All enemies have increased speed.

Gear:

Poisonous: Start with an antivenom and a poison powder.
Furballs: Start with a fur hat (+ 1 defence, + 1 stealth (new armour)). Ram doesn’t wander as far.
Mountain Rage: Start with two rage potions.
Yeti: Start with Freeze spell. No other skills can be used, except for physical skills (e.g., Vital Strike, Frenzy). Base damage is much higher, but no weapon may be equipped, either (start without axe).

 
Flag Post

Topic: Cardinal Quest 2 / Post Your Made Up Class Here!

This class would likely be very hard to begin with, but after acquiring the Wisdom of the Gods, Heart of the Hunter, and Maddening Sting abilities, should become quite a bit easier (with caution).

Name: Aborigine

(Many online sources suggest “aboriginal” is used specifically for Australia’s native inhabitants, but it actually refers to any native inhabitants)

Stats:
Very high: [none]
High: [none]
Medium: Faith, HP, Stealth, Attack, Speed
Low: [none]
Very low: Defence, Intelligence

Starting Skills:

Blow Dart: Like the ranger’s arrow skill, this is a ranged attack skill bound to this class. Refresh time is determined by average of speed and attack. Accuracy can’t be above 60% (though this cap can be raised by the Trust In the Gods skill). The dart itself does no damage, but applies a poison if the hit connects (and the target is not immune to poison).

Starting Items:

Weapon: tiger’s fang (1 damage, + 1 speed, may cause bleeding (new weapon))
Head: [none]
Body: skins (+ 1 def, + 1 stealth (also starting armour for Celt, new))
Gloves: [none]
Footwear: [none]
Jewelry: [none]

Special:

By default, Aborigine cannot identify or use any Magic or Holy skills (they can be equipped, but they will appear as “?”, and won’t do anything but skip a turn if used). Aborigine also cannot identify or use scrolls or tomes. It is possible to use these skills and items by gifts from the gods (see Wisdom of the Gods skill below). Aborigine can use any equipped physical skills (e.g., Vital Strike) and any items other than scrolls and tomes.

Skill Tree: (all skill tiers are cumulative unless stated otherwise)

Stubbornness (passive x3) —> Trust In the Gods (passive x3) —> Wisdom of the Gods (skill x2)

Ferocity (passive x3) —> Heart of the Hunter (passive)

Maddening Sting (skill upgrade)

Toughness (passive x-) —> Camoflage (passive x3)

Accuracy (passive x5)

Stubbornness: + 1 faith, + 1 magic resist per tier.

Trust In the Gods: Gain + 1 faith and + 5% to Blow Dart’s accuracy cap per tier.

Wisdom of the Gods (skill; requires level 4; recharges slowly by XP gain):
When used, Aborigine takes a random debuff. A random unidentified equipped Magic or Holy skill, or a random unidentified scroll or tome in inventory will be identified and become usable. Any identified scrolls of the same exact type subsequently acquired will also be identified and usable, but each tome must be individually identified and made usable.
Second tier decreases XP needed to recharge by a small amount, and identifies two to three random equipped skills and/or items per cast instead of one. If there are no unidentified equipped skills or inventory items, it will bestow bonus XP.

Ferocity: + 1 base damage, + 1 speed, – 1 attack per tier.

Heart of the Hunter (requires level 3): As long as an enemy is visible, there is a chance that Aborigine will get the Hunter’s Heart buff, if Aborigine does not already have one active. This buff gives – 3 attack, -3 defence initially, but every 10 seconds of game time increases by + 1 attack, + 1 defence, topping out at +3 attack, + 3 defence for 1 minute of game time. If hunter attacks or uses a skill while Hunter’s Heart is active, buff expires (after any damage is dealt), but any kill made while buff is maxed will temporarily grant weapon the charge ability.

Maddening Sting (requires level 6):
Upgrades Blow Dart. The poison it carries now will kill its victim if the poison is not dispelled soon enough, if the hit connects and the target is not immune to poison. There is one small catch, however: the poison doesn’t do damage. Instead, over time, the victim goes into an increasing frenzy (a new Frenzy is added every 1 minute of game time — these do not expire until the victim is deceased or poison is expelled). Once 3 Frenzies are stacked, it will also start stacking Rage. At this point, though, the victim becomes confused, and will attack anything and everything around. The victim now has 1 minute of game time to expel the poison before it is too late, but they won’t die for another 3.
Not a weapon for the faint of heart!

Toughness: + 6 HP per tier.

Camoflage:
Gain + 1 stealth per tier. Final tier also grants a small chance that an entity that has noticed Aborigine will lose sight of him/her each turn.

Accuracy: + 1 attack, – 1 speed per tier. Final tier also gives boost to critical hit chance.

Perks:

Blow Them Away: Gain extra morale for kills by Blow Dart’s (or Maddening Sting’s) poison.
Fang the Gods: Starting weapon becomes consecrated and will gain levels with character. Any kills not made by this weapon has a chance to anger the gods, damaging wielder and applying a random debuff. Chance increases with the level of the weapon. Stages completed without angering the gods will bestow + 1 to a random two of wielder’s stats.
It’s a Mad, Mad World: Aboriginal’s melee attacks carry Maddening Sting’s poison. However, kills by poison do not give any morale or XP.
Hunter’s Eye: Aboriginal has increased vision range and has a chance of revealing a target’s weakness (as a spyglass would) when he/she kills. Base faith and HP are lowered.
Investing In Digesting: Blood orbs are more likely to drop from kills and give more HP to Aborigine. A portion of all gold found is sacrificed to the gods.

Gear:

Spirit Guide: Start with 2 offerings.
Spear-it Guy: Start with a spear (2 – 4 damage, + 1 def, – 1 speed, – 1 stealth (starting weapon for Soldier, new)) instead of a tiger’s fang.
Original Aboriginal: Start with a fancy hat. Because it’s fancy.
Thorny Situation: Start with a potion of thorns.

 
Flag Post

Topic: Cardinal Quest 2 / Post Your Made Up Class Here!

I keep telling myself I'm going to stop doing these... All constructive criticisms of my imaginary classes and equipment/items are appreciated.

Name: Telekin

Stats:
Very high: [none]
High: [none]
Medium: Defence, Intelligence
Low: Attack, HP, Speed
Very low: Faith, Stealth

Starting Skills:

Pull (telekinesis skill): Pulls target to Telekin (if it is an object (gold, chest, etc), it goes into inventory, if possible; otherwise, it is set down adjacent to Telekin (this can target and move enemies)). Target may be damaged or destroyed if pulled into a wall or other object or entity (other entity may also be damaged or destroyed) or off a precipice. Force of pull is determined by a combination of defence and intelligence, plus any telekinesis bonuses (e.g., starting weapon's bonus or Patience's final tier). Recharges by intelligence.

Push (telekinesis skill): Pushes adjacent target away from Telekin. Target may be damaged or destroyed if pushed into a wall or other object or entity (other entity may also be damaged or destroyed) or off a precipice. Force of push is determined by a combination of attack and intelligence, plus any telekinesis bonuses (e.g., starting weapon's bonus or Patience's final tier). Recharges by intelligence.

(Telekinesis skills are a subset of Magic skills.)

Starting Items:

Weapon: tuning spikes (1 - 2 damage; when this weapon hits but fails to do damage (by blocking or defence), wielder gains an unstackable temporary bonus to force of telekinesis skills (if a new bonus is generated by this weapon, it overwrites any old one still active (if any), even if the new one is inferior); bonus to telekinesis skills is determined by the absolute value of the defense of tuning spikes' intended target minus tuning spikes' intended damage (if intended target's def is 3 and tuning spikes attacked for 1, bonus is 2 strength of force); duration of bonus is determined by a combination of wielder's current attack and speed (new weapon))
Twin metal skewers join in a U shape at the hilt. This weapon makes some strange sounds in combat that seem to ring in sympathy with the sounds of destruction and bolster them.
Head: [none]
Body: cloak
Gloves: [none]
Footwear: shoes
Jewelry: [none]

Special:

[none]

Skill Tree: (all skill tiers are cumulative unless stated otherwise)

Subtlety (passive x3) —> Intensity (passive x3) —> Singular Wit (skill)

(Critical Mass can also be accessed from Singular Wit; Fatal Attraction can also be accessed from Intensity)

Patience (passive x3) —> Fatal Attraction (skill upgrade) —> Critical Mass (skill)

Toughness (passive x-) —> Stubbornness (passive x3) —> Adversarial Mind (passive)

Subtlety: Gain + 1 intelligence, + 1 stealth per tier.

Intensity: Gain + 1 intelligence, + 1 faith per tier.

Singular Wit (requires level 6 and at least one tier each of Subtlety, Intensity, Patience, and Stubbornness; recharges by XP gain) -- this is NOT considered a telekinesis skill, as it is mental in nature rather than physical:
Very briefly reduces caster's mental presence to a singularity. All visible magic users will be stunned. Caster temporarily gains + 1 intelligence or + 1 faith from every visible entity (whichever stat is higher for that entity) and each entity permanently loses 1 from that stat (basically donating a stat point).

Patience: - 1 speed per tier, but increased chance to block incoming melee attacks. Final tier also increases force of telekinesis skills at the cost of slightly increased cooldown.

Fatal Attraction (requires level 4): Upgrades Pull. When target is pulled to caster, caster automatically attacks target, with triple the chance to perform a critical hit. Cooldown time is longer, and Pull is no longer safe to use for retrieving items (gold, etc) from a distance (damage will be dealt to caster if they use it in this manner, though they will still be able to retrieve the item).

Critical Mass (telekinesis skill): Pushes all adjacent entities strongly away from caster, doing 1 damage per entity to all pushed away (so if there were two entities adjacent, 2 damage is done to each) -- bodies will be thrown even if initial damage kills them. Force is determined as with Push, but doubled. Recharge time is determined by difference, in percentage, between current HP and max HP (full life == long recharge).

Toughness: + 5 HP per tier.

Stubbornness: + 1 faith, + 1 magic resist per tier.

Adversarial Mind:
When a magic user notices Telekin, there is a chance that magic user will take 1 damage. However, if they do, there is also a chance that Telekin will take 1 damage, albeit a smaller chance.

Perks:

Golden Retriever: Gain extra morale for gold obtained by telekinesis skills.
Telekiller: Gain extra morale and XP from kills by telekinesis skills, half from any other type of kill.
Mind Over Matter: Damage dealt by Telekin from telekinesis skills is doubled, all other damage from Telekin is halved.
Air Force: Physical ranged attacks targeting Telekin have a chance to be redirected to another entity (including attacker) or merely stopped. All enemies have + 1 attack.
Force To Be Reckoned With: There is a chance that any entity repelled by Push or Critical Mass will be crushed out of existance (after being thrown). Any entities adjacent to them at the time of their demise will take damage, and the ground underneath the destroyed entity may give way to a bottomless pit. Caster will take 1 damage and temporarily lose 2 intelligence and 2 magic resist when this occurs.

Gear:

Pull a Fast One: Start with a speed potion.
Force Me: Start with Magic Mirror instead of Pull. Fatal Attraction is locked.
Crushing Wait: Start with a Timestop potion. Your first character point must be spent on Patience.
Shrodinger's Best/Worst Friend (or Kit and Kin): Start with a cat (like the ranger's dog, but faster, more accurate, stealthier, weaker, and with less HP; just wanders about, but may randomly attack anything nearby for minimal damage, including Telekin). Cat does bonus damage when pushed or pulled into an entity, and may apply a fear or unbalanced (- 2 attack, - 2 defence) state to that entity (note: DON'T pull cat to you if there isn't something else in the way!). Cat generally will not take damage from being pushed or pulled into enemies, but will from being forced into other objects or walls (and obviously, will die from being tossed off a precipice). Cat will seek out blood orbs whenever they drop.

Cat will love you forever, but may forget from time to time when the mood strikes.

------------------------------------------------

The biggest issue I can see with this class idea is that it may become problematic in a tile-based game when pulling items or entities that are not at 45 degree angles to player (determining what hits and what misses). However, limiting Pull to 45 degree angles seems like it would be too clunky. Push and Critical Mass don't have this problem, since adjacent entities being pushed away would naturally be confined to 45 degree angles. I am loath to suggest removal of Pull, though...
However, one option would be to remove Pull in favour of a summoned force wall barrier that could prevent melee attacks from one side. The Fatal Attraction ability would then become an upgrade to this that could allow a force wall to be created "on top" of an adjacent entity, "crushing" them with magic and physical damage and throwing them a short distance, then creating the force wall in their place. I don't really care for this idea, as it is becomes the 3rd push ability with a slight variation, and it seems to me that a telekinetics class with pushes but no pulls is severly lacking...

 
Flag Post

Topic: Game Programming / Hello! As3 Grid Movement Question

Originally posted by Scrchex:

How/when does quecom ever differ from lastdir? Every keystroke resets those variables it so they match, all the time. I don’t know the mechanic in as3 to ‘lock in’ a value and not have it “cleared” until certain parameters are met. How in your version of the code is your character moving in such a manner that this works?

No, every keystroke does not, but most do. Keep in mind that we’re GLOMPing, here. There is one instance where lastdir won’t match quecom. Can you see what instance that is (hint: one part of it is that the player is not at a grid position)?

As for not understanding how to “lock in” a value and not have it “cleared” until certain parametres are met, that’s really basic programming (“clearing”, in this case, is merely assigning a value that indicates it is not currently being used — a “neutral” value: if we have constants UP, DOWN, LEFT, and RIGHT for movement, we could also have an INACTIVE constant to show that quecom does not require handling at the moment)… Assigning a value to a variable, checking what the value is with conditional statements and executing desired code accordingly — these are some of the first things you need to learn if you’re going to program something. I’m not sure how you plan on getting any code to work without that. Am I misunderstanding what you’re having a problem with here?

If you’re using software that insulates you from the coding portion, then asking for advice on a programming forum is probably not going to be of much help…

 
Flag Post

Topic: Game Programming / Hello! As3 Grid Movement Question

The grid lock is only active for moves perpendicular to the current travel direction (ie, you can immediately change direction if you just want to move in the opposite direction). I don’t know that it has a term for it, but I’m going to go for GLOMP (Grid Locking On Moving Perpendicular). ;)

GLOMPing could be done as so:
Keep a variable for last traveled direction (we’ll call it lastdir), one for queued command (we’ll call it quecom), and a Boolean for whether or not player is currently calling for movement (we’ll use moving). When a move key is pressed, set moving to true and put move value in quecom.

In the movement section of your code, check if moving is true. If so, do:
{
Check lastdir against quecom (assuming quecom hasn’t been cleared):
If quecom is the opposite direction from lastdir, set lastdir to quecom and clear quecom.
If quecom matches lastdir, just clear quecom.
Otherwise, check if player is at a grid position. If so, set lastdir to quecom and clear quecom (if not, don’t do anything for this step).

Move in the direction specified in lastdir.
}

Don’t forget to set moving to false when a movement key is released.

 
Flag Post

Topic: Monster Battles: TCG / Suggestion Thread

My suggestion:
Make side paths in the “story” quests with puzzle problems. I used to play a Shogi game (I think it was on Sega Genesis) that, in between the regular matches, would have the pieces in a specific configuration (both the player’s and the opponent’s), and you had a set number of moves to complete the goal. In this case, rather than have unknown cards waiting to be played, the player would be shown what was in the opponent’s hand (and obviously can see what is already on the board). No new cards would be drawn by either side; the player would just have to defend, punch through, or eliminate all enemy creatures (depending on the goal) with what they started with (on the board, if anything, and what is in their hand). Each puzzle could either give a specific card upon completion, unlock a “bypass” (allow access to a further point in “story” line without necessarily having to follow the linear path — note that players would still have an incentive to complete all “story” quests for the 3-star rewards), or whatever.
It would take a bit of setting up, but I think it would expand the game nicely. Maybe the players could submit puzzles, so after the initial set up, it would just be a matter of choosing which puzzles to use and where to place them…?

Originally posted by Jindra34:

Going to reply here to add two suggestions:
1. Add a gauntlet thing like the tourneys but with more difficulty/less rewards per match, more matches, and the requirement to use your own deck.
2. Add a sort new feature to the deck list. Because as you get more cards it becomes harder to pick out the new ones.

I second these.

 
Flag Post

Topic: Cardinal Quest 2 / Post your weapon or/and armor ideas

Swordbreaker
2 - 4 damage
Has a chance to temporarily decrease attack and damage of target.


Spider Mace Legendary weapon
3 - 8 damage
+ 2 stealth
Magic resist will never be above 0 while this is equipped.
May paralyze those it hits.
Gain HP from hitting paralyzed enemies.


Blinding Katar
1 - 5 damage
+ 1 speed
Has a chance to temporarily blind an enemy.


Vengeful Soul Legendary item
When used, gives currently equipped weapon the following:
Whenever wielder takes damage, weapon gains + 1 max damage.
Whenever weapon attacks but does not kill, wielder loses 1 HP.
Whenever weapon kills, weapon gets - 3 max damage (cannot go below weapon's original stats) and wielder gains 1 HP.


Might as well put these here, too (from new character classes topic:)
armour
--------
skins (+ 1 def, + 1 stealth)
leather wraps (+ 1 speed, + 1 stealth)
brocade tunic (+ 1 def, + 3 magic resist, - 2 stealth)
charged gauntlets (+ 1 def, - 1 stealth, - 1 attack, adds 1 magic damage to all of wearer's melee attacks)

accessories
-------------
Gaia's Eye pendant (sees living animals or humans regardless of sight line; +1 faith)

weapons
----------
spear (2 - 4 damage, + 1 def, - 1 speed, - 1 stealth)
halberd (5 - 8 damage, + 1 def, -2 speed, - 2 stealth)
bardiche (3 - 5 damage, + 1 def, - 1 attack, - 1 speed, - 2 stealth)
ceremonial kris dagger (1 damage, - 2 magic resist, reduce cooldown of a random Holy skill when a kill is made with this weapon)
barbed staff (3 - 4 damage)

tuning spikes (1 - 2 damage; when this weapon hits but fails to do damage (by blocking or defence), wielder gains an unstackable temporary bonus to force of telekinesis skills (if a new bonus is generated by this weapon, it overwrites any old one still active (if any), even if the new one is inferior); bonus to telekinesis skills is determined by the absolute value of the defense of tuning spikes' intended target minus tuning spikes' intended damage (if intended target's def is 3 and tuning spikes attacked for 1, bonus is 2 strength of force); duration of bonus is determined by a combination of wielder's current attack and speed)
Twin metal skewers join in a U shape at the hilt. This weapon makes some strange sounds in combat that seem to ring in sympathy with the sounds of destruction and bolster them.

tiger's fang (1 damage, + 1 speed, may cause bleeding)

Some of these seem a bit familiar, so they may not actually be new (I'm especially looking at you, Blinding Katar and Leather Wraps)... Or it could just be deja vu.
 
Flag Post

Topic: Cardinal Quest 2 / Post Your Made Up Class Here!

Name: Soldier

Stats:
Very high: [none]
High: Attack
Medium: Defence, Speed
Low: HP, Stealth, Intelligence
Very low: Faith

Starting Skills:

[none]

Starting Items:

Weapon: spear (2 – 4 damage, + 1 def, – 1 speed, – 1 stealth (new weapon))
Head: [none]
Body: leather armour
Gloves: [none]
Footwear: boots
Jewelry: [none]

Special:

[none]

Skill Tree: (all skill tiers are cumulative unless stated otherwise)

Anger (passive x2) —> Spear Fu (passive x3) —> Impaler (passive + skill x2)

(Marching Orders can also be accessed from Anger; Sweeping Blow can also be accessed from Spear Fu)

Precision (passive x3) —> Marching Orders (passive x3) —> Sweeping Blow (skill)

(Sweeping Blow can also be accessed from Pole Cat)

Toughness (passive x-) —> Pole Cat (skill and weapon upgrade)

Martial Discipline (passive)

Anger:
Tier 1: For every attack that Soldier misses or that enemy blocks, Soldier has a chance to gain a temporary, stackable + 1 speed.
Tier 2 (requires level 4): In addition, for every one of Soldier’s attacks that is blocked by an enemy, Soldier gains a temporary, stackable + 1 minimum damage. Minimum damage cannot exceed maximum damage.

Spear Fu:
Tier 1: 25% chance to block a melee attack when a spear or polearm is equipped. Subsequent attacks in the same turn decrease chance to block by 10% (to a minimum of 0%).
Tier 2 (requires level 3): Block chance increases to 40%. Subsequent block chances decrease by 5%.
Tier 3 (requires level 5): Chance to counterattack first blocked attack. Chance is determined by Soldier’s attack stat and double his/her level, minus attacker’s attack stat, to a minimum of 10% and maximum of 80%.

Impaler (locked if Pole Cat is chosen; requires level 4):
Tier 1: Equipped spear now has a chance to ignore armour.
Also gives the Impale skill (requires spear (polearms won’t work)): Perform a critical hit on an adjacent enemy. If spear pierces armour, target is given bleeding status, and any entity on the immediate other side of target is also hit for 75% of spear’s normal damage — all equipped skills are disabled for a short period when this occurs.
Tier 2 (requires level 6): Increases chance for Impale skill to pierce armour, and gives bleeding status to anything hit by skill (regardless if armour piercing succeeds or not).

Precision: Gain + 1 attack per tier.

Marching Orders: Gain + 1 speed per tier when Soldier is not adjacent to an enemy.

Sweeping Blow (requires spear or polearm): A non-damaging sweep that pushes all adjacent enemies back.

Toughness: + 6 HP per tier.

Pole Cat (locked if Impaler is chosen): Exchange equipped weapon for a halberd (5 – 8 damage, + 1 def, – 2 speed, – 2 stealth (new weapon); this is a polearm weapon) if a superior polearm is not already equipped. Sweeping Blow now does 60% damage to all enemies hit if any polearm is equipped.

Martial Discipline:
When Soldier is targeted by any physical attack, if the next attack is of the same type and from the same attacker, increase block chance by 20% (in addition to any other block chance) — this includes ranged attacks from bowmen and their ilk.

Perks:

Vlad Would Be Proud: Gain extra morale for Impaling.
Sweep Them Off Their Feet: Sweeping Blow has a chance to daze. Cooldown time is longer.
Lightning Rod: Take extra damage from magic attacks. Gain double XP whenever a spellcaster is killed.
Pole Vaulter: Start with Thief’s Leap skill. Get a temporary, stackable – 2 attack, – 2 defence after leaping.
Rising Through the Ranks: Whenever Soldier gains a level, also gain a random permanent stat increase. Soldier must kill every (non-civilian) enemy in each stage or lose all stat increases accrued in this manner. All enemies start with extra HP.

Gear:

Medic: Start with Heal and an HP potion, but reduced attack stat.
Tank You: Start with heavy armour and a helmet, but reduced speed stat.
These Two Guys Walk Into a Bardiche…: Start with a bardiche (3 – 5 damage, + 1 defence, – 1 attack, – 1 speed, – 2 stealth (new weapon); this is a polearm weapon) instead of a spear.
General Knowledge: Start with a spyglass and a Gain Knowledge scroll. Stealth is at a constant -1 for the first stage (stealth stat and all augments will take effect once the first stage is finished).

 
Flag Post

Topic: Cardinal Quest 2 / Post Your Made Up Class Here!

My guess is that it was having a pagination problem, and you were actually looking at page 2, which was devoid of posts (until you posted).

 
Flag Post

Topic: Cardinal Quest 2 / Post Your Made Up Class Here!

OK, one more… I was thinking about a class where their hallucinations or nightmares were made manifest and attacked anything (friend and foe), initially creating a Lunatic class. I wasn’t happy with the result, so I’ve re-worked it. This class is a magic user, but it has skills that are faith-based (faith stat starts low). The “nightmares” in question gain levels like the player, so letting them take care of most or all of the enemies wouldn’t be a good idea.

Name: The Prey (Summoner’s Acolyte)

Once a summoner’s acolyte, a horrible mistake was made which bound an entity from another plane to him/her. The entity could not wholly traverse across the planes, but “pieces” of it could. These pieces were vicious, ravenous things that would devour and obliterate all who would countenance them, and they were drawn to the acolyte’s presence…

Stats:
Very high: [none]
High: Intelligence
Medium: HP, Speed, Stealth
Low: Faith, Attack, Defence
Very low: [none]

Starting Skills:

Magic Mirror

Starting Items:

Weapon: staff
Head: [none]
Body: cloak
Gloves: [none]
Footwear: shoes
Jewelry: [none]

Special:

After a specific amount of time passes, a dimensional hunter appears (no closer than 2 spaces away from acolyte) — see end of post for dimensional hunter and light hunter details. There can be up to 6 dimensional hunters (apart from light hunters) present at any given time.

Skill Tree: (all tiers are cumulative unless stated otherwise)

Intensity (passive x3) —> Force of Will (skill) —> Turn the Tables (skill)

(Hope can also be accessed from Intensity)

The Best Defence (passive x3) —> Hope (passive) —> Divine Intervention (passive)

(I Just Need To Be… can also be accessed from The Best Defence)

Fly, You Fools! (passive x2) —> I Just Need To Be… (passive x3)

Toughness (passive x-)

Intensity: + 1 faith + 1 intelligence per tier.

Force of Will (Magic skill; ranged; recharges with intelligence; level 3 required):
Target dimensional hunter is forced to choose new prey, if possible. If no other prey is available, temporarily slow targeted hunter.
If used on other summons (elementals, magic mirror, etc), has a chance to charm (chance determined by difference between acolyte’s intelligence and intelligence of the summoner of the targeted creature), but may cause mana burn if it fails.

Turn the Tables (Holy skill; requires level 5; recharged by the number of kills that dimensional hunters make (number required is decreased by higher faith)): Conjures light hunters that attack dimensional hunters. Number conjured will be between 1 and the number of dimensional hunters present (chance is weighted toward matching numbers). Light hunters will never exceed number of dimensional hunters present (farthest will disappear if there are more light hunters).

The Best Defence: + 1 attack + 1 stealth per tier.

Hope: When a dimensional hunter is defeated, acolyte gets a temporary boost to all stats (stackable).

Divine Intervention: Chance for anyone being attacked by a dimensional hunter to get Holy Shield and/or Bless Weapon applied to them. Acolyte heals 1 HP whenever this occurs. Chance increases with the number of dimensional hunters present (unless light hunters are also present) and faith.

Fly, You Fools!: Chance (based on intelligence) for other entities to get fear status when near dimensional hunter. 2nd tier increases chance and will give acolyte a temporary, stackable faith bonus when fear is applied.

I Just Need To Be…: + 1 speed per tier.

Toughness: + 4 HP per tier.

Perks:

Schadenfreude: Gain extra morale whenever an entity is killed by dimensional hunter.
Dark Vortex: Spells targeting acolyte when a dimensional or light hunter is nearby will be re-directed to the hunter (whether they are helpful or harmful spells, and regardless of caster). Gain extra morale for hunters killed by re-direction.
Killing Hope: If a dimensional hunter is killed by acolyte while acolyte has Hope’s bonus, immediately destroy another one, if present. Start without Magic Mirror.
Righteous Fury: Divine Intervention applies Bless Weapon/Holy Shield status effects to acolyte as well as victim of dimensional hunter. Also applies Rage or Frenzy, but does not heal acolyte. Turn the Tables is locked.
Holy Force: When acolyte casts any Holy spell, nearby dimensional hunters are pushed away. Starting intelligence is lowered.

Gear:

Sacrificing Lamb: Start with a ceremonial kris dagger ((new weapon) 1 damage, – 2 magic resist, reduce cooldown of a random Holy skill when a kill is made with this weapon) instead of a staff.
Acolytic Converter: Start with Polymorph instead of Magic Mirror. Polymorph has a small chance to also charm target.
Who’s Hunting Who?: Start with an invincibility potion.
Shoo!: Start with Teleport Away.



Dimensional Hunters:



Dimensional hunters will generally choose the nearest noticed entity to attempt to destroy. They gain an attack bonus for each dimensional hunter present. They will not attack each other, and they cannot be charmed, dispelled, or polymorphed (attempting to polymorph one will enrage it). They gain levels with enough kills, though banishing one (by “killing” it) will lower its level by one (to a minimum of 1) — they don’t die so much as temporarily leave in a weakened state.
They have extremely long, sharp claws like bastard swords, which do heavy piercing physical damage, and they always do critical hits when attacking any summoned spirit (elementals, magic mirror, etc) except light hunters.

They gain HP and a small amount of max HP from kills, except from summoned spirits and light hunters.


Light Hunters:



Light hunters only target dimensional hunters, usually ignoring everything else. They may induce a fear state in nearby dimensional hunters. They gain a defence and magic resist bonus for each light hunter present. They cannot be charmed, dispelled, or polymorphed (attempting to polymorph one will enrage it). They gain a level whenever they dispatch a dimensional hunter, though banishing one (by “killing” it) will lower its level by one (to a minimum of 1) — light hunters automatically excised due to the number of dimensional hunters being reduced do not lose a level.
They have long, bright tendrils reminiscent of lightning, which do heavy magic damage.

They gain HP whenever they hit a dimensional hunter.

 
Flag Post

Topic: Cardinal Quest 2 / Post Your Made Up Class Here!

Name: Lord of Ruin

Stats:
Very high: [none]
High: Intelligence
Medium: HP, Speed, Attack
Low: Faith, Defence, Stealth
Very low: [none]

Starting Skills:

Splintering Star: Destroy currently equipped weapon to do piercing physical damage to all entities in the vicinity (other than self) based on the sacrificed weapon’s stats. It can hit invisible entities, but not those that are concealed by walls (must be in line of sight). Each victim has a chance (based on caster’s intelligence) to also receive additional low magic damage (apart from additional damage added from skills and passives). Recharges slowly with damage received (after defence and magic resist reductions), but cannot recharge while a weapon is not equipped. Amount of damage necessary to refresh is determined by intelligence.

Starting Items:

Weapon: barbed staff (3 – 4 damage (new weapon))
Head: [none]
Body: cloak (+ 1 def, + 1 stealth)
Gloves: charged gauntlets (+ 1 def, – 1 stealth, – 1 attack, adds 1 magic damage to all of wearer’s melee attacks (new weapon made for this class))
Footwear: [none]
Jewelry: [none]

Special:

Takes mana burn from all spells cast (as skill — ie., Magic and Holy skills), except for ones belonging to this class (Shatter, Splintering Star, and passives) and “physical” skills (e.g., frenzy).

Skill Tree: (all tiers are cumulative unless stated otherwise)

Inductance (passive) —> Capacitance (passive x3) —> Imploding Phoenix (passive)

Kinetikata (passive) —> Pain Is Gain (passive) —> Shatter (skill x3)

Conductivity (passive x3) —> Warping Aura (passive)

Toughness (passive x-)

Inductance: Melee attacks and Splintering Star gain 1 magic damage per entity adjacent to player over 1 (ie, 2 adjacent entities == + 1 magic damage, 3 adjacent entities == + 2 magic damage, etc).

Capacitance (requires level 3 for 1st tier, 5 for 2nd, 7 for 3rd): Part of any magic damage received is added to the next magic damage dealt. Level increases percentage of damage kept as charge to add to next attack. Charges decay over time; Intelligence reduces amount of decay. Charges do not stack, but highest value is kept until disharge.

Imploding Phoenix (locked if Shatter is chosen): When damaged by a non-lethal critical hit, deal magic damage to all adjacent entities equal to max HP minus current HP; heal half of any damage that kills.

Kinetikata: Melee damage received has chance to stun attacker. Chance to activate/stun increases with defence (and doubled if wielding a staff; minimum chance is 5% (1 def, no staff) up to a maximum chance of 75%), and stun duration increases with attack.

Pain Is Gain: All magic damage dealt is increased by 1 for every 15% current HP is below max.

Shatter (locked if Imploding Phoenix is chosen; recharges by kills; ranged spell; tier 2 requires level 4):
Tier 1: Destroy target’s armour (def permanently reduced; cannot be reduced below 0. Intelligence determines max amount of armour that can be destroyed by one casting).
Tier 2: Dazes target (unless resisted) and destroys their armour (cannot daze target if armour is already 0).
Tier 3: Entities adjacent to target take piercing physical damage between 0 and the amount of armour destroyed (so if 3 def is eliminated, damage range is 0 to 3). Note: this may harm caster if target is adjacent.

Conductivity: Chance for part of melee magic damage dealt to a target to also be dealt to an entity adjacent to target. Tier increases chance and percentage of damage passed along.

Warping Aura: Entities lose 2 speed and 1 attack while adjacent to caster.

Toughness: +3 HP per tier.

Perks:

Aggressive Passive: Gain extra morale for indirect kills (e.g., Conductivity, Shatter, Imploding Phoenix).
Warp Pig: Start with Warping Aura but no gauntlets. Warping Aura’s effects are doubled.
Kinetikata Frenetikata: Start with Kinetikata but no gauntlets. Kinetikata can chain to adjacent entities.
Easily Excitable: You may automatically attack when an enemy moves next to you. Base speed is increased by 2, but base attack and defence are decreased by 2.
The Oncoming Storm: Start with Imploding Phoenix and brocade tunic (+ 1 def, + 3 magic resist, – 2 stealth (new armour)) instead of cloak. All melee damage recieved is critical.

Gear:

Thor’s Wimpy Cousin: Start with a Bonecracker instead of a barbed staff.
There Can Be Only One: Start with Dispel and a claymore instead of a barbed staff and charged gauntlets.
Knowledge Is Power: Start with a Spyglass and a Scroll of Knowledge.
Power Is Knowledge: Start with a Potion of Reflection and Orb of Clarity.

 
Flag Post

Topic: Cardinal Quest 2 / Post your weapon or/and armor ideas

“Undertaker’s Pendulum” (polearm weapon)

A shiny fan-bladed weapon that bears a passing resemblance to a shovel. Its blade is engraved with several morbid scenes.

damage: 3 – 6
-1 speed
-3 stealth

May cause bleeding and/or push target enemy back. Moderately high chance of performing a second attack immediately preceding the initial attack, with slightly decreased chance to hit (regardless of whether initial attack hit).

 
Flag Post

Topic: Monster Battles: TCG / New Card Suggestions Thread

I haven’t read through all these, so apologies if it’s similar to one already stated (or in the game).

card type: creature
element: probably makes most sense as mystic or mech
rarity: rare, I guess

> Evolution 1
name: Rechanxor
size: small
atk/def: 5/6
ability: abilities that deal damage to this instead deal damage to source (i.e., takes no ability damage, but deals that damage to the creature attempting to deal ability damage)

> Evolution 2
name: Chanredon
size: medium
atk/def: 6/8
ability: abilities that deal damage to this instead deal that damage to all enemies

> Evolution 3
name: Chanblitz
size: medium
atk/def: 7/10
ability: abilities that deal damage to this instead deal that damage to all enemies and opponent player


card type: creature
element: ?
rarity: ?

> Evolution 1
name: Attrix
size: large
atk/def: 0/20
ability: deals 1 damage to all creatures (including allies and self) at the end of owner’s turn

> Evolution 2
name: Attrinaut
size: huge
atk/def: 1/30
ability: same as above


card type: creature
element: plant
rarity: ?

> Evolution 1
name: Fungmuk
size: medium
atk/def: 2/15
ability: on death, become Sporon


card type: creature
element: plant
rarity: ?

> Evolution 1
name: Sporon
size: small
atk/def: 2/2
ability: at the end of owner’s turn, gain 1/2

 
Flag Post

Topic: Game Programming / GiTD #45 - *Congrats Halysia*

1st: WASPS GAME
2nd: Untitled

 
Flag Post

Topic: Game Programming / GiTD #45 *Creating Skeletal Wasps*

Well, damn it all… I go to compile, and FlashDevelop tells me it can’t find Air SDK. It seems that when I updated FlashDevelop, everything silently buggered up. Now I have to troubleshoot and fix, so I’ll miss the deadline…

That’s what I get for waiting so late to get started. The part of me that is overly optimistic (left pinky toenail) wants to think that I will learn my lesson.

 
Flag Post

Topic: Cardinal Quest 2 / Post Your Made Up Class Here!

Not sure how feasible the terrain-based magic generation is, but I’ll put it out there anyway (using ghtwerjk’s layout)…

Name: Celt

Stats:
Very high: [none]
High: Speed, Stealth
Medium: Attack, Faith, Intelligence
Low: HP, Defence
Very low: [none]

Starting Skills:

Absorbing Aura:
Takes a turn to charge magical energy based on terrain. This energy is spent when a spell is cast. Recharge scales with faith.
Aura Shock:
Short-range (2 spaces away or less orthogonally or 1 space diagonally), low-damage magic attack (…er, Holy attack?). Ignores armour, doesn’t miss. Status effects depend on aura’s charge (gained by using Absorbing Aura skill) — status effects always apply, even if no damage is dealt. Must be charged via Absorbing Aura before each use.

Starting Items:

Weapon: dagger
Head: [none]
Body: skins (+ 1 def, + 1 stealth (new armour))
Gloves: [none]
Footwear: leather wraps (+ 1 speed, + 1 stealth (new armour?))
Jewelry: [none]

Special:

Stealth is greatly reduced and speed somewhat reduced when any heavy weapon or armour is equipped (in addition to equipment stat augmentations). Crit chance is increased when wielding a dagger. Absorbing Aura’s cooldown is reduced when wielding a staff.
Absorbing Aura must be cast before using any Magic or Holy spell (not as scrolls or potions), however each spell will still be subject to their own cooldown time. Spells may be more or less useful based on the type of charge (e.g., a charge from snowy terrain will increase the effect of the freeze spell, but greatly reduce the damage of a fireball spell).
Aura Shock does not have its own cooldown, and is wholly reliant on Absorbing Aura’s cooldown: once a charge is ready, Aura Shock may be cast on the next turn. The charge will determine the status effects that Aura Shock will apply, but Aura Shock’s effectiveness will remain constant.
All full-screen ranged Magic or Holy spells (e.g., fireball) are limited to a 2-space orthogonal or 1 space diagonal range, except for purely movement-based skills (e.g., Blink, Teleport Away, Teleport, and Celt’s Ley Line Traveler skill).

Skill Tree: (all skill tiers are cumulative unless stated otherwise)

Absorbing Aura (skill x3) —> Spirit Feedback (passive) —> Ley Me Down (skill)

(Ley Me Down can also be accessed from Nature’s Veil)

Precision (passive x3) —> Nature’s Veil (passive x3) —> War Dancer (passive x3)

Aura Shock (skill x4) —> Belief (passive x3)

Toughness (passive x-)

Absorbing Aura:
Tier 1: Charges magical energy based on terrain. Recharge scales with faith.
Tier 2: Status effects of Aura Shock last longer.
Tier 3: Clears one random negative status effect (if any) from caster when cast. Also, further increases status effect duration of Aura Shock.

Spirit Feedback:
After Aura Shock is cast, Celt receives a quick, temporary buff that returns a portion of any damage received to his/her attacker (including ranged attacks).

Ley Me Down (locked if War Dancer is chosen):
Enables the Ley Line Traveler skill (orthogonal-only teleport; recharge time scales with faith). If teleporting under an enemy and target location is adjacent to that enemy, attack (backstab if dagger is equipped; stun if staff or hammer is equipped).
Less confusing than it sounds… No, really.

Precision: Gain + 1 attack per tier.

Nature’s Veil:
Tier 1: + 1 attack, + 1 stealth
Tier 2: + 1 speed, + 1 stealth
Tier 3: + 1 def, + 1 stealth
(ideally, these would only apply when on certain terrain such as grass or bushes)

War Dancer (locked if Ley Me Down is chosen):
Tier 1: Chance to dodge physical melee attacks.
Tier 2: Chance to counterattack an adjacent melee attacker when hit.
Tier 3: Double crit chance on counterattacks.

Aura Shock:
Tier 1: 1 – 2 magic damage. Applies status effects to target based on Absorbing Aura’s charge.
Tier 2: Magic resistance of target is permanently decreased by 1 (stackable; can’t go below 0) after resistance reduces Shock’s damage (regardless of whether or not any damage was applied).
Tier 3: Maximum damage increases by 1 per 10 faith.
Tier 4: If target is killed by Aura Shock, refresh Absorbing Aura.

Belief: Gain + 2 faith and + 1 magic resistance per tier.

Toughness: + 4 HP per tier.

Perks:

Will of Gaia: Gain extra morale for Aura Shock kills.
Celtic Overdrive: Spirit Feedback also hits all adjacent entities for 1 magic damage whenever it returns damage to an attacker, but stealth is reduced to -1 for a while after Spirit Feedback activates (whether any enemies are adjacent or not).
Mana Channeler: Effects of faith are doubled on certain terrain (e.g., grass), halved on others (e.g., pavement). Start with 2nd tier of Absorbing Aura.
Wild Man: Chance for successful physical melee attacks to trigger another physical melee attack on a random adjacent enemy (can chain). Start with half faith.
Fey: Aura Shock can only target adjacent enemies (range stays at 1), but damage is doubled.

Gear:

Druid: Start with a staff and cloak instead of a dagger and skins.
Heavy Drinker: Start with a health potion and a magic potion, but no gold.
Just Trolling: Start with a heavy club instead of a dagger; gain double XP and morale for clubbing kills, no XP or morale for other kills.
Seer: Start with Gaia’s Eye pendant (sees living animals or humans regardless of sight line; +1 faith (new item made for this class)) and staff instead of dagger. Can only equip staffs.

Examples of Aura charges:
on bushes during absorption == Aura Shock’s target will receive [mild] poison
on rock during absorption == Aura Shock’s target’s def will be temporarily decreased
on snow during absorption == Aura Shock’s target will be temporarily slowed

Aura Shock’s damage may need leveling tweaks: It should remain relatively weak as an attack spell, offset by the potential status effects and magic resistance removal. I originally had the range increase as the skill’s tier increased, but decided instead to subject all ranged spells to the same short range as Aura Shock. Since all spells must be charged with Absorbing Aura before they can be cast, the quickest any spell can be cast is 2 turns (and one of those turns is consumed by charging — though any number of turns may pass while charged before casting a spell). That severely weakens the Celt’s magic efficacy (moreso than any other class), but if the charge types are correct, the resultant spell should be more powerful than your typical mage’s spell. Hopefully this class would be an interesting rogue-ish class with a strong but limited magic support system that requires strategy to use effectively.

Not sure whether Holy spells take magic resistance into account or not, now that I think about it. Aura Shock is technically a Holy spell (since it scales with faith at tier 3), but I assumed that it would be diminished by magic resistance…

 
Flag Post

Topic: Game Programming / GiTD #45 *Creating Skeletal Wasps*

I hope to have something done for this. I’m even attempting to integrate the 1-button mechanic (not entirely sure that’s a good idea, but I’m determined to try it). I’ve only just started, though…

 
Flag Post

Topic: Game Programming / GiTD #45 *Creating Skeletal Wasps*

Just to clarify (Shalmezad can correct me if I’m wrong):

The theme isn’t [necessarily] “creating skeletal wasps”, but “creating”, “skeletal”, and “wasps”; so your game could be, for example, wasps creating some skeletal thing, or wasps fighting skeletal creatures that are trying to create something, etc.

Not sure how much that helps…

 
Flag Post

Topic: Game Programming / How to access code in a main swf from a loaded external swf

Ah, yes. I didn’t notice that loaderGame wasn’t a local reference variable (for whatever reason).

 
Flag Post

Topic: Game Programming / How to access code in a main swf from a loaded external swf

Originally posted by runawaycode:

It seems the btn_exit isn’t in scope after I load the external swf, but I do have it in the swf and instance is properly named.

The loaded swf is a child of your movieClip instance, it doesn’t take its place (see mc_screen.addChild(loaderGame);), and therefore its btn_exit reference should be from that.

Instead of:


mc_screen.btn_exit.addEventListener(MouseEvent.MOUSE_UP, exitGame);

try:


mc_screen.getChildAt(0).btn_exit.addEventListener(MouseEvent.MOUSE_UP, exitGame);

Note that this assumes nothing is added to your movieClip’s display list before the swf in question. You may want to have something more flexible to ensure you are referencing the correct object at any given time (such as the getChildByName function)…

 
Flag Post

Topic: Game Programming / GiTD #45 *Creating Skeletal Wasps*

In honour of the overwhelming response to this thread:
Adj.: Lonely
Noun: Crickets
Verb: Chirping
Game Mechanic: one-button play

 
Flag Post

Topic: Game Programming / Attention idle gme makers..

Well, if you aren’t bothered by the fact that an idle “game” isn’t actually a game, then you shouldn’t be bothered by an idle “game” having more to do than absolutely bugger all…

In any case, this would be much better suited in the Game Design forum.

 
Flag Post

Topic: Game Programming / Bitwise Operations

Originally posted by EndlessSporadic:


Can I test one number to see how many bits are the same as another number?
For example if I took the number 111 (7) and 101 (5) it would output 2 as bit 2^0 is 1 on both numbers and 2^2 is also the same.

Once again in a single operation, no. You would need to compare every bit and keep track yourself.

Bitwise AND (&) should do it.

var1: 00000111 (value 7)
var2: 00001101 (value 13)

result = var1 & var2; // bitwise AND
// result: 00000101 — matching bits

(I used 13 instead of 5 just so both numbers had bits to “mask out”; I thought it gave a more thorough example — the resulting value would be the same either way)

Edit: That will tell you which bits match, but it won’t tell you how many bits match. I think that’s what EndlessSporadic meant when he said you’d have to compare each bit and keep track. ActionScript doesn’t appear to have a way to save shifted off bits, so you’d need to mask all but the least significant bit (of the & result), test (increment counter if 1), right shift, and repeat until the entire int is evaluated:

var testmask:Number = 1  // to mask all but the least-significant bit
var testcounter:int = 32;   // number of bits to test (number of bits in an int) 
var matchcount:int = 0;
do
{
  var bittester:int = result & testmask;
  if (bittester > 0)
  {
    ++matchcount;
  }
  result >>= 1;
  --testcounter;
} while (testcounter > 0);

…something like that…

 
Flag Post

Topic: Game Design / Some ideas for crafting/weapons

Obsidian was used for arrowheads by the indians, as it gives relatively easy (very) sharp edges and is light weight (I can’t recall now, though, whether the arrowheads were lighter or heavier than similarly-sized bone arrowheads). It may have been used for some other weapons in other cultures, but as far as I understood the indians mostly just used it for arrowheads. I’m not certain, but I think that is probably because large pieces would tend to shatter, so using it as a [hunting] knife (for example) would be risky. Might want to research that a bit…

Shaping rock is difficult, particularly without metal tools. Some rocks produce better edges than others, but most rocks are very heavy. Bone, on the other hand, is light, many times already shaped for weapon use (fangs, horns, claws, some ribs), and light. A club or hammer would definitely prefer rock (or a tomahawk), whereas a fast attack weapon (such as a dagger(-ish)) would likely prefer bone (or just wood, if it is hard enough).

Sinew could be used for bow strings (or plant fibre), affixing heads onto spears (or leather) — assuming the spears have separate heads (fire-hardened wood was also used), or the feathers onto arrows or blowdarts.

Originally posted by ArcStudios:

And I might funnel the player into being increasingly more powerful and only concentrating on gathering resources for newer weapons by providing player with a “spirit” version of each weapon that cannot be lost or destroyed or run out of ammo as they play the game.

Well, unless the player is going to need excessive amounts of materials, or the materials are hard to get, I’m not sure that this won’t be detrimental to having a crafting system. Having materials drop all over the place but only be useful on rare occasions actually feels worse than scrounging for materials (to me, anyway). Keep in mind you’re only talking about 5 different weapons (six if you include some kind of dagger, and 8 if you include ammo) — though all of them could have different versions, as you say. Others can weigh in on this, hopefully, and tell you if they feel the same.

 
Flag Post

Topic: Game Design / Some ideas for crafting/weapons

OK, so original posts were changed/deleted while I was responding. Now my response seems kind of weird…

Things other than rocks and sticks to collect:
Bone. Obsidian (volcanic glass formed as igneous rock, so I don’t know if you included this with “rocks”). Some form of vines, grass, or sinew for binding or bow strings, perhaps?

Originally posted by ArcStudios:

Things like leather or any materials that you wouldn’t just pick up off the ground would require me to add ways to process those items, which I don’t feel fits my design very well.

Well, considering that rocks and sticks are extremely unlikely to be picked up off the ground in a form immediately usable for weaponry, I don’t really see much of a difference. Kill an animal, get leather and/or bone. Or, if you don’t like that, maybe have a village/“shop” to transform collected animals to leather?

More complex and better items could be blocked until player has crafted enough of a particular type of item (gained enough skill at crafting).

I don’t know if those were the type of suggestions you were looking for…