HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

DT4a: Advance your RPG today 1.1!

03-07-2004, 03:18 PM#46
weaaddar
Well first off you should never give them items in the unit placer.
You should always use the constructor setUpHero, (If you enver actually made them a hero thats also probably another reason for your error!)
Anyway it still could be that field 0 is not unique do the items have the same total quantitive bonus? (Ie. one has an attack bonus of 5 one has an armor bonus 5 they both will have the same pval of 7156 or whatever and thus major errors will insue)
03-07-2004, 04:31 PM#47
Oxygen87
ohh....i use the setUpHero thing to give the hero the items.
But what you said about the bonuse, I'll check that up.

EDIT: Okej, i do think that is the problem, how do i solve it?

EDIT 2: That is the problem :D
Well, how do I solve this then? I don't really know WHY the problem accure.
03-07-2004, 07:33 PM#48
weaaddar
I also let you manually set a pval.
Chose an arbitrary number for one of the numbers between 0-7161 and make sure that no other number will have that pval.
Pval is calculated in said manor:
7161-(Armor Bonus+Attack Bonus+Damage Bonus+Hp Bonus+Str Bonus+Agi Bonus+int bonus)=Pval.
Unfortuantly my brilliant idea was to sort by Prioirty (Always a good idea), and to save one step in caclulations I decided to store items by thier priorty (A really dumb idea). next version should correct that but don't expect that for a while so for now please manually set Pval or change the bonus value so that they are different.
03-07-2004, 08:04 PM#49
Oxygen87
Well, Pval is that 0? (getPvarl(j))?
Well, when i try to change the 0 line to a custom value i get an error.
03-07-2004, 08:19 PM#50
weaaddar
Get rid of getPval(j) and replace it with a number in quotes. I.e. "52"
03-09-2004, 06:37 AM#51
AntoninScalia
I'm interested in adding both positive and negative move speed modifiers on items using your engine. Unfortunately, there's no way to add passive move penalties through the item abilities that I can find; the World Editor won't accept negative integer values, and all the move bonuses take an int.

There is, however, a common.j function SetUnitMoveSpeed that allows you to directly modify move speed values. So basically what I need is a pair of new fields: Triggers to run when equipped" and "Triggers to run when de-equipped". Seems to me that this would go beyond move speed; this would open up the space of interesting items greatly. Right now, we're pretty severely limited by the paltry set of item passives that Blizzards offers us.

I actually sifted through your code a bit, and it seems pretty straight forward to do this, but I'm sure you could do it far faster than I. Familiarity breeds both contempt and expertise. :)

Thoughts?
03-09-2004, 06:34 PM#52
weaaddar
The trigger is certainly not going to happen. Its just theres no room for me to add that in the datafields of the item. Are you sure you can't enter a negative integer using shift double click?
Anyway remember the sources is there for your own modifications I can't be bothered to add something that I'll find no use of.
03-10-2004, 12:19 AM#53
AntoninScalia
Quote:
Originally Posted by weaaddar
Anyway remember the sources is there for your own modifications I can't be bothered to add something that I'll find no use of.
Sounds good. I'll go ahead and do it.
03-10-2004, 03:54 PM#54
BroodsteR
Suggestions,
[Yes, you definately need this to be compatible with hero-save function.
I think you should create a inventory save system just for this though.]
[For your equiptment page, slots 1,2,5,6 dont have NoItem on it, so how do I place an item in it?]
03-10-2004, 09:19 PM#55
weaaddar
If you check the getting started guide it tells you that using -1 means you are disabling the slot. You also can only have 5 slots in this version.

Again 255 character passwords don't sound appealing to me, hows about you? I'm not good with those passwords so please don't make suggestions I've said no to multiple times.
03-14-2004, 07:45 PM#56
Ceo
Quote:
Originally Posted by weaaddar
If you check the getting started guide it tells you that using -1 means you are disabling the slot. You also can only have 5 slots in this version.

Again 255 character passwords don't sound appealing to me, hows about you? I'm not good with those passwords so please don't make suggestions I've said no to multiple times.

Is there anyway that you can make it copy your password to a new file/clipboard and then have it pasteable/read off of the file?
05-04-2004, 02:06 AM#57
qwertyui
Exellent system. I can't wait to use it in my map :)

A quick hint - activating and deactivating Mana Shield does not interrupt channelling spells. So a dummy ability, based on this skill, can be used to flip the menu pages back and forth with no undesireable side effects.
05-08-2004, 10:44 PM#58
MysticGeneral
Wow, just have to say that's something I really never knew or would've never thought about. Cool tip qwertyui.
05-09-2004, 12:09 AM#59
weaaddar
Mana shield cancels cuncurrent orders that are not channeling and is a very viable hero skill, where as replenish is quite easily replaced by replenishlife and replenishmana respective. Also MG what are you doing isn't this breaking your pact? I mean its a bit hypocritical asking for me to avoid you but you to post in my threads.
05-09-2004, 11:59 PM#60
MysticGeneral
I know... I was thinking about it, and it is hypocritical, but I just "had" to say something >;{