Scripting Problems

Post » Fri Jan 28, 2011 3:53 am

Hi people,

I'm not new to TES4 Construction set, but I am very new toscripting in TES4. It isn't like morrowind at all.
So I've been poking around to see how it works for my first mod with new scripts, but when I tried to make a script for a spell, it wouldn't save and it came up with the message: "Syntax Error. Invalid block type in 'begin' command."
Here is the offending part of the script:

begin OnScriptEffectStart
if Choosing == 0
set Choosing to -1
endif
end

Please help me, I wish I didn't have to bother others with my problems but I've ran out of options.
Also I have been trying to make a script which will kill the 9 minions of a boss when he dies in his human form and transforms into his true form. I need help putting a script that will do these two things. I know the commands "boss2"refmoveto"boss1"ref, kill, disable are invloved but my mind has gone in complete shut down.

In advance thankyou, and sorry if I seem to be asking alot.
User avatar
Deon Knight
 
Posts: 3363
Joined: Thu Sep 13, 2007 1:44 am

Post » Thu Jan 27, 2011 2:46 pm

Hi people,

I'm not new to TES4 Construction set, but I am very new toscripting in TES4. It isn't like morrowind at all.
So I've been poking around to see how it works for my first mod with new scripts, but when I tried to make a script for a spell, it wouldn't save and it came up with the message: "Syntax Error. Invalid block type in 'begin' command."
Here is the offending part of the script:

begin OnScriptEffectStart
if Choosing == 0
set Choosing to -1
endif
end

Please help me, I wish I didn't have to bother others with my problems but I've ran out of options.
Also I have been trying to make a script which will kill the 9 minions of a boss when he dies in his human form and transforms into his true form. I need help putting a script that will do these two things. I know the commands "boss2"refmoveto"boss1"ref, kill, disable are invloved but my mind has gone in complete shut down.

In advance thankyou, and sorry if I seem to be asking alot.

It's "ScriptEffectStart", get rid of the "On".

The easy way to do the second thing, assuming you have a script attached to the boss already to do the transformation:
Make a global variable "MyBossTransformed" or something. In the boss's script:
scn whateverBossScrbegin gamemode....stuff....transform boss    Set MyBossTransformed to 1....other stuff?end


Attach a script to the minions:
scn whateverMinionScrbegin gamemode  if getDead == 0    if MyBossTransformed      kill    endif  endifend

User avatar
Clea Jamerson
 
Posts: 3376
Joined: Tue Jun 20, 2006 3:23 pm

Post » Thu Jan 27, 2011 7:04 pm

1st prob: Thankyou very much, how silly of me :facepalm:.

2nd prob: Thanks for the minion script. I'm trying to develop the transformation script and I think my brain is booting up again, if I need help I will post again. Untill then, thanks again.
User avatar
willow
 
Posts: 3414
Joined: Wed Jul 26, 2006 9:43 pm


Return to IV - Oblivion