English Scripting Questions

2,429 replies
Goto Page
To the start Previous 1 2 ... 57 58 59 ... 121 122 Next To the start
07.01.09 09:10:15 am
Up
DontKnowToScript
User
Offline Off
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
IMG:http://i3.photobucket.com/albums/y61/anarchyluvsme/userbar/2513.jpg
IMG:http://needasig.com/3sDx.png
IMG:http://needasig.com/VM5T0.png
IMG:http://needasig.com/H14W3.png
07.01.09 09:54:53 am
Up
Jimi Hendrix
User
Offline Off
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
07.01.09 10:17:04 am
Up
NP_Beta
COMMUNITY BANNED
Offline Off
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.
07.01.09 10:23:57 am
Up
Jimi Hendrix
User
Offline Off
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
07.01.09 10:45:53 am
Up
Tau
User
Offline Off
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.
Up
Jimi Hendrix
User
Offline Off
The reason , the gameplay will be way cooler, is because ,each item you pick up and have in you inventory will be useable.
edited 9×, last 07.01.09 08:49:55 pm
07.01.09 11:31:14 am
Up
Tau
User
Offline Off
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.
07.01.09 11:34:08 am
Up
Jimi Hendrix
User
Offline Off
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
07.01.09 11:43:58 am
Up
Tau
User
Offline Off
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.
07.01.09 11:48:27 am
Up
Jimi Hendrix
User
Offline Off
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
07.01.09 01:46:40 pm
Up
DontKnowToScript
User
Offline Off
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.
IMG:http://i3.photobucket.com/albums/y61/anarchyluvsme/userbar/2513.jpg
IMG:http://needasig.com/3sDx.png
IMG:http://needasig.com/VM5T0.png
IMG:http://needasig.com/H14W3.png
10.01.09 04:19:13 pm
Up
Hazy
User
Offline Off
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....
10.01.09 04:46:09 pm
Up
DontKnowToScript
User
Offline Off
on the global script write:
Code:
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.
IMG:http://i3.photobucket.com/albums/y61/anarchyluvsme/userbar/2513.jpg
IMG:http://needasig.com/3sDx.png
IMG:http://needasig.com/VM5T0.png
IMG:http://needasig.com/H14W3.png
10.01.09 05:20:59 pm
Up
Hazy
User
Offline Off
ok thanks
13.01.09 05:27:07 pm
Up
ESKARN
User
Offline Off
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
making THE CRASH adventure
14.01.09 10:42:04 am
Up
DontKnowToScript
User
Offline Off
if (count_inrange("state",5,50)+count_inrange("state",4,50)==1){
process "making spear"1000;
}
IMG:http://i3.photobucket.com/albums/y61/anarchyluvsme/userbar/2513.jpg
IMG:http://needasig.com/3sDx.png
IMG:http://needasig.com/VM5T0.png
IMG:http://needasig.com/H14W3.png
14.01.09 12:00:45 pm
Up
ESKARN
User
Offline Off
i tried that it dont work
making THE CRASH adventure
14.01.09 04:08:46 pm
Up
DontKnowToScript
User
Offline Off
oo...maybe:
Code:
1
2
3
4
5
if (count_inrange("state",5,50)+count_inrange("state",4,50)==1){ 
process "making spear"1000; 
}else{
skipevent;
}

?
IMG:http://i3.photobucket.com/albums/y61/anarchyluvsme/userbar/2513.jpg
IMG:http://needasig.com/3sDx.png
IMG:http://needasig.com/VM5T0.png
IMG:http://needasig.com/H14W3.png
16.01.09 04:41:12 am
Up
ESKARN
User
Offline Off
yep that worked thanks
making THE CRASH adventure
16.01.09 06:13:52 am
Up
Jimi Hendrix
User
Offline Off
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 2 ... 57 58 59 ... 121 122 Next To the start