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 218 19 20121 122 Nächste Zum Anfang

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Benji hat geschrieben
But if I use Blender or Wings3d and I translationed to *.B3D, it shows a info.

Unable to load thing.B3D.

What I went wrong?

(((PS: My first englisch question.)))

You can ask such a questions in here.
I'm apologizing to moderators and admins for doing their job

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
What is the script to get current daytime, resp. hour, please?

edit: I found out already
1× editiert, zuletzt 20.03.08 18:09:30

Admin/Mod Kommentar

Please do NOT make multiple posts in a row. its pure nonsense. use the edit function instead. /DC

alt Re: Scripting Questions

Gregg
User Off Offline

Zitieren
Not sure if this is the correct place for this. But anyway..

I'm trying to change the amount of damage a state does, e.g. I want poisons damage to, say 10 per hit.

Thanks
-Gregg

P.S. I can already change it within the game editor, so, I meant like with in the .sys files.

alt Re: Scripting Questions

DC
Admin Off Offline

Zitieren
use the command statevalue.
1
statevalue "class",id,"state",value;
for class "object","unit","item" or "info" and for id the id of the object, unit, item or info which has the state. for state you have to enter the id (without ") or the name (with ") of the state and for value you have to enter the damage which you want the state to cause

alt Re: Scripting Questions

Gregg
User Off Offline

Zitieren
Where do I put the statevalue command?
In the weapon e.g. poison arrow.

behavior= ammo:121 or w/e
statevalue "arrow",5,"intoxication",10;

Sorry, I couldn't find a tutorial on it, so I had to ask here.

-Gregg

alt Re: Scripting Questions

MrCowThing
User Off Offline

Zitieren
well in the code for the poison arrow it has this...
1
weaponstate=2

Does this set the unit thats hit with it to that state?

EDIT: I just looked, if you want to add a state to ammo just put the weaponstate thing in it, not in the script area though.

Edit2:
I have a question, is there a way to move the different elements on the hud around and add more things? I would like to create my own hud if it's possible.
2× editiert, zuletzt 23.03.08 15:47:33

alt Re: Scripting Questions

Nuklear
User Off Offline

Zitieren
Can't there be a better guide to scripting? Most of the ones I see are part german and they won't even translate correctly. I want to make stuff but it all fails because the guides fail.

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
If you mean tutorials, I can't imagine better. It was really great start for me. And I didn't have problems with understanding...

alt Re: Scripting Questions

Flying Lizard
User Off Offline

Zitieren
@MrCowThing
I don't really get your question, since there is no feature in S2 according to your question. maybe you're using the ext mod?

@Eskarn
try using s2 cmd freestored

@Nuklear
afaik, there are only those at the S2 homepage at the moment. Of course, starting with just those tutorials is a bit hard, but if you really don't understand something, you can ask questions in the forum.
Sadly, DC was to lazy to translate them, so far

alt Re: Scripting Questions

Nuklear
User Off Offline

Zitieren
Well I want to make a map or something where you are on an island and I wanted to make like a tremor or earthquake and thunder and stuff but couldn't figure it out

alt Re: Scripting Questions

MrCowThing
User Off Offline

Zitieren
HUD means Heads Up Display, It's all the stuff on the screen like the bars, and the current stuff you're holding.
Something like moving all of the bars to the center bottom instead on the top left.

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
I need animation to ne played with event timer not with preload.. Is it possible? If it is, how should I do this?

alt Re: Scripting Questions

lint35
User Off Offline

Zitieren
How do I make my own skill? here is my script:
1
2
3
4
on:kill {
		freetimers "self";
		event "iskill_Example","global";
	}


Where do I put it? I already know you put it with the unit in the units.inf but it dosn't work when I try it out?

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
You have to add new lines into game.inf.
You can just copy going skill (for example wood) and replace all "wood" with your skill
But please, don't forget to my question

alt Re: Scripting Questions

Flying Lizard
User Off Offline

Zitieren
it doesn't have to be in the game.inf, it can be anywhere
Probably you made a mistake somewhere, please give us the whole script.

@Hudajan
You can play the animation anytime you want, you just have to DEFINE it with preload.

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Flying Lizard hat geschrieben
it doesn't have to be in the game.inf, it can be anywhere
Probably you made a mistake somewhere, please give us the whole script.

@Hudajan
You can play the animation anytime you want, you just have to DEFINE it with preload.

Thanks.. but... What should I do exactly? What should I type into unit's script box?
1
2
3
on:timer {
animate???
}
you know... I don't know how does scripts animate and loadani works... Can you help...?
2× editiert, zuletzt 02.04.08 15:21:45

alt Re: Scripting Questions

lint35
User Off Offline

Zitieren
1
2
3
4
5
6
7
8
9
10
11
!1 Picture book reader
You can barely read.

!110 - Short story reader
You can read short stories but it takes a while.

!150 - Chapter book reader
You can read chapter  books kinda fast now.

!200 - Nerdy reader
You can read 1200 words per minute!

alt Re: Scripting Questions

HudaJan
Super User Off Offline

Zitieren
Name this file reading.inf and put it to sys/skillinfos
plus you should add there when is this skill increased(it isn't necessary, but it's better)
you know:
!1Reading
This skill increases whenever I read a word
or something like that
Zum Anfang Vorherige 1 218 19 20121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht