• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Jass Custom Attribute System

Status
Not open for further replies.
Level 2
Joined
Nov 5, 2009
Messages
9
I recently started to learn some Jass, and the system I'm trying to create is looking far too confusing for me. Basically, I need a system in which:
-Each of 3 Hero units have 4 custom attributes (the same 4 for all 3 heroes).
-Each hero has different formulas based on the 4 attributes to calculate defense, physical damage, skill damage etc.
-Armor absorbs an integer value of damage: (Damage = Damage - (Armor/2)). If anyone is interested in helping, or just giving me some tips, I can fill you in on more details. Thanks in advance.
 
Level 8
Joined
Aug 2, 2008
Messages
193
A very hard thing you are trying to do when you are learning Jass. I would recommend you to try to code some spells oder more easy systems than such a system, using formulas and damage modifications.
I would try to learn vJass, how to use structs, which would make such things you want to do a lot more readable and more easy.
There are enough tutorials here on hive, wc3c or other sites, that describe very good, how you can use structs and for what.

For the things you want to do, you need a damage detection system (which are all in vJass) and good knowledge of scripting in wc3 and the engine of wc3 itself ;)
 
Status
Not open for further replies.
Top