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 257 58 59121 122 Next To the start

old Re: Scripting Questions

DontKnowToScript
User Off Offline

Quote
ill try statecolor... i just forgot it
and jimi hendrix,how did you created the pirate ship?
since i really want to know if youre using a free animating program... please.no statecolor dosent work.
i checked,statecolor "self",4,0,0,255; but dosent work

old Blue Flame

Jimi Hendrix
User Off Offline

Quote
THE ANSWER TO CHANGING THE FLAME COLOUR IS in.Mods/Stranded 2/sprites/

flames0_a.Open it with Gimp and make it blue
edited 7×, last 07.01.09 08:52:04 pm

old Re: Scripting Questions

NP_Beta
COMMUNITY BANNED Off Offline

Quote
the most important script ever...sure. its so important. we cant live without this one

@flying lizard:
another evidence that you should not answer when its too late

dtts:
i think this isnt possible with scripting. like jimi said, you must change the colour in the files.

old spf357

Jimi Hendrix
User Off Offline

Quote
it is the most Important ever of mine tri it , My script makes it so you can use any thing you pick up and,That one thing ,you Use,to build .Not just some concoction Or some shit get so many branches,My Script is real tim building
edited 3×, last 07.01.09 08:50:42 pm

old Re: Scripting Questions

Tau
User Off Offline

Quote
And what way will your scripts have effect on the gameplay? Because if I have built the most awsomest hut out of stones and branchs, that doesn't mean it's a good idea to sleep in it, does it? So to make your script useful, lots of additional scripting is required. It ain't that easy.
Although, it's a great idea. And you get a cookie from me.
cookie
But if you want to release a mod, you should build in scripts that make your (awsome) script useful.
Just a hint. Building a useless hut, even if it's very beautiful, isn't fun.
I hope you'll heed my advice.

old Re: Scripting Questions

Tau
User Off Offline

Quote
I don't want to "dissreapect" your scripts, I just want to remember you that your scripts must have effects. The fire is a great idea, as your mod is, but your scripts must be useful. Because it would be sad if you release this mod, but the buildings have no effect. I just don't want to see a mod with a great idea built in, when this idea isn't useful.It makes me sad. It's the same when an engineer builds a machine based on a great idea, but it has no purpose. I don't want to flame, just give advice. I don't really understand the purpose of your script. I built a hut, but what to do with it? If I can't sleep in it, it's useless. So you need scripts detecting "Oh, the player has built a hut, so sleeping here is good for the player". If you have done this, great, if not, heed my advice.

I just want to help you, nothing else.

Oh and I understand what you're speaking about, and it is a good idea, if you make a script detecting the buildings and adding the effects to them, e.g. a better sleep without loss of health and less adddition of hunger/thirst.

old nmG

Jimi Hendrix
User Off Offline

Quote
All my script does is allow you to build a hut in real time and it also turns objects into items so you can store them in you inventory,but I take your point and I want to make this simulation game awsome.ANd do not worry Buildings will have effects such as,Shelter Fire wood and youll have toi reaper it to
after days wood will rot.I understand what you are saying the next step is to make it so,If you have a shelter built then all these rocks will become a shelter in game,I am sure I will work this out by tonight my friend.So it has a reason to build.And I think to the better sleep,You might add that "states Healing to the script somewhere.And I just thought bringing real time picking up rocks as an exapmle to the the game and useing that as a weapon as weel so you just add "damage=15 when you drop it on something it will sqaush it and such,this makes the game way cooler.
edited 1×, last 07.01.09 11:45:29 am

old Re: Scripting Questions

Tau
User Off Offline

Quote
Good. Then I am looking forward to downloading your (probably) great mod :). I have to say, I'm always angry that a campfire needs so many branches, when I could as well just throw in a branch shortly before the fire is ceasing. If your mod solves this, I am happy.

old For camp fire

Jimi Hendrix
User Off Offline

Quote
You can probbally just set a time on each branch for like ,time then after that timje free self,I will do this and make it last longer,and make the time of day last longer as well,its not hard to do.


Screenshots of 3d fish models in game

http://img249.imageshack.us/my.php?image=screen06ju4.jpg

http://img249.imageshack.us/my.php?image=screen09qn8.jpg

http://img133.imageshack.us/my.php?image=screen07xo2.jpg
edited 1×, last 07.01.09 09:53:44 pm

old Re: Scripting Questions

DontKnowToScript
User Off Offline

Quote
maybe,you can make when a fire starts a timer for it will,like after a day will cease the fire and you have to get branches and relight it.
example:
on:addstate {
if (state==4){
timer "self",miliseconds for shut down (choose),1,"ceasefire";
}elseif (state==5){
timer "self",miliseconds for shut down (choose),1,"ceasefire";
}
}
on:ceasefire {
freestate "self",4;
freestate "self",5;
}

and just make the adding branches and relighting scripts.

old Re: Scripting Questions

Hazy
User Off Offline

Quote
im currently makin a map on the editor, its sort of an island with little resources and you have to survive for 5 days

anyway, how would i get the map to "finish" after 5 days?
thx....

old Re: Scripting Questions

DontKnowToScript
User Off Offline

Quote
on the global script write:
1
2
3
4
5
6
7
8
9
10
on:start {
$daysremaining=5;
}
on:changeday {
$daysremaining--;
if ($daysremaining==0){
msgwin "you won!",4;
quit;
}
}
then,a vairable which gets to 0 is ending the game.each day the variable amount is detucted by 1,when reaching to 0,a message "win" and return to main menu.

old Re: Scripting Questions

ESKARN
User Off Offline

Quote
how do i make an item need fire to be made

eg
say the standard spear you need stone and a branch but you also need a camp fire

old Re: Scripting Questions

DontKnowToScript
User Off Offline

Quote
oo...maybe:
1
2
3
4
5
if (count_inrange("state",5,50)+count_inrange("state",4,50)==1){ 
process "making spear"1000; 
}else{
skipevent;
}
?

old Fire Burns Wood You Throw on

Jimi Hendrix
User Off Offline

Quote
I made it so you can cut down a tree and chop up the wood and burn it when it lands inrange of Fire,cause I seen Master Of The Woods Mod Trailer and damn it looks awsome so I thought Id tri do it ,and Depending on the size of the wood thrown into the fire depends how long it burns for,Kindling I made Last 50 seconds and Bigger Fire wood Lasts longer depending on the size,Long Burning wood lasts 100000 milliseconds ,but the bigger wood needs to be inrange of more flames so they wont light without enough small fast burning wood around,and when it burns out it frees itelf,and creates item charcole item in its place.And because that cool script I made you can collect Logs and stack them and chop them to half log then Quarter Log then Firewood then Kindling.and You can Build Things with the wood by throwing it,and I made quite a few more models of the wood as well..Oh Yeah nmG I made it so When building a shelter out of items,If your in range of enough it becomes a Shelter,and you get a really good sleep.Here is some screen shots

http://img296.imageshack.us/img296/821/screen01zr9.jpg
http://img405.imageshack.us/img405/6291/screen02fq8.jpg
http://img73.imageshack.us/img73/283/screen03rm3.jpg
http://img296.imageshack.us/img296/8890/screen04mw3.jpg







Heres a script for wood that turns into charcole


### Chopped Wood
id=1798
name=Burn Wood
group=material
icon=gfx\trunk.bmp
model=gfx\log14.b3d
behaviour=throw
scale=1
mat=wood
damage=10
speed=5
drag=1
rate=700
weight=2500
info=a log
healthchange=0
script=start






     on:create {
                local $myid,$myx,$myz;
$myid=currentid();
$myx=getx("self");
$myz=getz("self");
if ((count_inrange("state",4,50)+count_inrange("state",5,50))>1){

addstate "self",5;
timer "self",300000,1,"Burning";


}
}

on:Burning {









local $myid,$myx,$myz;
create "item",4990,($myx),($myz);
free "item",$myid;
freetimers "self";

free "self";


}
}
script=end
edited 7×, last 17.01.09 07:19:25 am
To the start Previous 1 257 58 59121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview