What I mean is, if over riding the base and intel locations is as easy as it was, I was hoping putting in some script if the intel is below a certain height would be just as simple. I don't get how pyspades is using the mapname.txt file. Does it loop constantly? Does it only run once when loading and then stop? I thought it was weird that you only type the
- Code: Select all
def get_entity_location(team, entity_id):
line once, and then have a corresponding if statement for each. I originally had this whole line with an if statement for each intel and base, but it ignored the first 3 and only does the last one. Then I figured out you only use this line once and have 4 if statements for each condition. It still blows my mind that there's no brackets in python, lol. It must loop through the mapname.txt script stuff or something, but I don't get how it knows when an if statement begins or ends.
I thought maybe getting the intel location and then putting it back would be as simple as:
get current (not spawned) intel z position,
if z< 30
return intel position (,,60)
or something like that. In babel, if you die with the intel it'll stay where it is unless you're below a certain height. Even if you're 1 or 2 (?) blocks down it'll still stay in place, as I've seen it sitting on the tower/staircase when you kill the intel holder. I'm sure this is all part of the babel script, however.
Enari seems to have the simplest solution, just make the block below it invulnerable. Can this be put into the mapname.txt script? It seems like one of those things that could be initialized and done with. I don't get the inner workings of pyspades yet :\
Is the API listed somewhere or a list of variables used in AoS and pyspades? I didn't see it in the wiki.
Thanks for all the feedback, dany! I'll definitely pay the IRC channel a visit. The quarter is winding up here, but afterwards over the summer I'd like to try tackling some python.
I have lots of random C++ and Java code here and there, but it's mostly schoolwork for the C++, and Java I've been teaching myself for jerking around with my android. My focus in programming has been more with robotics, as it follows my degree pursuit, and even Java I'm mostly learning for access to the phone accelerometer, but I'd like to get better with pure software programming. As of now the most elaborate software-only program I've ever written was a galaga style asteroids shooter (they didn't shoot back, lol) in high school.
Edit: Forgot to add, I offered the .psd in case anyone wants to see how I did the heightmap and shading and all that. I always like to see how peeps do stuff (like the Titanic map with the object import, freaking awesome), so I can learn a thing or two.