| 02-14-2004, 07:02 AM | #1 |
Im making a "td" (if you can call it that) where creeps attack you and you build burrows and peons to defend youself (lol its more complicated then that, but anyways). And now i want a special burrow to have a cargo hold of 8 peons (works), BUT when you have 8 peons in it, it doesnt give extra speed. Having 4 gives max speed, having 5 doesnt help..... is there anyway to fix this? or? |
| 02-14-2004, 07:39 AM | #2 |
I'm pretty sure thats hard coded. |
| 02-14-2004, 07:47 AM | #3 |
2 bad :nono: mayb theres a way to check how many peons is in the burrow, and give it extra damage and such? that would be awsome... imagine like if you have 5 peons you get cold attack! wud be great |
| 02-14-2004, 07:50 AM | #4 |
you could do that. there is a unit event that triggers when something is loaded into a transport, and likewise when something is unloaded. so, assuming this event fires for orc burrows as well, just set up an integer array called burrows, and every time a peon enters burrow x, integer burrows[x] = integer burrows[x] + 1, and when something leaves its burrows[x] -1. Then, when burrows[x] hits, say, 6, give that burrow an upgrade that does whatever. when it drops below 6, take the upgrade away. thats a good idea, definitely implement it. |
| 02-14-2004, 09:48 AM | #5 |
whoa thanks ALOT:D i knew how to do it, if i just could find that... ive been looking in conditions for an hour now :ggani: ! Then i can make so when u have more then 4 (maximum speed) the damage start increasing instead. So 8 peons in a burrow is extremly strong, so you can make it really cool.... dude u might get a place in creds emote_sweat edit: I cant find the "leaves transport" event? Could you tell me its exact name and where? (loading works) edit2: Im using the units custom value to check how many units is inside=) |
| 02-14-2004, 01:55 PM | #6 |
Im need away to get when units are loaded/unloaded aswell, but I cant find unloaded anywhere. Try "Unit is issuded an order" than "Order comparison (Issued Order) is equal to "unload" or something like that. Not sure if it will work, though.( I know unload is the orderstring for the normal unload, im not sure if its the same for unload all) |
| 02-14-2004, 03:04 PM | #7 |
ah well.. thats not really the big problem=) The problem is not making it trigger when the unload button is clicked, its when you click the peons face inside burrow emote_sweat And i dont think there is a way:bgrun: ... I tried making so when a unit enter playable map region, and the unit is a peon (and this trigger is turned off for 0.01 sec when a peon is created to prevent that), then the burrow should get -1 on the integer of how many peons it hold. But the problem with that is that i cant check which burrow he left! Only that a peon has left a burrow... and checking which burrow is the closest wont work, cuz it might unload very close to another burrow... Plz reply everybody!!! 20 points to the one who figure this out b4 me! (i never will:ggani: ) |
| 02-14-2004, 03:31 PM | #8 |
For my Campain I can detect when a unit is unloaded- Add these events: Unit is issued an order with no target Unit is issued an order targetting an object Unit is issued an order targetting a point Conditions: Issued order is equal to unload And that works when you click faces |
| 02-14-2004, 04:44 PM | #9 |
ok.... ill check if it works, if it does ur 20 points richer :D but i got another problem=) if a unit clicks unload, i cant know how many units is unloaded...? is there anyway to disable the unload button? |
| 02-14-2004, 05:08 PM | #10 |
Just dont give it the unload ability. They can still be unloaded by clicking from my experiance |
| 02-14-2004, 05:26 PM | #11 |
ah lol sorry that was a stupid quesiton=) burrows dont even have unload, they have "stand down" (so i can keep it:D) testing now.. |
| 02-14-2004, 06:48 PM | #12 |
did it work? |
| 02-14-2004, 08:09 PM | #13 |
IT WORKED!!! YOU'r THA BEST!!!! (sent u pm with 25 points ://// ) good work :D And, if you wanna know: Basic Burrow: 6 cargo holds, 1-4 = attack speed increase, 6 = critical strike (THANKS TO U) :foot: |
