Forum

> > Stranded II > Scripts > Scripting Questions
ForenübersichtStranded II-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Scripting Questions

2.429 Antworten
Seite
Zum Anfang Vorherige 1 287 88 89121 122 Nächste Zum Anfang

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
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

alt Re: Scripting Questions

Flametail
User Off Offline

Zitieren
Vibhor hat geschrieben
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

alt Re: Scripting Questions

Psytechnic
User Off Offline

Zitieren
Vectar666 hat geschrieben
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

alt Re: Scripting Questions

Flametail
User Off Offline

Zitieren
Psytechnic hat geschrieben
Vectar666 hat geschrieben
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.

alt Re: Scripting Questions

Psytechnic
User Off Offline

Zitieren
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.

alt Re: Scripting Questions

Flametail
User Off Offline

Zitieren
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?

alt Re: Scripting Questions

Psytechnic
User Off Offline

Zitieren
Flametail hat geschrieben
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 hat geschrieben
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.

alt Re: Scripting Questions

Flametail
User Off Offline

Zitieren
Psytechnic hat geschrieben
Flametail hat geschrieben
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.


Zitat
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

alt Re: Scripting Questions

bezmolvie
User Off Offline

Zitieren
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; 
}

alt Re: Scripting Questions

Flametail
User Off Offline

Zitieren
Bloodshot hat geschrieben
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?

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
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

alt Re: Scripting Questions

Flametail
User Off Offline

Zitieren
Bloodshot hat geschrieben
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.

alt Re: Scripting Questions

Vectarrio
User Off Offline

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

This will make explosion on use of bomb

alt Re: Scripting Questions

Flametail
User Off Offline

Zitieren
Vectar666 hat geschrieben
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 hat geschrieben
quote from pm
Flametail hat geschrieben
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?
3× editiert, zuletzt 08.02.10 21:02:09

alt Re: Scripting Questions

Vectarrio
User Off Offline

Zitieren
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

alt Re: Scripting Questions

Flametail
User Off Offline

Zitieren
Vectar666 hat geschrieben
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?

alt Re: Scripting Questions

bezmolvie
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 287 88 89121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht