Can't understand scripting, help!


(Charming_Fox) #1

Ok this message is aimed at anyone that can script… i have a map, Karkow Armada… it’s a good map, its my first map, it’s almost finished but i cant work out scripting, seriously… i can’t find the patience, everyhting i try fails and im at the point of either scrapping the whole cluckking thing or paying someone to do it for me… so if anyone is interested they can relieve my pain and my damn (g_scripting cant find autospawn crap) if i knew scripting was this hard i would#ve never bothered…
seriously, a cheque will be in the post to anyone that sorts this stuff out because i’ve lost my rag and hate seeing the thing now.

here’s screenshots of the cursed travesty:

www.madin.plus.com/scrns/

This will be my last post on the subject and im very sorry if people are getting PO’ed with my noob ways but i’m losing hours of my life and also losing hair from radiant and notepad.

EDIT: Oringal thread title was a bit … dramatic! Changed to something more meaningful. (Sock)


(MadJack) #2

Looks good.

You need to give more informations. What exactly do you need help with? What have you done that doesn’t work?

Posting the .script parts that aren’t working would also help a lot to get some help from us.

Scripting can be tough at first but once you get used to it, it’s pretty simple. Unfortunately, it takes a bit of time and the learning curve is on the steep side :slight_smile:

Hangon tight, we’ll give you a hand.


(Ifurita) #3

Nah, no one is getting PO’d and if you think you’re the only one who has had this much headache with scripting – you’re wrong. We’ve all been there. As MadJack said, post the errors you are getting and we’ll walk you though each problem, one by one, as best as we can.


(Charming_Fox) #4

thanks for your reply, at the moment i’m trying to take it one step at a time… so i would like to place a forward spawn point in the map, alread set to axis, capturable by allies/axis and once the door is blown it needs to be stuck on allied. I got a prefab for this but when i put it in my map and compile i end up with an error when i try to load it
g_scripting: setautospawn, couldn’t find target

cant get into the map at all, and my script is just the one from the prefab and i havent even added the dynamitable door yet… seriously im failing on the first hurdle good and proper

*** big edit ***
I just have to say thanks again… can’t believe how much help you guys can give out on these forums, it’s inspiring…


(MadJack) #5

To me it doesn’t look like you’re read a scripting tutorial, have you?

Maybe finding a forward spawn tutorial would help you better than having a general tut…

As for the spawn, you need some entities attached to it to make it work. You need the axis spawns and the allies spawn. Which one is used for spawning is set in the script (and the spawn’s spawnflags). First by setting it Axis (in your case) then set it to Allies when captured. Some parts of the forward spawn system is done automatically like changing who will be spawning. All you have to do is tell ET that it has changed when a team captured it.

Hoping that will get you started.

EDIT: I realized that it might seem a bit cryptic but I’m against spoonfeeding and I think people learn by applying and searching and testing. You hinted that you made some attemps and I’m willing to help you out but not make it for you. :slight_smile: I hope you can understand that.


(Ifurita) #6

To fix the first problem - just getting into the map. Here’s what the setautospawn section looks like in my script:


setautospawn "Allied CP"	1 //Uses name from description field of team_WOLF_objective
setautospawn "West Axis Spawn"	0

Notice there are 2 variables to the line. Naturally, the 1 or 0 tells you for which side you are setting the autospawn. The part in " " comes from the description key in the team_wolf_obj (TWO) you want as the autospawn point.

When the game cannot find a target, then you either 1) do not have a description key that matches your script, or 2) you use capital letters in your key name (e.g., Description vs description).

Try those two suggestions first


(Charming_Fox) #7

whoops, thought splash damage had deleted the post, looks like they didnt like my subject name :slight_smile: so i went and made a new topic that wasnt titled so bluntly


(sock) #8

Yeah your thread title was silly and non descriptive to your current problem. As you have started a new thread, this one is closed.

Sock