Author Topic: A suggestion for a new rule  (Read 5188 times)

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
A suggestion for a new rule
« on: 2007-07-11, 04:35:34 AM »
I was thinking a random number generator, as a rule. (to make things different each time) You could have something like this

"do" random number generator, numbers between whatever. (users choice, one of those boxes you type into.)

"if" number generated = 1, load level 1

"if" number generated = 2, load level 2

etc

this could also be used to choose a random character, make it so when your touching an enemy sprite, a random amount of health between say, 20 and 30 could be taken away, possibly even a less predictable "computer player" (follow random paths, random enemies in certain spots, shoot random types of bullets, have random speeds)  or whatever else.  ;D  I'm not really sure if something like this is in SGDK 2 already, but I haven't seen it, so I suggested it.  ;)

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Re: A suggestion for a new rule
« Reply #1 on: 2007-07-11, 06:45:39 AM »
I believe that there already is a random number rule in the latest alpha.
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: A suggestion for a new rule
« Reply #2 on: 2007-07-12, 05:40:34 AM »
Yeah, you probably already have it if you've been keeping up on the alphas at all.  It's called GetRandomNumber, and can be used from a sprite rule or a plan rule.

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: A suggestion for a new rule
« Reply #3 on: 2007-07-12, 07:00:14 PM »
*checks version* Seems I have alpha 4, Getting alpha 5 now.  ;D
EDIT:Yes the rule is already implemented.  :) It seems I already had downloaded the alpha5 zip, just forgot to install it. lol
« Last Edit: 2007-07-12, 07:10:14 PM by Jam0864 »