Problem with ending commands...

Started by Bennett, Sat 21/01/2006 14:27:15

Previous topic - Next topic

Bennett

While looking through the help docs for something or other I noticed there was a function to stop running commands from within a function. Later on I'd thought I would use this in my game, it could be very useful when using conditionals. After searching for it again I couldn't find it at all, I've spent 2 days searching for something like this but just can't find it.

Basically it's the start of the game and my character has a headache, I don't want him to access any other doors apart from the one leading into the chemist so he can get some aspirin and enter he details like his name and things. I've set variable "Headache" to 1 and when this variable equals one, any door you try to go in to replys "You should get some aspriin blah blah". In the same area of hotspot interaction after the conditional is the enter room changeroom function but I can't end the commands after the conditional, it just enters the room anyway! How can I stop this.

Sorry If it's a bit confusing, i'm not very good at explaining things!

Elliott Hird


Bennett

That's only a script function though, would I have to write the entire conditional as a script?

Here's an example of the interaction editor;

Interact Hotspot
Ã,  Ã,  Ã,  Ã, ? Conditional - If a variable is set to a cartain value (Headache, 1)
Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Ã,  Game - Display a message (10)
Ã,  Ã,  Ã,  Ã,  Game - Go to room at specific Co-ordinates (*I don't want this bit to run after the conditional)

Any help?

strazer

Isn't there a "Stop running more commands" (or something interaction editor command you can put in there?

Bennett

That's where I saw it. I was so obsessed with trying to find the complicated answer I just never noticed it (that and for the past couple of days I've been quite drunk).

Thanks for pointing that out, I feel like a total idiot!!!

SMF spam blocked by CleanTalk