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 223 24 25121 122 Next To the start

old Re: Scripting Questions

Guest

Quote
If I set a timer to go off every 2880 in game minutes, would it work? If I did my math right that'd be 2 in game days.

old Help if you could

lint35
User Off Offline

Quote
I need help on a script on the
     on:impact {
          explosion getx(""),gety(""),getz(""),$radius,$damage;
     }
script=end

When I throw it it dosnt do anything, please help

old Re: Scripting Questions

Guest

Quote
lint35 has written
I need help on a script on the
     on:impact {
          explosion getx(""),gety(""),getz(""),$radius,$damage;
     }
script=end

When I throw it it dosnt do anything, please help

Don't you need to set a radius and damage?

old Re: Scripting Questions

DC
Admin Off Offline

Quote
why do you enter an empty parameter for getx,y,z? this can't work. either enter getx("class",id) or getx("self") but not just getx("")!

old Re: Scripting Questions

Guest

Quote
Yeah, call me a dummy if you want.

However, exactly what is meant by the spawn control's "All X Days"? Can that just be left 0 to execute once every day or do I need to set it to 1?

old Boink.

GreyMario
User Off Offline

Quote
So I decided to register, given that I need more help.

Which is the preferred method to do a trader-type NPC, > msgbox or > dialogue? And how do I do it?


EDIT: Okay, got that figured out too. Whee. Now to finish the rest of the island.
edited 1×, last 17.05.08 06:40:14 am

old Re: Scripting Questions

Guest

Quote
I stopped asking questions once I figured out that it's faster to go through this list and take any of them that look like they could work and try them till I find the one I want.

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
If someone needs individual help with scripting, send me PM and we can figure something out... But I'm not omnipotent :-D, Flying lizard and DC are

old Re: Scripting Questions

Gregg
User Off Offline

Quote
" But I'm not omnipotent , Flying lizard and DC are "

^^LMAO!

I didn't know where to put this so I figured here is as good as any. What is the frost bite state, what causes it, and why is it there.
Thanks!

-Gregg

P.S. You can cure it by using a fire...

old (different subject)

Gregg
User Off Offline

Quote
I am trying to make a mod with an inventory item called hands:
It is basically your hands. You can use them to cure poisoning by sticking your fingers down your throat and throwing up. Anyway I was wanting to know the command on how to make something "un-drop-able", as you can't drop your hands.

Thanks in advance.

I give up!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
### Hands
id=123
name=Hands
group=stuff
icon=gfx\hands.bmp
scale=1
mat=flesh
weight=0
health=10000000000000
info=My two hands. I can use them to stick my fingers down my throat. It might cure poisoning...
healthchange=0
script=start
	on:use {
		$tmp=random(1,4);
		if ($tmp==1){ msg "You stick your fingers down your throat, to no avail."; }
		if ($tmp==2){ msg "You stick your fingers in your mouth, but you are to scared to do it."; }
		if ($tmp==3){ msg "You stick your fingers down your throat, but only to cough and spit out some saliva."; }
		if ($tmp==4){ msg "You stick your fingers down your throat and vomit spectacularly."; }
	}
	on:eat {
		speech "negative";
		msg "I'm not a self cannibalilising moron!!",3;
	}
script=end

Where would I put this:
1
2
3
4
process "Vomiting",1000;
eat -30,-30,-30,15;
freestate "unit",1,"intoxication";
play "vomit.wav";

I feel like such a n00b!
edited 1×, last 17.05.08 04:28:06 pm

old Re: Scripting Questions

AdidasOFC1
BANNED Off Offline

Quote
undroppable:
1
on:drop { skipevent; }
this code should work

just put the other stuff in the brackets where you vomit
1
2
3
4
5
6
7
if ($tmp==4){
    msg "You stick your fingers down your throat and vomit spectacularly.";
    process "Vomiting",1000;
    eat -30,-30,-30,15;
    freestate "unit",1,"intoxication";
    play "vomit.wav"; 
}

old Re: Scripting Questions

GreyMario
User Off Offline

Quote
Xane has written
I stopped asking questions once I figured out that it's faster to go through this list and take any of them that look like they could work and try them till I find the one I want.


See, the problem with that list is that absolutely none of the entries have descriptions on what they do or where/how to use them. The list is even incomplete: where's sell and buy?

old Re: Scripting Questions

MrCowThing
User Off Offline

Quote
The German version of that list has descriptions, you'll just have to use Google translator, and try to make sense of it all.

old Re: Scripting Questions

GreyMario
User Off Offline

Quote
Sounds like a task for a bored person to undertake: Google Translate it, make sense of it, put english "translation" somewhere, make other users happy.

I'm not that bored, though. I'm only bored enough to make Stranded II maps.

old Re: Scripting Questions

MrCowThing
User Off Offline

Quote
Click
Thats the link to the Google translated version, some words didn't translate, and some sentences don't sound right in English. But it's better than nothing.

old Re: Scripting Questions

Gregg
User Off Offline

Quote
That list makes absoultly no sense to me what so ever...
Good try though.

So that means I have a question !

How do I make an item change health without changing it's number.
E.g. (not real code, just and example)
Item name: Pebble
on:use it will take away 5 health, but make you less hungry.
And I want to keep the number of pebbles the same.

Thanks for any help.

P.S. If you don't understand I'll explain it again.

old Re: Scripting Questions

GreyMario
User Off Offline

Quote
> eat energy, hunger, thirst, fatigue takes away one of your pebbles items, but why would you want to be able to infinitely eat your pebbles?

old Re: Scripting Questions

Gregg
User Off Offline

Quote
Ahh. The pebbles are an example, the real reason is a secret ;). I need to be able to use it infinitly. Eat produces an unwanted eat sound as well.

I have been thinking what about using eat and then using the create item command to create a new "pebble". Would that work?

old Re: Scripting Questions

MrCowThing
User Off Offline

Quote
I'm trying to make an item that when it's in your hands it will execute commands every second, but when you put it away it will stop. This is what I have so far

1
2
3
4
5
6
script=start
	on:inhand
		{timer "item",1,1000,0;}
	on:timer
		{msg "tick";}
script=end

But once I put it away the timer is still going.
To the start Previous 1 223 24 25121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview