View Full Version : Modding question
ascension1223
09-01-2007, 6:20 PM
I have datedit to mod with and I am trying to create a mod that adds changes to units that only affect those units created by the player. E.g. a marine would cost 25 minerals only for human players, not computer. If this is possible please let me know how, or tell me what other tools I might need in order to make this work.
Kawagata
09-01-2007, 6:28 PM
you can't do this..
loads_of_fun
09-01-2007, 7:11 PM
You really can not unless you trigger something in. Tho it would not be that simple something to the extent of:
Players:
¤ (Human Players)
Conditions:
¤ Always
Actions:
¤ Switch [All switches related to this] is Cleared
Players:
¤ (Human Players)
Conditions:
¤ Current Player commands exactly 0 Terran Marine
Actions:
¤ Switch [Name1] is Cleared
Players:
¤ (Human Players)
Conditions:
¤ Current Player commands exactly 1 Terran Marine
¤ Switch [Name1] is Cleared
Actions:
¤ Modify Resources Add [the difference]
¤ Set switch [Name1]
¤ Preserve trigger
Players:
¤ (Human Players)
Conditions:
¤ Current Player commands exactly 2 Terran Marine
¤ Switch [Name1] is Set
Actions:
¤ Modify Resources Add [the difference]
¤ Clear switch [Name1]
¤ Set switch [Name2]
¤ Preserve trigger
Players:
¤ (Human Players)
Conditions:
¤ Current Player commands exactly 3 Terran Marine
¤ Switch [Name2] is Set
Actions:
¤ Modify Resources Add [the difference]
¤ Clear switch [Name2]
¤ Set switch [Name3]
¤ Preserve trigger
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Players:
¤ (Human Players)
Conditions:
¤ Current Player has suffered exactly 1 deaths of Terran Marine
¤ Switch [Name1] is Set
Actions:
¤ Clear switch [All switches related to this above Name1]
¤ Preserve trigger
Players:
¤ (Human Players)
Conditions:
¤ Current Player has suffered exactly 1 deaths of Terran Marine
¤ Switch [Name2] is Set
Actions:
¤ Clear switch [All switches related to this above Name2]
¤ Preserve trigger
Players:
¤ (Human Players)
Conditions:
¤ Current Player has suffered exactly 1 deaths of Terran Marine
¤ Switch [Name3] is Set
Actions:
¤ Clear switch [All switches related to this above Name3]
¤ Preserve trigger
then just keep scale it up tho you cant do it binary due to how it would work =/
or you could do it vise versa for the computer and subtract it but i do not think this is really what your looking for; it would not work in normal melee (unless forces were always the same), it is overly complicated and would tie up almost all your triggers
Kawagata
09-01-2007, 8:32 PM
..read the topic....
modding not mapping
DoctorZettabyte
09-01-2007, 9:32 PM
Welcome to the WB's, acension1223 :) Enjoy your stay.
As for your modding question, this is not possible at all (at least, without the source code) modding-wise, even with the current spurt of excellent tools being released now. Mapping, this would be very simple though...just build a trigger as loads_of_fun has explained above.
-DocTera
loads_of_fun
09-01-2007, 9:39 PM
@ Kawa' I know i was just saying it could be doing using some thing to that extent (if he absolutely needed to and/or there was/is going to be a campaign with it)
DiscipleOfAdun
09-02-2007, 3:01 PM
Actually, there is a way. It relys on the fact that the comptuer doesn't use the buttons to build units. What you do is make a copy of the marine in units.dat to an unused entry. Change what you want and save it. Then, in whichever grafting program you prefer, make the Dat Requirements for that unit to allow it to be built at the building you choose, and add a train unit button to that building, and remove the original one. Now the human will be forced to build the new unit, but since the computer reads the requirements for the old unit, it will create it.
fyi, this concept is called Mirrored Units, and it is used by the BWAI team in different ai's for modifications. It allows the computer to regain even footing by changing the costs of the units it builds compared to human ones.
KillerKow
09-03-2007, 10:57 AM
I swear I already posted that. Where did it go? :/
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.