Staredit Network > Forums > Modding Discussion > Topic: LocUnlock v1
LocUnlock v1
Sep 15 2008, 4:57 am
By: poiuy_qwert  

Sep 30 2008, 8:47 pm O)FaRTy1billion[MM] Post #21

👻 👾 👽 💪

Quote from poiuy_qwert
3. Since locations always exist, you don't actually create them, LocUnlock lets you change any property about any location at anytime, then you can do whatever you want with it. Centering would be done with the normal Center Location action.
To further specify: locations that havn't been placed or those that have been deleted are at coordinates (0,0),(0,0). Placing the location just sets the coordinates.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Oct 1 2008, 4:23 am Hercanic Post #22

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

Quote from Poiuy Qwert
Q2. Can locations be removed?

A2. Locations always exists, you cant remove them, just stop using them.
If you just stop using them, that could cause problems depending on how the location is being used.


Quote from Farty
locations that havn't been placed or those that have been deleted
By deleted, is there a trigger command to delete a location? Or is that accomplished by telling it to resize and move the location back to 0,0?


Quote
Q3. Do you predefine each location, or is creation dynamic? As in, could I specify a new 2x2 location to be created and centered on every Marine every player makes?

A3. Since locations always exist, you don't actually create them, LocUnlock lets you change any property about any location at anytime, then you can do whatever you want with it. Centering would be done with the normal Center Location action.
Okay, but please understand I am very unfamiliar with triggering. Can triggers create locations dynamically or does each individual location need to be predefined? Can I make a trigger that centers a new, unique location over each CC any player builds?

1. “If player builds CC, center a 2x2 location on it” – So with this it doesn’t matter how many CCs are built (up to 255), each one would have a 2x2 location over it.

2. “If player builds CC, center location A1 on it” – With this, each time a new CC is built, the same location would be moved, preventing the possibility of any sustained effects on more than one CC.




Oct 1 2008, 5:10 am poiuy_qwert Post #23

PyMS and ProTRG developer

Quote from Hercanic
Quote from poiuy_qwert
Q2. Can locations be removed?

A2. Locations always exists, you cant remove them, just stop using them.
If you just stop using them, that could cause problems depending on how the location is being used.

If you stop using it, that means no actions or conditions use it, so the location effects nothing at all ever.

Quote from Hercanic
Quote from O)FaRTy1billion[MM]
locations that havn't been placed or those that have been deleted
By deleted, is there a trigger command to delete a location? Or is that accomplished by telling it to resize and move the location back to 0,0?
There is no trigger for deleting them, because you are meant to just not use it when you dont need it. But when creating a map in a map editor, if you dont "create" the location, its still there just at (0,0) with width and height of 0, so that could be considered "deleted".




Quote from Hercanic
Quote
Q3. Do you predefine each location, or is creation dynamic? As in, could I specify a new 2x2 location to be created and centered on every Marine every player makes?

A3. Since locations always exist, you don't actually create them, LocUnlock lets you change any property about any location at anytime, then you can do whatever you want with it. Centering would be done with the normal Center Location action.
Okay, but please understand I am very unfamiliar with triggering. Can triggers create locations dynamically or does each individual location need to be predefined? Can I make a trigger that centers a new, unique location over each CC any player builds?
You can predefine the locations, or change their settings whenever you want, its up to you. And your example is possible, its just really hard, and the only way it could be accomplished would be looping through the CC's everytime you check for a new one. The reason that is bad is that to loop through them you have to give the each CC to another owner once its checked, then when all CC's are checked give them all back to their origional owners.




Oct 1 2008, 5:40 am Hercanic Post #24

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

Quote
If you stop using it, that means no actions or conditions use it, so the location effects nothing at all ever.
Can locations detect the death of a unit? Going back to the CC example, if I center a location over it but want it to go away if the CC is destroyed, is that possible? Otherwise, if I have triggers that utilize the location with the intention of only having it usable while a CC is present, there would be problems. I suppose the trigger could perhaps check to see if a CC is within the location first, but it seems so messy having unused locations scattered everywhere.


Quote
You can predefine the locations, or change their settings whenever you want, its up to you. And your example is possible, its just really hard, and the only way it could be accomplished would be looping through the CC's everytime you check for a new one. The reason that is bad is that to loop through them you have to give the each CC to another owner once its checked, then when all CC's are checked give them all back to their origional owners.
Okay, so locations are predefined. Darn, that definately, at the very least, makes things more challenging, if not outright eliminates some possibilities. Shame there wasn't a way for the program to create location 'groups' that triggers could refer to and thus enable dynamic location creation. (So you might have a custom CC Group that reserves locations 200-255 and creates up to 55 locations for each CC made in the game. Triggers would then refer to Location "CC Group" and the program would apply the trigger conditions to all locations within the CC Group.)

As for your solution, it's a very interesting idea. What would happen to any in-progress units/research during ownership change? How quickly would the game be able to run through the whole process, and thus how noticable would it be to players? Would it botch the AI?




Oct 1 2008, 6:04 am poiuy_qwert Post #25

PyMS and ProTRG developer

Quote from Hercanic
Okay, so locations are predefined.
Quote from poiuy_qwert
You can predefine the locations, or change their settings whenever you want, its up to you.

Once again all this does is lets you move, resize, and change the height flags of any location at any time during a game. Anything outside of those is a mapping question, and I'm not an advance mapper.




Oct 1 2008, 6:11 am Hercanic Post #26

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

Quote
Okay, so locations are predefined.
That's just me acknowledging what you said. Not sure why you repeated your quote beneath it.


Quote
Anything outside of those is a mapping question, and I'm not an advance mapper.
Sorry, I'm not trying to monopolize your time with personally-specific questions. Since you suggested a way for one of my examples to work, I was just curious whether you knew anything further about it offhand.




Oct 1 2008, 6:16 am poiuy_qwert Post #27

PyMS and ProTRG developer

Quote from Hercanic
Quote from Hercanic
Okay, so locations are predefined.
That's just me acknowledging what you said. Not sure why you repeated your quote beneath it.
Because the bolded text states that no they are not only predefined. I take "predefined" to mean you set their width height and flags, then they are defined and you can only center them and use them in triggers.

No problem, im just tired.




Oct 1 2008, 6:23 am Hercanic Post #28

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

Out of context, you can infer more meaning behind "predefined", but in this specific case my question pertained to "dynamic creation" vs "predefined creation." As in, the difference between algorithmic and manual settings.




Oct 1 2008, 6:48 am poiuy_qwert Post #29

PyMS and ProTRG developer

You can have algorithmic settings, thats why parameters are taken from death counters.




Oct 1 2008, 8:59 pm Hercanic Post #30

STF mod creator, Modcrafters.com admin, CampaignCreations.org staff

How so? (pardon my ignorance)




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
Please log in to shout.


Members Online: Ultraviolet, Roy