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 223 24 25121 122 Nächste Zum Anfang

alt Re: Scripting Questions

Gast

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

alt Help if you could

lint35
User Off Offline

Zitieren
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

alt Re: Scripting Questions

Gast

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

alt Re: Scripting Questions

DC
Admin Off Offline

Zitieren
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("")!

alt Re: Scripting Questions

Gast

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

alt Boink.

GreyMario
User Off Offline

Zitieren
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.
1× editiert, zuletzt 17.05.08 06:40:14

alt Re: Scripting Questions

Gast

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

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
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

alt Re: Scripting Questions

Gregg
User Off Offline

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

alt (different subject)

Gregg
User Off Offline

Zitieren
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!
1× editiert, zuletzt 17.05.08 16:28:06

alt Re: Scripting Questions

AdidasOFC1
BANNED Off Offline

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

alt Re: Scripting Questions

GreyMario
User Off Offline

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

alt Re: Scripting Questions

MrCowThing
User Off Offline

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

alt Re: Scripting Questions

GreyMario
User Off Offline

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

alt Re: Scripting Questions

MrCowThing
User Off Offline

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

alt Re: Scripting Questions

Gregg
User Off Offline

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

alt Re: Scripting Questions

GreyMario
User Off Offline

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

alt Re: Scripting Questions

Gregg
User Off Offline

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

alt Re: Scripting Questions

MrCowThing
User Off Offline

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