Okay, the problem is that, I am using NewGen.
I opened the attached test map posted by J4L. I saved (Ctrl+S) and the compiler gave me error.
So all code given was un-touched. Exactly the same map posted by J4L.
EDIT: Fixed. It looks like its the problem with my JNGP..
Okay, I tried to code this myself. (Perhaps the first time I am coding myself, without help). Review this for me!
This is a function to check whether a number is prime or not.
Definition of Prime number: A number whose factors are 1 and itself
Numbers less than or equal to 1 are not prime...
YES! I got it at last! I re made the triggers. I have three triggers now, for easy editing and so on.
TRIGGER ONE [Global Declaration]
scope global initializer init
globals
string STRING
integer RANDOM_INTEGER
string array RANDOM_STRING[2]
endglobals
private function...
You can use the default included ships in the object editor. You can create more ships by using Ctrl+Shift+N. If you want, you can download icons and models for individual different ships at warcraft modding sites.
I am still stuck. I checked my triggers, compiled correctly. When I type the correct string, the trigger does not execute my actions! Anyone help me check my script! Please! I know I am very close to getting it.
TRIGGER ONE [PW]
scope pw initializer onInit
globals
string STRING...
Not link, but in two separate triggers. Trigger one is for unit enters region and create the strings and show quest. And to enable trigger two.
Trigger two is the player types the string.
So do I create the global variables in trigger one?
And excess in trigger two?
If so, how?
And is...
Okay. The code
scope Something initializer onInit
globals
string STRING
string array RANDOM_STRING[2] //chance the 2 for how much variable will be
integer RANDOM_INTEGER
endglobals
private function Actions takes nothing returns nothing
//------ALL MY CODE HERE...
So is there anyway I can set the variable before it initializes the function?:)
I compiled the file, with one problem.
Invalid Scope name.
How do I resolve that?