Corleone
New Member
- Reaction score
- 44
Corleone's "I need help" thread
Hello everyone,
I haven't worked in World Editor ( or played Warcraft 3 ) for several years now, but I decided to come back to it and work on a project I always wanted to do. Instead of re-learning how I did things in GUI, I decided to dive straight into JASS, so that I can make everything MUI and all that. Surprisingly enough, I'm finding it quite intuitive to work with JASS, now that I'm no longer really used to working with GUI. My project is thus coming along nicely.
Nevertheless, there is one major issue I am facing all the time. Whenever I want to declare a local variable I know I have to use the following format.
Now, this is all fine and dandy, but the problem I'm facing is that I just don't know which words I have to use for all the variable types: I know 'unit', 'integer', and some other basic types, but which word is used to create a local point variable? Or a local variable storing a text message? I tried using words like 'point' or 'string', but those gave me errors saying the type is a mismatch.
Therefore, I was wondering whether there is some kind of complete list containing all the variable types and what they are for. Having such a list would allow me to work more swiftly, since I wouldn't have to try and find variable types through guesswork.
Just so you know, I've searched the forum multiple times and have tried various searches through Google, but none of my efforts led to anything useful. I mostly got linked to topics where people ask what local variables are and which format to declare them in; this is not exactly helpful for me, I'm afraid. Nevertheless, it's quite possible that I've completely missed a relevant post, in which case I apologise for creating a new thread.
Hopefully you can help me.
Kind regards
Hello everyone,
I haven't worked in World Editor ( or played Warcraft 3 ) for several years now, but I decided to come back to it and work on a project I always wanted to do. Instead of re-learning how I did things in GUI, I decided to dive straight into JASS, so that I can make everything MUI and all that. Surprisingly enough, I'm finding it quite intuitive to work with JASS, now that I'm no longer really used to working with GUI. My project is thus coming along nicely.
Nevertheless, there is one major issue I am facing all the time. Whenever I want to declare a local variable I know I have to use the following format.
JASS:
local <Variable Type> <Variable Name>
Now, this is all fine and dandy, but the problem I'm facing is that I just don't know which words I have to use for all the variable types: I know 'unit', 'integer', and some other basic types, but which word is used to create a local point variable? Or a local variable storing a text message? I tried using words like 'point' or 'string', but those gave me errors saying the type is a mismatch.
Therefore, I was wondering whether there is some kind of complete list containing all the variable types and what they are for. Having such a list would allow me to work more swiftly, since I wouldn't have to try and find variable types through guesswork.
Just so you know, I've searched the forum multiple times and have tried various searches through Google, but none of my efforts led to anything useful. I mostly got linked to topics where people ask what local variables are and which format to declare them in; this is not exactly helpful for me, I'm afraid. Nevertheless, it's quite possible that I've completely missed a relevant post, in which case I apologise for creating a new thread.
Hopefully you can help me.
Kind regards