Forum

> > Stranded II > Scripts > Scripting Questions
Forums overviewStranded II overview Scripts overviewLog in to reply

English Scripting Questions

2,429 replies
Page
To the start Previous 1 287 88 89121 122 Next To the start

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
The house model is too small to make buildings in it
you better go off with loadmap or just get that idea off your mind

old Re: Scripting Questions

Flametail
User Off Offline

Quote
Vibhor has written
The house model is too small to make buildings in it
you better go off with loadmap or just get that idea off your mind


actually, I managed to build a torch in the hut once.......but it burned the hut to the ground so.....


anyway, who's making these models we need, and how are they coming along?



(another sidenote: hmm, chairs might go with the desk im soon going to enable the player to make . And really Vibhor, being able to build things inside the house is second to me beng able to shut myself in there away from the raptors

old Re: Scripting Questions

Psytechnic
User Off Offline

Quote
Vectar666 has written
Hmm... How about chairs?


I actually have a pretty nice model of a chair if you want it. I made it a long time ago so I don't have the 3ds or max files, but the b3d file can be converted etc and relies on the wood1.jpg and planks.jpg textures in S2.

EDIT: I also have what I call a Grand Hall. Which is really a hut, scaled up with a flat roof and a ladder to climb on it with. I use it as cover and it has space in it to build a desk, table, hammock, a few kiwi huts and still plant a crop of grain.

You can see it in this screenshot:
http://img714.imageshack.us/img714/4520/woodenstairs3.jpg

old Re: Scripting Questions

Flametail
User Off Offline

Quote
Psytechnic has written
Vectar666 has written
Hmm... How about chairs?


I actually have a pretty nice model of a chair if you want it. I made it a long time ago so I don't have the 3ds or max files, but the b3d file can be converted etc and relies on the wood1.jpg and planks.jpg textures in S2.

EDIT: I also have what I call a Grand Hall. Which is really a hut, scaled up with a flat roof and a ladder to climb on it with. I use it as cover and it has space in it to build a desk, table, hammock, a few kiwi huts and still plant a crop of grain.

You can see it in this screenshot:
http://img714.imageshack.us/img714/4520/woodenstairs3.jpg


im not sure I have the expertise to make the chair work, but the grand hall looks good. Where can I get the files for it?

Even though I'd like to try the grand hall, that doesnt mean I will stop working with the house. I would still like to see that finished.

old Re: Scripting Questions

Psytechnic
User Off Offline

Quote
Well, whatever you want to do with them, I've posted them in my "Free Stranded II Models" thread. The link is in my signature.

old Re: Scripting Questions

Flametail
User Off Offline

Quote
ok, I got the files, but seeing as the grand hall is as bad off as the chair(missing files) i am clueless as to what to do with it. Also, how can I add the bomb to the game, and set it to make a big explosion X seconds after the fuse is lit?

ok all, those working with me on the house, how's it coming?

old Re: Scripting Questions

Psytechnic
User Off Offline

Quote
Flametail has written
ok, I got the files, but seeing as the grand hall is as bad off as the chair(missing files) i am clueless as to what to do with it.

Remember, both models are dependant on wood01.jpg an planks.jpg from the orinal game being in the same folder as the models. Then, you have to reference the models in the inf files.

What's missing from it?

Flametail has written
Also, how can I add the bomb to the game, and set it to make a big explosion X seconds after the fuse is lit?


This was ripped straight off Builder's Black Powder Keg in his Massive mod:
on:kill {
     explosion getx("self"),gety("self"),getz("self"), $radius, $damage;
     terrain getx("self"), getz("self"), 2, -0.7;
     play "explode1.wav";
     particle getx("self"),gety("self"),getz("self"), 46, 500;
     particle getx("self"),gety("self"),getz("self"), 20, $radius;
     particle getx("self"),gety("self"),getz("self"), 45, $radius;          
}

Modify that to work on a timer.

old Re: Scripting Questions

Flametail
User Off Offline

Quote
Psytechnic has written
Flametail has written
ok, I got the files, but seeing as the grand hall is as bad off as the chair(missing files) i am clueless as to what to do with it.

Remember, both models are dependant on wood01.jpg an planks.jpg from the orinal game being in the same folder as the models. Then, you have to reference the models in the inf files.

What's missing from it?


Actually, nothing now that I look more closely at the files. At first I thought I needed the 3ds and max files.


Quote
This was ripped straight off Builder's Black Powder Keg in his Massive mod:
on:kill {
explosion getx("self"),gety("self"),getz("self"), $radius, $damage;
terrain getx("self"), getz("self"), 2, -0.7;
play "explode1.wav";
particle getx("self"),gety("self"),getz("self"), 46, 500;
particle getx("self"),gety("self"),getz("self"), 20, $radius;
particle getx("self"),gety("self"),getz("self"), 45, $radius;
}

Modify that to work on a timer.


You are looking at a scripting n00b. I havent the faintest idea how to modify that to work on a timer or modify it to control the explosion radius or damage. And will this work for a light it on fire and 20 seconds later it explodes situation? it says on kill, guess that mean i have to set the HP real low

old Re: Scripting Questions

bezmolvie
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
if (gotstate ("self","fire"); ){
timer "self","XSECONDS";
}
on:timer { 
kill "self";
explosion getx("self"),gety("self"),getz("self"), $radius, $damage; 
terrain getx("self"), getz("self"), 2, -0.7; 
play "explode1.wav"; 
particle getx("self"),gety("self"),getz("self"), 46, 500; 
particle getx("self"),gety("self"),getz("self"), 20, $radius; 
particle getx("self"),gety("self"),getz("self"), 45, $radius; 
}

old Re: Scripting Questions

Flametail
User Off Offline

Quote
Bloodshot has written
1
2
3
4
5
6
7
8
9
10
11
12
if (gotstate ("self","fire"); ){
timer "self","XSECONDS";
}
on:timer { 
kill "self";
explosion getx("self"),gety("self"),getz("self"), $radius, $damage; 
terrain getx("self"), getz("self"), 2, -0.7; 
play "explode1.wav"; 
particle getx("self"),gety("self"),getz("self"), 46, 500; 
particle getx("self"),gety("self"),getz("self"), 20, $radius; 
particle getx("self"),gety("self"),getz("self"), 45, $radius; 
}


Thanks! I'll add the bomb later tonight, after Superbowl. just a question: do I replace $radius and $damage with numbers of my choosing? Like, replace $damage with 50 and thats how many HP it will subtract from objects withing radius?

old Re: Scripting Questions

Vibhor
User Off Offline

Quote
Okay i have a question which is not quite tricky but may not be possible
i have this type of thing
on:start
$whatever=random(0,100)
1=loadmap xyz
2=nothin
3=nothing
and so on
but i want it like that it is executed every second
like a loop
that if it finishes 1 event it gets repeated
in layman's term i wanna loop this sh*t

old Re: Scripting Questions

Flametail
User Off Offline

Quote
Bloodshot has written
1
2
3
4
5
6
7
8
9
10
11
12
if (gotstate ("self","fire"); ){
timer "self","XSECONDS";
}
on:timer { 
kill "self";
explosion getx("self"),gety("self"),getz("self"), $radius, $damage; 
terrain getx("self"), getz("self"), 2, -0.7; 
play "explode1.wav"; 
particle getx("self"),gety("self"),getz("self"), 46, 500; 
particle getx("self"),gety("self"),getz("self"), 20, $radius; 
particle getx("self"),gety("self"),getz("self"), 45, $radius; 
}
I tried it everyway i could think of, but it doesnt work.

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
on:use{
timer "self",seconds,1,"XPLODE";
}
and change on:timer to on:XPLODE

This will make explosion on use of bomb

old Re: Scripting Questions

Flametail
User Off Offline

Quote
Vectar666 has written
on:use{
timer "self",seconds,1,"XPLODE";
}
and change on:timer to on:XPLODE

This will make explosion on use of bomb


Thanks! this one actually works. now, how can I put an addstate script in there so it burns? I have tried but I cany figure out how to use the addstate command.

this isnt the way to do it, correct?
addstate, "object", "eternalfire", self;

the console says that there is no such object.

EDIT: figured out the addstate command

EDITAGAIN:
Vectar666 has written
quote from pm
Flametail has written
How are the models for the house coming along?


I didn't do it yet. Sorry, i have much work even without it. My problem is - that I say that i will help. I say this to anybody, but you can ask somebody, he will say that i didnt help.


so, since he didnt do it.....Anyone else want to do the house models?
edited 3×, last 08.02.10 09:02:09 pm

old Re: Scripting Questions

Vectarrio
User Off Offline

Quote
Hmm... You quoted PM. Do you think that it is violation of Privacy policy?(or i dont know how it is named)No, I am not asking any moderator to mark it, but keep that in mind

old Re: Scripting Questions

Flametail
User Off Offline

Quote
Vectar666 has written
Hmm... You quoted PM. Do you think that it is violation of Privacy policy?(or i dont know how it is named)No, I am not asking any moderator to mark it, but keep that in mind


Hmm, sorry. I've seen it done before on this forum so I thought it was OK. either way, how else did you expect them to believe that you werent going to do it?

old Re: Scripting Questions

bezmolvie
User Off Offline

Quote
1
2
3
4
5
6
7
8
on:start{ timer "global",1000,"Maploadloop";}
on:Maploadloop{
$tmp1=rnd (1,100);
if ($tmp1==1){
freevars $tmp1;
freetimers;
loadmap ................;
}else{freevars $tmp1}
The timer will loop automatically.
To the start Previous 1 287 88 89121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview