| 07-31-2003, 05:57 AM | #1 |
Well here is my example map showing off the triggers I've used to create an Oil Gathering system. A couple of notes about it before you download to avoid confusion: Playing Info: 1. Oil Platforms can only be built on the exact center of the Oil Patches, despite the pathing texture showing that you can build it other places. This is due to the fact that I use triggers and regions to make sure it's in the right spot. 2. To order an Oil Tanker to Haul Oil, right click on an Oil Platform (NOT the oil patch!). The easiest way to make sure you're targeting the Platform and not the Patch, right click on the top of the tower where it extends outside the circle. Modding Info: 1. Just place an Oil Patch unit at the spot you want :D Miscellaneous Info: 1. I've disabled/commented out all of my actions that display debugging text, but if you want to see what's going on in the background, you can reenable/uncomment them. 2. Eventually I'm going to create custom abilities for the tankers ("Haul Oil", "Return Resources") so that you don't have to right-click if you prefer hotkeys :) 3. You can use these triggers for whatever without my consent as long as my name is somewhere in the credits ("Oil Trigger Author: element_5" or something). 4. Right now there isn't support of the Orcish Navy (You'll have to wait for my TC). 5. This should work on BNet no problem. 6. I NEED TALENTED MODELLERS TO CREATE THE FOLLOWING THINGS (The models I'm using now are only placeholders): a. Oil Refinery b. Oil Tanker c. Oil Platform d. Oil Patch Any questions or comments, feel free to ask here or send me an email at [email protected] (No comments about my "1337" number :ggani:). EDIT: Attachment of old map deleted. Info regarding old map deleted. |
| 07-31-2003, 03:02 PM | #2 |
10 downloads, 30 views, not a single response :bgrun: Maybe I can get some replies if I mention that I just found a bug in my own triggers. It makes it so that you can ONLY return Oil to the closest refinery. It's not so much a bug as a product of the way I determine when the Oil is dropped off. I'll see what I can do about fixing it and then I'll post back here with an updated link. Don't let this stop you from downloading the current version or, god forbid, replying to this thread, I still want people to test it out and tell me what they think. EDIT: Actually, you can still unload at other refineries as long as you right click them when you're right next to them. I'll still try to get it fixed so that you can click them from far away and they'll still do the Drop Off routine. |
| 07-31-2003, 04:45 PM | #3 |
Okay, not only have I fixed the problem, I have streamlined the triggers so that no modification needs to take place when you want to add or remove an oil patch. There are NO MORE Invisible Markers, and NO MORE regions to place. All superfluous/redundant variables have been removed. All you need to do now to add a patch is place an Oil Patch unit and have my triggers in your map :) Have fun! |
| 07-31-2003, 05:51 PM | #4 |
ill mkae you an oil patch model and if you can find some concept pics, ill do the others too |
| 07-31-2003, 05:51 PM | #5 |
Guest | Can u Use The Oil As a Resorce? |
| 07-31-2003, 06:20 PM | #6 |
NewbModder: I assume you mean to build things, right? Sure. Make a trigger that fires when a unit tries to build a building. Make it check the intOilAmount variable to see if there is enough oil to build the unit. If not, make the unit attempting to build it stop. You could probably store the Oil required to build a structure in it's Point Value (don't use it's custom value, because I use that in my triggers to determine where to send the unit once it has dropped off oil). Now, about displaying the Oil requirement in the UI, that's more of a challenge ;) Nicoli: That's great! For concept pics, just use the WC2 units. If you don't have WC2, I've attached a screenshot. 1. Human Oil Refinery 2. Human Oil Tanker 3. Human Oil Platform 4. Human Foundry 5. Oil Patch 6. Orcish Oil Refinery 7. Orcish Oil Tanker 8. Orcish Oil Platform 9. Orcish Foundry The oil patches underneath the platforms shouldn't be part of the model :) You can do as many or as little as you like. Thanks! (of course you'll get credit) |
| 07-31-2003, 06:22 PM | #7 |
D'oh, forgot to attach :bangH: |
| 03-27-2004, 02:26 PM | #8 |
did you use Jass to make this? |
| 03-29-2004, 01:11 AM | #9 |
I am jealous that some people can trigger like this... :8 and I am quite impressed by this, can't wait for the new models for the buildings, thats gonna be awesome! ^_^ Regards, hinascans |
| 03-29-2004, 11:11 PM | #10 |
lol this thread is like 8 months old. I remember using it as a form of reference when I was just starting to learn JASS. It's some good code. |
| 04-08-2004, 09:27 PM | #11 |
Hey, just looked at it; it's good! Perhaps you could use some sort of invisible Doodad as the "eligible" build area? (Build only atop the dummy Doodad) |
