Forum

> > Stranded II > Scripts > Stranded II Enhanced + (read last posts)
Forums overviewStranded II overview Scripts overviewLog in to reply

English Stranded II Enhanced + (read last posts)

28 replies
Page
To the start Previous 1 2 Next To the start

old Re: Stranded II Enhanced + (read last posts)

JasJack67
Super User Off Offline

Quote
You could make your standard stranded maps LOAD with a global variable saying $flash==1 so all stranded maps have this variable when stranded loads.

then use if $flash == 0
1
2
3
4
5
6
7
8
9
on:attack1 {
    if($flash==0){
        skipevent;
        if(lives("unit",1)==1){
            play "dog_bark1.wav";
            flash 0,255,0,0.8,1.3;
        }
    }
}

Anytime a new variable is created in script, that did not exist, it is always set to 0.. So when your map loads the variable does not exist...thus it will equal 0 when requested through script.

You would just need to add $flash==1; to the stranded maps global variables i would think. So when a stranded map loads $flash = 1 and when your map loads $flash does not exist yet. When the script runs the variable $flash will be created at that moment and = 0.

p.s. Pretty cool screens bro I like to see content, it shows your trying.
edited 7×, last 26.04.19 10:13:47 am

old Re: Stranded II Enhanced + (read last posts)

Hurri04
Super User Off Offline

Quote
user ModJuicer has written
I just want to alter a single map, not the entire game.[/code]

place the script user JasJack67 posted into an info which you placed in the map.

also copy the rest of the player script from the units.inf into this info (minus the original on:attack1 command!).

in the global script container of the map use s2 cmd addscript to replace the default player behavior with the script which is in the info.

old Re: Stranded II Enhanced + (read last posts)

ModJuicer
Super User Off Offline

Quote
user Hurri04: Cool, I didn't know you could to that. I'll give it a try, as it would also help with a lot of other scripting. I'll try it, and if it doesn't work, i'll just try user JasJack67's method.

p.s.
Spoiler >


Ok now. I'm trying to get everything ready as the release is in 3 days. I'll try to keep you posted

OK. Past the 3 day mark. I will try to get it uploaded ASAP. Hopefully this week


EDIT: Ok, I was in a hurry, but I got the mod uploaded! (at least, the regular, everything on it version)

Enjoy

Stranded II Enhanced +
edited 12×, last 09.05.19 11:32:33 pm

old Re: Stranded II Enhanced + (read last posts)

ModJuicer
Super User Off Offline

Quote
I don't have time to create a new thread. I was pressed for time already, and barely had enough time to upload the mod. (And even then just one version).
p.s. the maps are somewhat incomplete. I will upload them when they are finished.

I changed the title.

SII Enhanced + Download link

and also, you should download it and try it out. I put days worth of work into it.
To the start Previous 1 2 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview