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 264 65 66121 122 Nächste Zum Anfang

alt Re: Scripting Questions

The Second
User Off Offline

Zitieren
I did what you said but it says only: SCRIPT ERROR: Script: Clobal Map Script Row:9 Col:16 ("debug" for details). So does it mean the error is here: (what I marked with "•")
1
loop ("count":o:,$x){

alt Re: Scripting Questions

Tau
User Off Offline

Zitieren
The Second, I solved your issue. I would like to create a new mod with this script, the SII climate mod. I put lots of work into that script, but nevertheless you'll get your script. If this was your idea, too, maybe we could work together on that mod? Whatever, here is the link.

FD God, I don't understand what you want. Please tell me your problem more precisely and I'll see what I can do.
1× editiert, zuletzt 03.05.09 16:49:58

alt Re: Scripting Questions

The Second
User Off Offline

Zitieren
Thanks again, nmG.
Yes, that was my idea. We can work together on that mod.
1× editiert, zuletzt 03.05.09 21:23:32

alt Re: Scripting Questions

DontKnowToScript
User Off Offline

Zitieren
i have a problem...
i written a script for a trader and the problem is:
i written dialogue "start","info",3;
and the problem is,it says something like:
page "start" is not defined,but in the info,its this:
page=start
title=rfun (trader in hebrew)
text=start
blablabla
text=end
buttons...

alt Re: Scripting Questions

killprogram
COMMUNITY BANNED Off Offline

Zitieren
I Have Several Questions:
How Do I Create New Infos?
How Do I Create New States? (Such As High, And Drunk, As Opposed To Just, fuddle?)
Can I Change The Level Of Intensity Of A State?(Bleed From A Scrape, As Opposed To A Severed Limb?)
How Do I Make Things Visible On The Screen, Which Is Not There?(You Can See A Lion Or A Raptor Walking Around, But You Cannot Attack, Or Use It. Also It Cannot Attack You, And There Is No Collision(You Can Walk Right Through It))
How Do I Use The unitpath command?
Can I Make My Own AI, Or Behaviours?
I Also Need Help With Using The "ani" Unit Animation code On My Own Models!


Thanks In Advance For All Who Answer!

alt Re: Scripting Questions

Sirnik
User Off Offline

Zitieren
2 NMG about modifying building (see prev page) (sorry about being late)
It doesnt work. Well, nevermind)

alt Re: Scripting Questions

jockmo42
User Off Offline

Zitieren
I'm trying to make a bottle fill with salt water when the player is around sea level. It keeps telling me it's expecting a "(" on "local $y;".

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
script=start
	on:use {
		if ( 

((count_behaviourinrange("object","fountain",50)+count_behaviourinrange("object","watersource",50))>0) or 

(inarea_freshwater("unit",1)==1) ){
			alteritem 1,38;
			msg "I filled the bottle",4;
			msg "with fresh water!",4;
			speech "positive";
		}elseif{
			local $y;
			$y=gety("unit",1);
				if ($y<1){
				alteritem 1,150;
}
		freevar $y,$ty;
		} else {
			msg "I have to be close",3;
			msg "to some water!",3;
			speech "negative";
		}
	}

Any idea what's going on?

alt How to?

dzeijs
User Off Offline

Zitieren
How to i can script new unit in gfx? Please help!

alt Re: Scripting Questions

Cheezbot
User Off Offline

Zitieren
2 questions:

1 How do I make it so signs show messages?

2 How do I make it so there's a native village and in say ten days a bunch of natives comes to my village which I created in the editor and attacks it?

alt Re: Scripting Questions

wad67
User Off Offline

Zitieren
Scripting for the signs is easy
Follow this example and copy it to the scripts in the sign or whatever in the editor an then hit F12 and test it out

on:use {msg "Place your text here"; }
and there is also this one
on:use {msgbox "Title Here";, "Place your text here"; }
And for the natives invading I realy couldent answer that one because i am not to good at scripting

alt Re: Scripting Questions

Vibhor
User Off Offline

Zitieren
I need a script by which 3 to 4 persons appear near
a building site when the building site is placed
Can anyone make that script

alt Re: Scripting Questions

soggydoggy
User Off Offline

Zitieren
Hi im new here, but i was woundering if someone can help me with a fireprotection script...

script = start
on: (build_finish
/ / debug ...
local $ this, $ id;
$ this currentid = ();
$ id = builtat ($ this);
statesize "object", $ id, 53.0;
freevar $ this, $ id;

setlocale "objectClass", $ id, 'state', 1;
if (gotstate ( "objectClass", $ id, "fire") == 1) (
free state "object", $ id, "fire";
addstate "object", $ id, "eternal fire";
state-value "object", $ id, "eternal fire", 0;
)
)
/ / Fire agencies with which state (fireplace script)
//...
script = end
Zum Anfang Vorherige 1 264 65 66121 122 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtStranded II-ÜbersichtForenübersicht