HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Creating itmes... ugg

12-24-2003, 09:24 PM#1
Hunter0000
this action

Code:
Item - Create Weapons[(Random integer number between 1 and 7)] at (Random point in (Playable map area))


for some reasons does absolutly NOTHING. "weapons" is a size 7 array that cotains 7 deiffernt item types.
12-24-2003, 09:27 PM#2
Fladian
At a quick glimp of it I can't see anything wrong, but shouldn't you show the 'Event' too?
12-24-2003, 09:28 PM#3
Hunter0000
lol the event is

Code:
Time - Every 10.00 seconds of game time


thats not the problem
12-24-2003, 09:31 PM#4
Fladian
Ah hehe... okay :D sorry :) But the problem COULD be the event. I know some people who forget the event and I am falling offtopic (again)

Um... personally I am not really into triggers and only know the basic ones but I think it is fine as it is. I can't see any mistakes at the moment. I take it that 'weapons' are considerd 'items' in your map?

Could it be that you just couldn't find the item? That it came between some trees or in water or something? It has a big possebilety.
If not then I'm afraid you will have to wait for higher help then me :)

Merry Christmas
-Dark Dra... wait it was Fladian
12-24-2003, 09:32 PM#5
Hunter0000
Ok nevermind, I reworded the way it randomises and it worked fine.
12-25-2003, 09:44 AM#6
Dead-Inside
Ah... The problem must have been that it wanted a variable in the array index, meaning you set the variable to Random number X and then use the integer variable for the index. You should 'always' do this with random numbers.

Regards
Dead-Inside
12-25-2003, 09:45 AM#7
Fladian
Is that so? Okay, I guess I learned something new now too :D

Merry Christmas
-Fladian