English I need help with scripts

6 replies
Goto Page
To the start Previous 1 Next To the start
19.06.11 06:12:50 am
Up
Andrew890890
User
Offline Off
hi im not sure in this post is in the right area but im makingt a mod and for that i need scripts
so i need to find out how to make the shovel reduce the terrain hight by 3 eachtime so it makes somthing like a trench
Whats one thing MJ and Voledemort have in commen fav movie dude weres my nose
19.06.11 11:26:12 am
Up
Hurri04
Super User
Offline Off
you can use the command s2 cmd terrain for this.

unfortunately this is one of the commands which has no english description, so best use google translator and try to understand it, even if the result of the translation might not be 100% perfect.
also dont switch the command reference page to english language because there are quite a lot commands, as I have noticed, which dont show some or all parameters in the english description unlike in the german one in which they are shown.

btw: yes, this is the right place to post such questions
20.06.11 11:01:24 am
Up
Andrew890890
User
Offline Off
cool thanks for replying so your saying i can do this but it will be hard? ok
well thiere is another script i need how would i get the american soldiers to shoot germans
Whats one thing MJ and Voledemort have in commen fav movie dude weres my nose
20.06.11 11:48:43 am
Up
Hurri04
Super User
Offline Off
no, the shovel script isn't that hard to write, just write the s2 cmd terrain command into an on:attack2 event between the lines "script=start" and "script=end" at the definition of the shovel.

having units attack each other is pretty complicated and there already have been several attempts from good scripters to write a script which could do this but as far as I know all of them weren't working more or less.
22.06.11 09:54:42 am
Up
Andrew890890
User
Offline Off
thanks pitty about the shooting each other script
i think this mod will take a while so im going to see if anyone wants to help
Whats one thing MJ and Voledemort have in commen fav movie dude weres my nose
20.07.11 03:16:30 am
Up
RrR2010
User
Offline Off
I have a mod that I downloaded from the Internet that has the script that you want. You can modify it according to your taste.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
on:attack2 {
          $tmp1=random(1,50);
          if ($tmp1==25){
               terrain getx("self"), getz("self"), 2, -0.2;
               create "object",241,getx("self"),getz("self");
               process "Uncovering Coal Deposit",10000;
               event "iskill_mining","global";
               event "iskill_dig","global";
               find 4997;
               find 21,(random(5,10));
               jade 25;
          }else{
               terrain getx("self"), getz("self"), 2, -0.1;
               jade 25;
               process "Lowering Land",10000;
               speech "positive";
               event "iskill_dig","global";
               find 4997;
               find 21,(random(5,10));
          }
     }


Note: The ID 241 corresponds to a rare item mod. You can put another object in place of this.
     The ID 4997 is an item that represents a lot of land that was taken from the ground.

Good Luck
20.07.11 07:42:05 am
Up
Vectarrio
User
Offline Off
user RrR2010 has written:
I have a mod that I downloaded from the Internet that has the script that you want. You can modify it according to your taste.

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
on:attack2 {
          $tmp1=random(1,50);
          if ($tmp1==25){
               terrain getx("self"), getz("self"), 2, -0.2;
               create "object",241,getx("self"),getz("self");
               process "Uncovering Coal Deposit",10000;
               event "iskill_mining","global";
               event "iskill_dig","global";
               find 4997;
               find 21,(random(5,10));
               jade 25;
          }else{
               terrain getx("self"), getz("self"), 2, -0.1;
               jade 25;
               process "Lowering Land",10000;
               speech "positive";
               event "iskill_dig","global";
               find 4997;
               find 21,(random(5,10));
          }
     }


Note: The ID 241 corresponds to a rare item mod. You can put another object in place of this.
     The ID 4997 is an item that represents a lot of land that was taken from the ground.

Good Luck

That script is from Massive Mod, isn't it?
and don't forget, in the original stranded you don't have "mining" skill.
To the start Previous 1 Next To the start