Misc. scripting questions now
Misc. scripting questions now
Here it is:
#include "zcommon.acs"
script 1 open
{
Takeactorinventory(0, fist);
takeactorinventory(0, pistol);
}
"fist: identifier has not been declared."
What's up with that?
#include "zcommon.acs"
script 1 open
{
Takeactorinventory(0, fist);
takeactorinventory(0, pistol);
}
"fist: identifier has not been declared."
What's up with that?
Last edited by Krispy on Fri Aug 17, 2012 7:37 pm, edited 1 time in total.
RE: Very simple script not compiling
Isn't open supposed to be in capitals and the T supposed to be lower case? I don't know if ACS is caps sensitive or not but that might be interfering with the code. If not then try replacing open with enter.
Last edited by Springy on Thu Aug 16, 2012 10:41 pm, edited 1 time in total.
[quote=Zero X Diamond ]Careful, you don't want to push that Pikachu dude to action. Who knows what unspeakable things lie in store for you? Maybe he'll... send you another nasty tweet![/quote]
[quote=Sonter_Man]Autism runs amok on zandaemon[/quote]
[quote=Sonter_Man]Autism runs amok on zandaemon[/quote]
RE: Very simple script not compiling
Use ClearInventory(); instead
Spoiler: here (Open)
Doesn't matter, the error was that he forget to put the fist and pistol in "" and didn't specified the amount (maybe it's optional)Springy wrote: Isn't open supposed to be in capitals and the T supposed to be lower case? I don't know if ACS is caps sensitive or not but that might be interfering with the code. If not then try replacing open with enter.
Last edited by Neewbie on Thu Aug 16, 2012 10:45 pm, edited 1 time in total.
-
Watermelon
- Zandrone
- Posts: 1244
- Joined: Thu Jun 28, 2012 9:07 pm
- Location: Rwanda
RE: Very simple script not compiling
OP forgot the quotation marks
"Fist"
"Pistol"
"Fist"
"Pistol"
RE: Very simple script not compiling
Oh okay then I guess I learnt something in the process, thanks.Neewbie wrote: Use ClearInventory(); instead
Spoiler: here (Open)Doesn't matter, the error was that he forget to put the fist and pistol in "" and didn't specified the amount (maybe it's optional)Springy wrote: Isn't open supposed to be in capitals and the T supposed to be lower case? I don't know if ACS is caps sensitive or not but that might be interfering with the code. If not then try replacing open with enter.
[quote=Zero X Diamond ]Careful, you don't want to push that Pikachu dude to action. Who knows what unspeakable things lie in store for you? Maybe he'll... send you another nasty tweet![/quote]
[quote=Sonter_Man]Autism runs amok on zandaemon[/quote]
[quote=Sonter_Man]Autism runs amok on zandaemon[/quote]
-
Catastrophe
- Retired Staff / Community Team Member
- Posts: 2569
- Joined: Sat Jun 02, 2012 2:44 am
RE: Very simple script not compiling
you gotta do "fist", not just fist.
yes include the marks
yes include the marks
Last edited by Catastrophe on Thu Aug 16, 2012 10:48 pm, edited 1 time in total.
RE: Very simple script not compiling
Thanks. Yeah, those quotation marks. I just restarted scripting.
RE: Very simple script not compiling
Just a hint, the player doesn't exist during the OPEN script.
OPEN happens when the map starts up, so the player hasn't yet entered the game. ENTER is what you want, which is what happens when the player ENTERs the map.
OPEN happens when the map starts up, so the player hasn't yet entered the game. ENTER is what you want, which is what happens when the player ENTERs the map.
RE: Very simple script not compiling
Well, it works, so I must be dreaming.
-
Ijon Tichy
- Frequent Poster Miles card holder
- Posts: 901
- Joined: Mon Jun 04, 2012 5:07 am
RE: Very simple script not compiling
It'll work in single-player (in single-player, the player does exist, and for some reason is the OPEN script activator), but not in multiplayer (where the world is the script activator, and the players don't necessarily exist). Use ENTER instead.
Last edited by Ijon Tichy on Fri Aug 17, 2012 7:00 pm, edited 1 time in total.
RE: Misc. editing questions now
Alright alright I did it- And now for another question: I want to restart the level without killing the player using an acs script. How would this be done?
Last edited by Krispy on Sat Aug 18, 2012 5:15 pm, edited 1 time in total.
RE: Misc. scripting questions now
Nevermind, I just need to kill the player. what script would this be? I searched and came up empty.