HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Ho to make item Damage +1 give -1

07-19-2009, 02:43 PM#1
Flame_Phoenix
Hi guys, I am trying to make a AttackMod lib which will change the attack of a unit. I have a problem, I can't make Item Bonus Damage give -1 attack bonus but I know it is possible.
My stupid WE just blocks it... how do I do it?
07-19-2009, 03:00 PM#2
Blubb-Tec
did you use shift? by the way, check out UnitProperties by Litany. no need to reinvent the wheel here, especially in this case, you'll see why.
07-19-2009, 03:09 PM#3
Flame_Phoenix
Quote:
did you use shift? by the way, check out UnitProperties by Litany. no need to reinvent the wheel here, especially in this case, you'll see why.
I used shift ... And I am also aware of UP. The reason why I am making this small modular system is because I don't like UP ...
Although it will only be able to give +/- 498 attack bonus it will be very easy to implement and it won't need 1000 ability to do that, just 1.
07-19-2009, 03:38 PM#4
Captain Griffen
Ticked allow negatives in preferences?
07-19-2009, 04:00 PM#5
Rising_Dusk
Quote:
Originally Posted by Captain Griffen
Ticked allow negatives in preferences?
This.
07-19-2009, 04:16 PM#6
Flame_Phoenix
What makes me feel pathetic is that I have that box checked !

This makes me conclude that, there is either something messed up in my WE; or that I don't know how to use the shift trick !
Click image for larger version

Name:	done.jpg
Views:	32
Size:	229.9 KB
ID:	44353
Attached Images
File type: jpgdone.jpg (229.9 KB)
07-19-2009, 04:36 PM#7
Rising_Dusk
Hold shift and double click the indicated field, then insert a negative number?
07-19-2009, 06:29 PM#8
Flame_Phoenix
Ahhh ... I knew I was messing something up ... God bless you for destroying my moments of stupidity with straight answers xD
I am going to bookmark this page =P
07-19-2009, 07:56 PM#9
Blubb-Tec
Quote:
Originally Posted by Flame_Phoenix
Ahhh ... I knew I was messing something up ... God bless you for destroying my moments of stupidity with straight answers xD
I am going to bookmark this page =P

great this problem was also solved. I don't really know what else to say, I really don't know...
07-19-2009, 08:01 PM#10
Flame_Phoenix
Quote:
He doesn't understand that Unit Properties is already modular
Not enough modular for me.

Quote:
great this problem was also solved. I don't really know what else to say, I really don't know...
Shit happens sometimes xD
07-20-2009, 02:49 AM#11
ToukoAozaki
Quote:
Originally Posted by Litany
Unit Properties is already modular in the modern development environment

I'm working with map of some guy, and UP causes name clashes with tons of globals/locals; this is because Life, Mana, MaxLife, MaxMana is quite common variable names depending on the coder's style, making UP not a viable option for this map. Also it is ridiculous to make sure calling something like CreateUnitProperties if all you need to do is just simple max state modifications; that's why I wrote MaxState (name is subject to changes).
07-20-2009, 07:15 AM#12
Fledermaus
Quote:
Originally Posted by Flame_Phoenix
Hi guys, I am trying to make a AttackMod lib which will change the attack of a unit. I have a problem, I can't make Item Bonus Damage give -1 attack bonus but I know it is possible.
My stupid WE just blocks it... how do I do it?
Where is the neg rep button? :p