Posted 1613279388
· Edited
Reply with quote
#1
UPDATE: Problem apparently fixed...On to the next. Hope the great Hive Mind can help me with something... I have a multi-ship exploration script which requires players to check out various parts of the map to find all the nebulae, asteroids, enemies, etc, and deploy relays (via Comms) at interference points to fix the sensors and Comms systems. The catch (and possibly the problem...) is this: all the players start on side 2, but are flipped to unique sides (3+) upon entering the system, which is resolved by deploying Comms relays during the mission. (I haven't gotten to testing that part...) The other catch (and possibly related to the problem) is that sensor range is limited to 8K and nebulae block sensors. In order to facilitate things, I added generic meshes as target points so players knew where to explore; when they are in range, a create event is triggered. (I later realized players might use probes, so I'm going to implement LT's solution of blipping anomalies--which makes more sense in context, too.) For each area, upon entry two events happen: 1. Create Nebula Event:destroy the mesh spawn various map aspects (nebulae, monsters, anomalies) create 3-6 new generic mesh interference points 2. Scan DetailsChange text properties of meshes to include info about relay type. (Comms/Science/Reflection/Proximity Scan required...) According to the event log, both events are triggering for all of the areas, and everything seems to work fine: nebula show up, generic meshes appear/disappear, false reflections vanish on proximity, pop-ups appear, the drop code and relay placement and renaming work, and the interference points disappear when a relay is dropped. Everything works, that is, except for the Set_Ship_Text code for the generic meshes. The generic meshes don't display any data at all! There is no change with proximity, nor from a science scan. Zilch. I'm wondering if the change to the sides is messing something up with the display, but it seems fishy. Here is the exact code for one pair of the events; I already tried flipping the event order, to no avail: <event name="Nebula 6 Player0" id_arme="8bd1bcf3-d9d6-428e-bf65-04c40513f04f" parent_id_arme="c86ff08b-9db6-42ed-8d8b-de78dd7d742f"> <if_exists player_slot="0" /> <if_variable name="Neb6" comparator="EQUALS" value="0.0" /> <if_inside_sphere player_slot="0" centerX="76753.0" centerY="0.0" centerZ="25412.0" radius="12000" /> <create type="genericMesh" x="82629.0" y="50.0" z="26958.0" name="BB" colorBlue="0.0" colorGreen="0.0" colorRed="1.0" meshFileName="dat\asteroid.dxs" textureFileName="dat\trans-blue.png" /> <create type="genericMesh" x="73196.0" y="50.0" z="23247.0" name="AA" colorBlue="0.0" colorGreen="0.0" colorRed="1.0" meshFileName="dat\asteroid.dxs" textureFileName="dat\trans-blue.png" /> <create type="nebulas" startX="76753.0" startY="0.0" startZ="25412.0" count="20" radius="5000" randomSeed="50" randomRange="5500" nebType="3" /> <set_variable name="Neb6" value="1.0" integer="yes" /> <destroy name="? " /> </event> <event name="Nebula 6Changes Player0" id_arme="aee8303f-5e27-48ce-8171-000b816a8097" parent_id_arme="c86ff08b-9db6-42ed-8d8b-de78dd7d742f"> <if_variable name="Neb6" comparator="EQUALS" value="1.0" /> <set_ship_text name="BB" desc="Scan inconclusive" scan_desc="Sensor Distortion Detected" /> <set_ship_text name="AA" desc="Scan inconclusive" scan_desc="Comms Disruption Detected" /> <set_variable name="Neb6" value="2.0" integer="yes" /> </event> Can anyone help? UPDATE: Never mind, apparently I didn't actually TEST when I flipped the two bits of code. That did the trick. Still testing the late-in-the-code functions...