Forum

> > Stranded II > General > I'd like to create a simple mod
Forums overviewStranded II overviewGeneral overviewLog in to reply

English I'd like to create a simple mod

4 replies
To the start Previous 1 Next To the start

old I'd like to create a simple mod

aimeewilbury
User Off Offline

Quote
I haven't done any scripting/modeling before, so maybe I could use a few pointers.

I'd like to create an "elephant" thing. It would be a safe animal, as in it doesn't attack. It doesn't run away either, it's kinda like the sheep. Not too fast, about the speed of a kiwi but not so bouncy. If you kill it (lots of bullets), you get a ton of meat and hides. But... you can tame it by throwing some food at it (or maybe branches) and ride it!

I figure I could take the "taming/riding" script from the raptor and do it that way.

Any suggestions? Could this work?

old Re: I'd like to create a simple mod

aimeewilbury
User Off Offline

Quote
Hmmm. Well, it doesn't have to be an elephant.

Perhaps there may be a way to make the raptor non-violent and slower?

Sorry, I'm pretty noobish.

Edit: Found this under Units.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
### Raptor
id=2
name=Raptor
group=animal
icon=gfx\raptor.bmp
model=gfx\raptor.b3d
scale=0.5
colxr=15
colyr=30
behaviour=raptor
health=110
speed=2.5
eyes=10
turnspeed=3.0
attackrange=65
damage=24
ani_idle1=4,8,0.02
ani_move=2,3,0.06
ani_die=8,11,0.05
ani_attack=12,16,0.07
sfx=raptor
rideoffset=5
acceleration=0.08
maxdepth=35
loot=9,3
loot=94,8
loot=95,4
loot=96,1
script=start
	on:use { 
		//Ride when tame!
		if (gotstate("self","tame")) {
			ride;
			freetimers "self";
			if ($tameness<15){
				timer "self",random(5000,10000),1,"shakeoff";
			}elseif ($tameness<20){
				timer "self",random(20000,30000),1,"shakeoff";
			}
		}	
	}

	on:shakeoff {
		if (riding()==current_id()){
			getoff;
			damage "unit", 1,random(5,10);
			msg "Ouch ...",3;
			msg "He dropped me!",3;
		}
	}

	on:ai_attack {
		if (random(8)==1){
			if (gotstate("unit",1,17)==0){
				if (random(5)<2){
					addstate "unit",1,1;	
				}else{
					addstate "unit",1,7;
				}
			}
		}
	}	
	
	on:kill {
		event "iskill_hunt","global";
	}
script=end

Also, after editing it, would it be able to spawn it in an already-running game using a cheat script?
edited 1×, last 13.06.09 12:39:28 am
To the start Previous 1 Next To the start
Log in to replyGeneral overviewStranded II overviewForums overview