djones6 Posted April 12, 2012 Share Posted April 12, 2012 Hey guys, just wondering how you would go about making an activator that spawns enemies at the press of the button every time, im looking forward to creating my on personal arena without the use of console commands... Would love some advice as to how i should go about creating this and by the way i have little scripting experience, so bear with me lol. Thanks Link to comment Share on other sites More sharing options...
rjhelms84 Posted April 12, 2012 Share Posted April 12, 2012 My advice would be to teach yourself a bit more about scripting. This site is a good reference: http://geck.bethsoft.com So you can check out all the different functions that you can use, etc. scn Scriptname ;;;;the 'scn' command assigns the ID to the script, 'Scriptname'. Begin onactivate ;;;the 'begin' command states when this script should run. XmarkerREF.placeatme Enemy 1 ;;;you can place an xmarker and give it a unique ID, so this can be your spawn point. Then you use the placeatme function, which is self-explanatory, then state your object you want to place, using it's ID in the Geck "enemy", then you decide how many you want "1". END ;;;end of Begin block (not end of script, as you can have multiple begin blocks in the same script.) So if you attach this script to your activator, then every time you activate it, you will spawn your enemy at the xmarker. But to save yourself a lot of roadblocks, try out some tutorials on scripting, before trying to attempt anything too complicated. It is really fun once you get the hang of it. Link to comment Share on other sites More sharing options...
djones6 Posted April 13, 2012 Author Share Posted April 13, 2012 but one problem, my script looks like this.... scn 00SPAWNSCRIPTBegin onactivate00markerspawnerREF.placeatme 00SpawningFiend 3end and the 00markerspawnerref is the reference editor ID of the x marker i placed in the cell, while the 00SpawningFiend is my enemies i want to appear and i want three of them to appear... Am i doing this correctly because when i try to save and exit it says "Do you want to save this script? Current = " so i know there is something wrong.... Please correct me i have scripted a couple of times and am starting to get the just of it. Link to comment Share on other sites More sharing options...
rjhelms84 Posted April 13, 2012 Share Posted April 13, 2012 It may be to do with the zeros at the start of your ID names. I've never used zeros myself, so I don't know this for certain, but some have said that ID names can't start with zeros. So rename them, and use "aa" or something like that for a prefix, for everything, and see if that works. Yes, if the script keeps asking you if you want to save, then the script has an error and so won't compile. Have you heard of the Geck Powerup mod? It adds warning messages to scripting, so you can see which line has the problem, etc. Link to comment Share on other sites More sharing options...
djones6 Posted April 13, 2012 Author Share Posted April 13, 2012 i did that but it keeps giving me the same exact warning thing... Can you write a script for me possibly? that would be amazing if you could. Link to comment Share on other sites More sharing options...
rjhelms84 Posted April 13, 2012 Share Posted April 13, 2012 do you want to send me your esp, so I can take a look? you can email it me as an attachment if you like to [email protected] Link to comment Share on other sites More sharing options...
djones6 Posted April 13, 2012 Author Share Posted April 13, 2012 Just sent it to you via email Link to comment Share on other sites More sharing options...
Jeux Posted April 13, 2012 Share Posted April 13, 2012 Dunno if this is the problem, but it happened to me once before...avoid naming your references with numbers. BAD idea. The syntax in the GECK's scripting doesn't seem to allow it, or read it. It will just spit you an error every time. Rename your references to something beginning with a letter. Link to comment Share on other sites More sharing options...
djones6 Posted April 13, 2012 Author Share Posted April 13, 2012 yeah i tried that and it still spit me an error... Link to comment Share on other sites More sharing options...
rotarydanimal Posted April 13, 2012 Share Posted April 13, 2012 (edited) I am pretty new to scripting. but I would assume that the "3" at the end of 00markerspawnerREF.placeatme 00SpawningFiend 3 would make it not work. I believe that only works on static objects. I think if you want 3 fiends to spawn you need 3 xmarker headings. try saving it without the 3. Edited April 13, 2012 by rotarydanimal Link to comment Share on other sites More sharing options...
Recommended Posts