Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Fowl

Registered:
Posts: 5
Reply with quote  #1 
I am trying to make Raptor 1 go to the bottom of the map and then return to the top and then again to the bottom. Later I would like to make it go back, if I can get the intention to execute. 

But raptor 1 will muck about for a bit, then go south along the map edge and then it will crash into the bottom of the map, and disappear. 

in start:
Create Raptor 1
Clear brain stack
make it go 180, Dir Throttle

Then when players dock at station 2, it should get a Point Throttle

First I tried with  condition, that when it hit a defined box, it would turn around. 

Then I tried making the condition change a variable and then let the variable trigger the turn around. 

I really can't get nothing to function. I COULD make it enitrely GM controlled, but I would like to keep my attention elsewhere....

Can anyone propose a fix?


...Fowl.... Artemis Fowl


 
Attached Files
zip miss_iss_bigmap.zip (6.54 KB, 5 views)


__________________
- Commander of the USS Hafnia
- Story developer and GM in Hafnia Artemis Group
- Customer Relations in Beyond Entertainment

leaola

Registered:
Posts: 268
Reply with quote  #2 
I would start with a test script with only the bear min.  just the raptor ds and u nothing else for us to read though.
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #3 
I will attempt to use my super powers to identify the problem.

(Not a joke. I'm experimenting with an Artemis 2.1 beta that gives me brain stack super powers!)

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
Newcommerin

Avatar / Picture

Registered:
Posts: 224
Reply with quote  #4 
I'll try to explain, what I think is the problem. I changed your script a little bit to get it work, so here are some explanations.

In "Set.fleet.speed" you always set the Raptor again and again and... I moved that to the "Start" event, so it happen just once.

You test if the Raptor1 is in the box and set new direction. And that again and again and ... cause you don't set a variable to just do it once. Here is my "Patrol Pattern" folder with my changes and my comments:

  <folder_arme name_arme="Patrol Pattern" id_arme="100b16f3-88db-41dd-b0e1-19727b595c04" expanded_arme="" />

  <event name_arme="Set.fleet.speed" id_arme="7f6ab0ac-1edf-4d06-ad14-ef457a1dba0b" parent_id_arme="100b16f3-88db-41dd-b0e1-19727b595c04" />
events moved to "Start" and deleted

  <event name_arme="rom.patrol1" id_arme="b4604f1e-d2eb-434c-a395-8420365a3e2a" parent_id_arme="100b16f3-88db-41dd-b0e1-19727b595c04">
    <if_docked name="Border 2" />
    <add_ai type="DIR_THROTTLE" value1="180.0" value2="10.0" name="Raptor1" />
  </event>
no change - but I didn't test it

  <event name_arme="rom.patrol1.returnvalue" id_arme="2dc2eb0d-fa5e-4766-a2ff-d20a19f19235" parent_id_arme="100b16f3-88db-41dd-b0e1-19727b595c04">
    <if_variable name="rom.ven" comparator="EQUALS" value="0.0" />
    <if_variable name="romulan.run.number" comparator="EQUALS" value="0.0" />
    <if_inside_box name="Raptor1" leastX="0.0" leastZ="80000.0" mostX="40000.0" mostZ="100000.0" />
    <set_variable name="romulan.run.number" value="1.0" />
  </event>
won't do it again until the "romulan.run.number" is "0" again

  <event name_arme="rom.patrol1.returnvalue2" id_arme="9c5d3a40-f09d-4704-863f-4d8c0cb380c2" parent_id_arme="100b16f3-88db-41dd-b0e1-19727b595c04">
    <if_variable name="rom.ven" comparator="EQUALS" value="0.0" />
    <if_variable name="romulan.run.number" comparator="EQUALS" value="0.0" />
    <if_inside_box name="Raptor1" leastX="0.0" leastZ="0.0" mostX="30000.0" mostZ="30000.0" />
    <set_variable name="romulan.run.number" value="2.0" />
  </event>
same as above

  <event name_arme="Return0orders" id_arme="1627d0b8-c179-4352-a203-c7d0adb5705f" parent_id_arme="100b16f3-88db-41dd-b0e1-19727b595c04">
    <if_variable name="Return0orders" comparator="EQUALS" value="0.0" />
    <if_variable name="romulan.run.number" comparator="EQUALS" value="1.0" />
    <set_variable name="Return0orders" value="1.0" />
    <clear_ai name="Raptor1" />
    <set_object_property property="angle" value="180.0" name="Raptor1" />
    <add_ai type="DIR_THROTTLE" value1="0.0" value2="20.0" name="Raptor1" />
  </event>
prevents from doing it again and again and ... will reset it in last event

  <event name_arme="Return180orders" id_arme="38dcae68-37f2-4fa1-b3e4-9e09f66b21d9" parent_id_arme="100b16f3-88db-41dd-b0e1-19727b595c04">
    <if_variable name="Return180orders" comparator="EQUALS" value="0.0" />
    <if_variable name="romulan.run.number" comparator="EQUALS" value="2.0" />
    <set_variable name="Return180orders" value="1.0" />
    <clear_ai name="Raptor1" />
    <set_object_property property="angle" value="180.0" name="Raptor1" />
    <add_ai type="DIR_THROTTLE" value1="180.0" value2="10.0" name="Raptor1" />
  </event>
same as above

  <event name_arme="romulan.run null" id_arme="fdbf9a0e-1927-4d7a-b611-a5657b9a6aab" parent_id_arme="100b16f3-88db-41dd-b0e1-19727b595c04">
    <if_variable name="rom.ven" comparator="EQUALS" value="0.0" />
    <if_outside_box name="Raptor1" leastX="0.0" leastZ="80000.0" mostX="40000.0" mostZ="100000.0" />
    <if_outside_box name="Raptor1" leastX="0.0" leastZ="0.0" mostX="30000.0" mostZ="30000.0" />
    <set_variable name="romulan.run.number" value="0.0" />
    <set_variable name="Return0orders" value="0.0" />
    <set_variable name="Return180orders" value="0.0" />
  </event>
completely new to reset variabels, while the ship is in no box


I don't know if I am not allowed to post xml directly. But hopefully it helps.

__________________
Sorry, English is not my native language, I am German.
(* I wish I would live in America, I wish I would... *)
Any mistakes you can find, you can keep and with the spelling mistakes you can cook you an alphabet soup.

My Artemis Homepage: https://star-ship-academy.jimdo.com/
Fowl

Registered:
Posts: 5
Reply with quote  #5 
i will look into this, thank you. 

I had this idea, it was because it does it all the time and not just once, which is why I made the rom.run.number


But I didn't execute it quite well...


I will see later if this fixxes it.  Thank you.



...Troels


__________________
- Commander of the USS Hafnia
- Story developer and GM in Hafnia Artemis Group
- Customer Relations in Beyond Entertainment
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.