Home   Help Search Login Register  

Author Topic: counting  (Read 400 times)

0 Members and 1 Guest are viewing this topic.

illmatic

  • Guest
counting
« on: 25 Apr 2004, 21:06:09 »
_num = 5
_count = 0

#script
;my script goes here
hint "1"
~1
_count = _count + 1
?(_count == _num):goto "stop"
exit

#stop

hint "error, you can only activate this 5 times!"

--------
ok problem is....... i dont want the script to exit, nor do i want it to reppeat from #script, i need to sorta make it stop dead and wait until the user requests the script again, then it can go to #script and run down again. any ideas???



Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:counting
« Reply #1 on: 25 Apr 2004, 21:30:30 »
_num = 5
_count = 0

#script
;my script goes here
hint "1"
~1
_count = _count + 1
?(_count == _num):goto "stop"
boolean = false
@ boolean

#stop

hint "error, you can only activate this 5 times!"


When the player turns the boolean to true it will continue untill the does it again.

:beat: *Gets Shot* :beat:

illmatic

  • Guest
Re:counting
« Reply #2 on: 25 Apr 2004, 21:50:41 »
thx m8