<<< Subject Changed To: No Subject >>> WarriorMouse: Hi myrd :P Myrd: hi WarriorMouse: soooo Pyro: what do u know about the parameter Minimum Number of Items WarriorMouse: who added that anyhow? Myrd: I haven't heard of it until wm asked me about it Myrd: which was yesterday WarriorMouse: it is labeled "new" in the docs Pyro: lol Myrd: that might mean like 1.4 WarriorMouse: prob 1.5.1 new WarriorMouse: yeah or 1.4 Myrd: let me take a look at the code Myrd: yep 1.4 Pyro: its meant to be used so the GEOM cant suceed unless there is at least this many items found Myrd: #define VERSION_1_3_54 // Map Actions enhancements. Includes... Myrd: // GEOM changes (ammo <>, units taunting, units special attacking, mana <>) Myrd: // - lists in results action and field types fields. Myrd: // TUNI (ammo/mana <>, power subj > obje, numbers subj > obje) Myrd: // - enemy within radius of fringe units rather than centrepoint Myrd: // GIRL (aggression) Myrd: // FOLL - never follow enemies, and never abandon. Myrd: // ATTA - a radius inside which it looks for enemies. also ability to Myrd: // specify preferred enemy type and a radius inside which it'll Myrd: // switch to non-preferred - or a radius in which it'll focus on Myrd: // preferred unit types and outside of which it'll target anything. Myrd: // - use short-range attack (archers double-click, bre'Unor bone whack) WarriorMouse: "within" the geom :P Myrd: part of those changes Pyro: however it turns out if its used with Object Type and a polygon... it doesnt look for this interger in the poly but the whole map Myrd: fun Myrd: yeah the geometry is done after Myrd: hmm no Myrd: if you use _geometry_container_field_name_polyset Myrd: then thats done before Myrd: but not _geometry_container_list_inside and _geometry_container_list_outside Myrd: and others Myrd: so basically its a mess just like the rest of geoim Myrd: *geom Myrd: basically, my advice is, if you can get it to work, then its fine to use Myrd: if not, I'm not changing it, as it may break other plugs Myrd: so you should use something else in that case WarriorMouse: wernt you on the verge of switching all the scriptinting to LUA anyhow? ;) Myrd: heh Myrd: I said it was a good idea Myrd: to do Myrd: I was never on the "verge" of doing it :p WarriorMouse: thats like saying "Icecream sounds good" WarriorMouse: you just end up getting some anyhow ;P WarriorMouse: since you are here, any of you use tortoiseSVN ? Myrd: on windows yes WarriorMouse: k, what do i need to change to be able to logon to the rep WarriorMouse: I keep getting an error due to OPTIONS command Myrd: dunno Myrd: I think you just enter the url and your username/pw WarriorMouse: thats what i did :P WarriorMouse: nothing works for me this week Myrd: I don't remember having to do something special Myrd: perhaps doobie needs to restart the svn daemon? WarriorMouse: Import C:\Users\Jim\Documents\MythTools to http://myth.kylemaclean.net/myth2 WarriorMouse: Server sent unexpected return value (403 Forbidden) in response to OPTIONS WarriorMouse: request for 'http://myth.kylemaclean.net/myth2' WarriorMouse: hmn thats backwards WarriorMouse: same error for checkout WarriorMouse: ffs, same thing for browse Myrd: hmm Myrd: I get the same error now Myrd: maybe doobie broke something while trying to make you an account WarriorMouse: mb Myrd: yeah I get those errors now if I try to do anything Myrd: so something is broken that wasn't yesterday WarriorMouse: pmed him asking him to rs WarriorMouse: so now that my hopes are squashed for counting opbects in a geom >> any of you know of another way to do this? WarriorMouse: *objects Pyro: yes Pyro: u have units that pick these projs up right? and are all these the same type? WarriorMouse: yep Pyro: and how many polygons are there on the map... just the one? WarriorMouse: do a geom for the unit in the area with the item, use script to remove the item >> WarriorMouse: 2 WarriorMouse: 1 for each team WarriorMouse: atm Pyro: ok... have the units that can pick say proj A, drop proj B instead WarriorMouse: usig promotion right Pyro: nope Pyro: but i guess u can Pyro: i meant say team 0 has unit A that can pick up proj A and when they press T actually make proj B Pyro: while on team 1 there are unit B that looks like unit A but makes proj C Pyro: get it? WarriorMouse: I see, so the pickup is the ammo, but the ability drops a dif proj Pyro: yes WarriorMouse: that works WarriorMouse: can a unit have multiple ammo types? WarriorMouse: like, 6 types Myrd: no Myrd: afaik WarriorMouse: can ammo change based on an artifact held? Pyro: u can however use artifacts Myrd: yeah Myrd: well not ammo Myrd: but the artifact itself Myrd: can be "like ammo" WarriorMouse: k that works Pyro: why do u want 6 types, mouse? WarriorMouse: for the map I am making silly ;) Pyro: gah Pyro: u are hopeless WarriorMouse: I figure you guys can keep a secret Pyro: if i know why u want 6 types i could maybe suggest a way Pyro: i cant keep secrets... did u know gray is canadian! Pyro: oh wait that wasnt a secret Pyro: ;) WarriorMouse: heh WarriorMouse: Well i was working on this long before last night discussion about RTS WarriorMouse: but I am making a resource wars map WarriorMouse: where you start off with a small group of units and you have to secure resources across the map WarriorMouse: when you bring them back to your camp building start to appear WarriorMouse: and based on the buildings that you have made you get more units of dif types WarriorMouse: and dif buffs WarriorMouse: you get to choose what you build first so you can determine what units you recieve next to help your conquest of the map Myrd: right WarriorMouse: so I have lumberjacks, miners sofar WarriorMouse: and the script I am working on counts how many items they bring back to the base WarriorMouse: if the min number was met I was going to up a permutation on a building to the next stage WarriorMouse: (to show some progress) WarriorMouse: so you have, foundation/studs/completed building Myrd: I think the (undocumented) math map action can be pretty helpful Myrd: uhm Myrd: perhaps its a good time to try to make some docs for it now Myrd: basically, the way I see it WarriorMouse: also plan on having NPC units that are scripted to engage you as well so it isnt just you vs another player, but the NPCs as well Myrd: you set up a dummy MA with an integer param Myrd: one for each building type Myrd: for each team, or whatever Myrd: every time a resource is brought back Myrd: you use math to increment integer Myrd: and you use another math to test integer > 5 Myrd: or whatever Myrd: then reset it, and do your thing Myrd: I believe this is all possible with math map action WarriorMouse: I ran across that math action, looked sweet i was sad when i didnt find the tag for it in Fear :P WarriorMouse: under templates Myrd: untag Patch 1.7 Templates into your local folder? Graydon [Macb: download Pyro's 1.7 Templates pack Myrd: fear doesn't read addons WarriorMouse: you guys are so helpful :P Graydon [Macb: loathing does Myrd: right Myrd: he wanted to read it in fear Graydon [Macb: so if you put templates patch 1.7 in there, you should when loading loathing, be able to see the options it provides Myrd: I'm not sure how helpful the template is Graydon [Macb: math being one of them WarriorMouse: I chose 23 Battle 1 as my first map, it is pretty balanced and really unique WarriorMouse: (shiver map in solo lvls) Myrd: so perhaps I can read the code and tell you how it should work Myrd: and you can take some notes and then turn it into a guide for math MA :p Myrd: someone here Myrd: :P WarriorMouse: sure, sounds like I will be using it a lot WarriorMouse: I am a big fan of math functions in scripts ;P WarriorMouse: I like that it can store and update intergers WarriorMouse: that reminds me Myrd: if you get it to work, then you'll probably be the first using it WarriorMouse: can you add variables that can be passed to the next map in a series, much like kills/vets are done WarriorMouse: for 1.7.2 ;P Myrd: heh WarriorMouse: lolz i know, 1.8 Myrd: with math you can set those directly in the other action Myrd: math can read from and write from parameters of any other action WarriorMouse: how does it that work? WarriorMouse: sec opening loaathing now ;P Myrd: that's what we're gonna find out now WarriorMouse: lol WarriorMouse: awesome ;) Myrd: (fyi: I took the math MA code from m3) WarriorMouse: I never scripted for m3 :P Myrd: I think pyro might have told me it wasn't even used in m3 campaign WarriorMouse: some geeky intern mb put it there Myrd: ok so Pyro: yea i cant find it being used in m3... but then again i was using a hex editor to look around Myrd: each math action has three things Myrd: four things Myrd: the left operand, the right operand, and the destination Myrd: and the operation WarriorMouse: right I saw those Myrd: so essentially its WarriorMouse: you can build an eq Myrd: destination = operation(left, right) Myrd: operation is the simplest thing Myrd: mathematical operand Myrd: er operator Myrd: so Myrd: _math_operator_add Myrd: _math_operator_subtract Myrd: and so forth WarriorMouse: yar Myrd: also stuff like Myrd: _math_operator_boolean_or Myrd: for logical Myrd: finally you can also make the output negative with an extra Myrd: _math_operator_output_negative Myrd: (in addition the regular calculation) Myrd: or negate (for boolean ones), with _math_operator_output_not Myrd: now thats pretty straight forward Myrd: the trickier thing is how the left and right are retrieved, and how the destination is done WarriorMouse: when you send the value to an action, how is it handled there? how would you call it Myrd: ok so I'll start with the destination Myrd: so _math_operator_destination_action Myrd: specified an action identifier Myrd: so I guess in loathing this would give you a popup where you select another action? WarriorMouse: yep WarriorMouse: you can select from any map action Myrd: the other one is field name Myrd: _math_operator_destination_field_name WarriorMouse: afk few mins someone knockin Myrd: now field_name is the 4-letter identifier of another param Myrd: which should exist in the action you specified Myrd: that field must be an integer field Myrd: and it must have at least one value Myrd: that value will be set to the result Myrd: now the remaining part of the mystery is how does it retrieve the values of "left" and "right" Myrd: the following options are available: Myrd: _math_left_integer, Myrd: _math_left_action_identifier, Myrd: _math_left_field_name, Myrd: _math_left_negative, Myrd: _math_left_not Myrd: that's just for the left operand, another set of these is for the right operand Myrd: if you specify _math_left_integer Myrd: then thats the name (4-letter id) of an integer param of the current action Myrd: of the math action, that is Myrd: so the value is stored in the math action itself Myrd: otherwise, if you did not specify that, then you have to specify a different action using _math_left_action_identifier Myrd: and an integer field of that action using _math_left_field_name Myrd: finally, with _math_left_negative and _math_left_not you can modify the value that is gonna be used (either make it negative, or logically flip it) Myrd: and thats all Myrd: with that information, you should be able to successfully use the math map action