Jump to content

One Little script problem


JcHARP

Recommended Posts

I have a script that does not have errors which I would love to test however, when it asks me to save I save but it will not exit out of the script editor. The only way I can exit the script making notepad is by when it asks me to save say no but it does not save at all. Thanks again.
Link to comment
Share on other sites

I am not trying to be mean but if you are a troll and not being genuine then please stop posting nonsense, but if you are genuine then that also does not work as I said nothing in the editor will let me save/exit unless when it prompts me to save I say no.
Link to comment
Share on other sites

Try open notepad, or. whatever simple editor you like to use and save it in there for the moment.

.I guess because of the time that is passed..you already closed/reopend CS....

That probably didn't solve it..

So... try opening a blank script (new) , preferably with a new name, paste your script inside

(get rid of the old name, of course) and see if it will save then.

Link to comment
Share on other sites

I am not trying to be mean but if you are a troll and not being genuine then please stop posting nonsense, but if you are genuine then that also does not work as I said nothing in the editor will let me save/exit unless when it prompts me to save I say no.

 

Uh, yes, you are trying to be mean :thumbsup:

 

I said "use the red x" because I thought you were editing the script in the CS in which case there actually... um... should be a red "x." try editing your script in there if you aren't already.

Link to comment
Share on other sites

I am not trying to be mean but if you are a troll and not being genuine then please stop posting nonsense, but if you are genuine then that also does not work as I said nothing in the editor will let me save/exit unless when it prompts me to save I say no.

 

Uh, yes, you are trying to be mean :thumbsup:

 

I said "use the red x" because I thought you were editing the script in the CS in which case there actually... um... should be a red "x." try editing your script in there if you aren't already.

 

I guess its a matter of opinion there, however making a new script then repasteing it seems not to work ethier but here is the script i am trying to make successful.

 

its a modified version of the tut from tescs wiki and i stops working after i add anything else after elseif.

 

SCRIPT

 

ScriptName 001QuestScript

 

Short DoOnce1

 

Begin Gamemode

 

If (DoOnce1 == 0)

AddTopic Message001

set DoOnce1 to 1

 

ElseIf

 

if GetItemCount 001deed == 1

addtopic topic003

player.additem 001deed -1

 

EndIf

End

Link to comment
Share on other sites

that is logical, because that only works with else

 

elseif needs something behind it :)....

Else, is everything else..and doesn't need any block behind it.

 

elseif if used to simplify scripts, like instead of:

if Player.GetItemCount 001deed == 0

endif

if Player.GetItemCount 001deed == 1

endif

 

You only need:

if Player.GetItemCount 001deed == 0

elseif Player.GetItemCount 001deed == 1

endif

 

What has to be done to let your script working is either: changing the elseif into else

or place DoOnce1 == 1 behind it the elseif.

Next to that.. there is a dropdown somewhere in the top of the screen (script editor)

set it to Quest.. Now the script runs as if on a object (says 'Object' now)

If it stays on object it will check, if placed on a object, if that actor has that item, not the player!..

When you change it into a questscript. use Player.GetItemCount to track things on the player...

 

If you don't have assigned it in the quest yet, do so..

 

I'm not saying how it actually should look....Usually people use Stages as blocks as well :). (performance)

Link to comment
Share on other sites

Ok lets see if this works ill edit my post to update you guys. Again thanks for the help :D

 

-Edit-

 

You guys are so awesome i tried the

 

<else <command>

<blah blah>

<blah blah>

endif

 

works i appreciate it guys.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...