|
Post by tem on Jan 4, 2006 14:19:14 GMT -6
yep, it's me again. you know it must be something relatively simple compared to your awesomeness that i'm trying to figure out. ;D well, since i had seen your new see all code, i've come up with a new idea....i'd like to make codes that increase the attack, armor, strength, dexterity, wisdom, hit_point, mps, and maximum_mana by either five or one hundred...but the problem is is instead of increasing it by 5 or 100...it sets it to five or one hundred. so what should i do? beyond that, my mod's been going along nicely. oh..and..mind adding me to your msn?
|
|
|
Post by Boaster on Jan 4, 2006 19:22:16 GMT -6
currentarmy n unitdictxref /sight_radius get 5 add artifactself MODIFIER_FLAG_FROM_ARTIFACT -1 -1 0 addunitmodifier nsetunitdata
Just remove: 3 copy getuniteffectivedata -1 mul.
|
|
|
Post by Boaster on Jan 4, 2006 19:23:24 GMT -6
I'll need to know the MSN SN before I can add it.
|
|
|
Post by TEM toolazytologin on Jan 4, 2006 20:11:05 GMT -6
it's on my profile, as the msn button. just in case bjmarriott@passport.com thanks [By the way]! helps a ton
|
|
|
Post by tem on Jan 4, 2006 20:25:42 GMT -6
hmm....it doesn't appear to work. nothing happens. argh. oh, and i noticed you left the /sight_radius in there. apparantly i wasn't clear. oops. i'm currently trying to figure out something with that sort of code that increases the attack/armor/strength/dexterity/wisdom by 5. i used your code and modified all of mine with that method {and appropriately changed it to the right stats} but it still no worky. although it's a different issue now. example of the issue: i have a level 15 necromancer. 16 attack. i use attack code. attack should become 21. stays at 16. nothing makes it change to 21. although at least it's not changing the attack from 16 to 5. *sigh of relief* any ideas? i must've done something wrong. v.v oh, and, yes, the tem toolazytologin is me. ;D
|
|
|
Post by Boaster on Jan 4, 2006 22:15:58 GMT -6
cheat_buffer"add attack"strcmp 0 eq{currentarmy -1 gt{0 1 currentarmy ARMY_NUM_UNITS getarmydata 1 sub{/n exch def currentarmy n isheir? currentarmy n isleader? or{currentarmy n unitdictxref /attack get 5 add artifactself MODIFIER_FLAG_FROM_ARTIFACT -1 -1 0 addunitmodifier nsetunitdata}if}for}if}if
That is what it should look like for attack. That cheat will only affect the Leader or Heirs.
If that does not work, do this instead:
cheat_buffer"add attack"strcmp 0 eq{currentarmy -1 gt{0 1 currentarmy ARMY_NUM_UNITS getarmydata 1 sub{/n exch def currentarmy n isheir? currentarmy n isleader? or{currentarmy n unitdictxref /attack get 3 copy getuniteffectivedata 5 add artifactself MODIFIER_FLAG_FROM_ARTIFACT -1 -1 0 addunitmodifier nsetunitdata}if}for}if}if
One of those must work. If not, I cannot help you further.
|
|
|
Post by tem on Jan 5, 2006 21:12:29 GMT -6
well, on the positives; the second one works. ;D on the negatives; it doesn't increase by 5. XD it increases by random intervals completely. although i notice the higher that stat is...the higher the increase is. example; level 4 life warrior lord 12 attack use add attack 27 attack use add attack again 61 attack well, not quite what i had in mind...but it works at least. at least that's an improvement, right?
|
|
|
Post by Boaster on Jan 5, 2006 21:15:58 GMT -6
Okay, what I think it is doing is adding its current value of 12, +12 +5. You're close enough to figure something out on your own I'm sure.
|
|