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 218 19 20121 122 Next To the start

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Benji has written
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

old Re: Scripting Questions

HudaJan
Super User Off Offline

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

edit: I found out already
edited 1×, last 20.03.08 06:09:30 pm

Admin/mod comment

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

old Re: Scripting Questions

Gregg
User Off Offline

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

old Re: Scripting Questions

DC
Admin Off Offline

Quote
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

old Re: Scripting Questions

Gregg
User Off Offline

Quote
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

old Re: Scripting Questions

MrCowThing
User Off Offline

Quote
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.
edited 2×, last 23.03.08 03:47:33 pm

old Re: Scripting Questions

Nuklear
User Off Offline

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

old Re: Scripting Questions

HudaJan
Super User Off Offline

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

old Re: Scripting Questions

Flying Lizard
User Off Offline

Quote
@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

old Re: Scripting Questions

Nuklear
User Off Offline

Quote
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

old Re: Scripting Questions

MrCowThing
User Off Offline

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

old Re: Scripting Questions

HudaJan
Super User Off Offline

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

old Re: Scripting Questions

lint35
User Off Offline

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

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
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

old Re: Scripting Questions

Flying Lizard
User Off Offline

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

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
Flying Lizard has written
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...?
edited 2×, last 02.04.08 03:21:45 pm

old Re: Scripting Questions

lint35
User Off Offline

Quote
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!

old Re: Scripting Questions

HudaJan
Super User Off Offline

Quote
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
To the start Previous 1 218 19 20121 122 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview