Members | Sign In
All Forums > Mission Scripting
avatar

Need help with mission script language

posted Mar 30, 2012 20:34:56 by Hissatsu
Greetings!

While doing my map editor, i stumbled upon some tags i dont understand. Help me help you :) Tell me what they do and my editor will support them :)

Create tags:

1) What is the min/max values for properties:

* systemDamageXXX
* shieldBandStrengthX

Misc questions:

1) What is and what isnt case-sensitive?
* Are attribute names case sensitive (PointX vs pointX)?
* Are element names case sensitive (set_Variable vs set_variable)?
* Are text values case sensitive (counthoming vs countHoming)?

PS: Thanks Mike for continious help
[Last edited Apr 29, 2012 11:44:58]
page   1
14 replies
avatar
Mike_Substelny said Apr 11, 2012 16:24:04
I can help you with 2 off the top of my head. The startAngle and endAngle are used for creating unnamed objects (nebulae, mines) in an arc.

Check out the mission script "Havoc in the Hamak Sector." It starts with a gigantic nebula that's 1/4 of a circle. The center is the upper left corner of the sector (x=100000, z=0). The startAngle=90 and the endAngle=180 sweeping clockwise from the upper edge to the left edge.

I hope this helps. I can answer your other question, but not without consulting documentation.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Hissatsu said Apr 12, 2012 08:02:06
Yeah, i just figured the angle too, in Module_3_bases it is used to make a "protective mine arc". Silly me not noticing it earlier... Still, thanks for answering! Now i can finally implement that in my editor.

...still need help with "hulltype" of the named objects though... and with hulltype/hullrace of genericMeshes, what do those mean actually?
[Last edited Apr 12, 2012 09:06:44]
avatar
Hissatsu said Apr 13, 2012 17:31:45
Also, need help with Color... i updated the original post
avatar
Mike_Substelny said Apr 18, 2012 20:17:32
I haven't used hulltype and hull race for generics, but I assume they are text fields that Science will see. That is, you might create a generic mesh with hullrace="Romulan" and hulltype="plasma torpedo."
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Hissatsu said Apr 23, 2012 12:15:56
Thanks! Added new questions in the OP
avatar
Mike_Substelny said Apr 23, 2012 15:23:01
I think color with a small c is correct. A generic object will be marked on Long Range Scan and the colorRed colorGreen colorBlue combination controls the color of the marker.

The Notacon team worked carefully with this to create a generic object that showed up on LRS the same color as an asteroid (though unfortunately not the same size). Look at their mission "Party Crashers" on my website to see generic objects in which the three color combination is definitely working.

You might consider adding something that lets the players click on the color they want on a color grid rather than selecting three numbers.

I assume that "willAcceptCommsOrders" has been deprecated to the Brain Stack, but maybe not. It used to be that setting it to 1 meant a neutral ship would say "Sorry, Artemis, we will not accept your orders. Have a nice day." I assume that with the Brain Stack you can set a ship to say that only if it sees something more important to do. That is, it will refuse your orders if attacking enemies is a higher priority and there is an enemy in range, otherwise it will accept.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Mike_Substelny said Apr 23, 2012 15:25:22
Invisible to main screen only works for elites (Skaraans). At least it used to work.

My guess is that eliteAbilityState is a bit that allows any ship to have elite abilities. It probably needs to be set to 1 for elite abilities to work.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Hissatsu said Apr 23, 2012 16:26:13
Strange, i just made a hullID 5001 (skaraan) invisible to main screen and it didnt, but at the same time bits for invis to tactical and invis to science worked. Maybe its broken now? I will now thoroughly test color and Color and try to see what is the eliteAbilityState (At least see what its equal to)

PS: Of course i'll add color selection via picker, its on the list. I also plan to add seting coordinates for stuff like spheres, rectangles or points via space map. But right now you already can set generic mesh color via picker in space map mode. And i made this thinking that people would use space map to change objects, since its easier and more natural that way.
[Last edited Apr 23, 2012 17:18:04]
avatar
Hissatsu said Apr 23, 2012 17:16:52
Yes, indeed Color is confirmed NOT to work and color is confirmed to work.

eliteAbilityState is 0 by default and setting it to 1 does nothing. I tried to set it to 1. I tried to set it to 1 and then 0 and then 1 etc each second. I tested it on enemy (id 2000 & id 5002) that had all elite abilities or just cloak ability and it didnt make it go cloaked or use any other ability. I tried setting ai type as well and it didnt help. This eliteAbilityState parameter seems to do absolutely nothing.


[Last edited Apr 23, 2012 18:23:39]
avatar
Hissatsu said Apr 27, 2012 18:40:13
Also need help with set_relative_position
avatar
Mike_Substelny said Apr 27, 2012 20:48:26
I use set_relative_position all the time. What's the problem?

It's a little confusing that that set_relative_position works in degrees while add_to_object_property (angle) is in radians.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Hissatsu said Apr 28, 2012 04:52:59
Problem is, you use radians there:

<!-- If something happened to Warsaw bring it back -->
<set_relative_position name1="Artemis" name2="Warsaw" angle="3.14" distance="900"/>

That confuses me.
avatar
Mike_Substelny said Apr 28, 2012 21:04:56
I may have screwed up. I'm revising "Hamak" this weekend and I'll check.
"Damn the torpedoes! Four bells, Captain Drayton!"

(Likely actual words of Admiral David Farragut, USN, at the battle of Mobile Bay. Four bells was the signal for the engine room to make full steam ahead).
avatar
Hissatsu said Apr 29, 2012 11:44:47
Ah, i see, so it is indeed in degrees then. Thanks!
Login below to reply: