• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Starting creating maps only with JASS

Status
Not open for further replies.
Level 2
Joined
Jun 5, 2006
Messages
18
I would like to start creating maps only with jass...i've used other languages before jass so i didn't find it too difficult to learn...

however, i've encountered the problem of multi-istancing of a spell...so i studied how to use a handle var (and it's not so hard...i don't understand why blizzard doesn't implement a thing like it in gui...)

....unfortunately i've learnt also that we have a limit of 250 handles (or around it)...250 for each unit/timer/ecc or 250 in general (and i think is a little bit low if is general...)

...however, i've downloaded jasscrafter (WOAH!it's great :D)...i've heared about "caster system" and now i noticed that this program auto implement "caster system.j"...i discovered that this file SHOULD sobstitute KaTTana's handle vars, btw i'm not sure of it...

can anyone explain to me how to avoid the 250 handle limit?

...another thing, when i need to refer to a specific unit that i've placed before on the map, what should i do?how to get the editor ID (as in the gui)?

other suggestions?I'm a little bit afraid of leaving the GUI...expecially because i'm going to delete tons of triggers on my biggest project :p


in the end another little thing:

i'm using WORLD EDITOR UNLIMITED (because it allows me to use tons of functions that i loves and also make the unit editing/ spell editing a lot easier, does anyone know if this special editor has already implemented something like handle vars (and if possibile can he explain to me how to use?))



Thanks for reading guys ;)


EDIT: I've learnt how to use attach variables....however i don't understand the difference between tables and, at least, i'm not sure if WE UNLIMITED can conflict with jass scripts....
 
Level 6
Joined
Jun 30, 2006
Messages
230
when i need to refer to a specific unit that i've placed before on the map, what should i do?
Not sure what you mean. If I want to get a unit's ID, I just select it using the GUI, convert to custom script and grab it, then use it how I want in JASS. I assume you know where Convert to Custom Text is found. Also, this would create a variable for the unit:
JASS:
local unit HeartOfTheAlliance = gg_unit_haro_0041
HeartOfTheAlliance is the name of the variable, gg_unit_haro_0041 is the unit on the map. When you are through with the unit, declare this:
JASS:
set HeartOfTheAlliance = null
It's just clean-up.
 
Level 2
Joined
Jun 5, 2006
Messages
18
Not sure what you mean. If I want to get a unit's ID, I just select it using the GUI, convert to custom script and grab it, then use it how I want in JASS. I assume you know where Convert to Custom Text is found. Also, this would create a variable for the unit:
JASS:
local unit HeartOfTheAlliance = gg_unit_haro_0041
HeartOfTheAlliance is the name of the variable, gg_unit_haro_0041 is the unit on the map. When you are through with the unit, declare this:
JASS:
set HeartOfTheAlliance = null
It's just clean-up.

thanks for the answer, it's the thing that i wanted to hear ;)

btw yes i know how to convert in custom text :p
 
Level 6
Joined
Jun 30, 2006
Messages
230
I was trying to edit my post to add this:
"You might already know all this, but hey, tips never hurt! I can't help you with the rest of it. I avoid Handle Vars like the plague. It's my Last Resort, so I can't help you there. The problem is that JASS wasn't meant to do what Handle Vars does, so sometimes you have problems. H2I seems to work fine, but I2H... shudder I've had too many problems with it.

I don't use World Editor Unlimited. Never liked it. I've heard some guys say not to use it and gave some valid reason, but as I don't use WEU, I don't know. The only change in the world editor I use is jassnewgenpack3d."
but my internet was being stupid.
 
Level 2
Joined
Jun 5, 2006
Messages
18
I was trying to edit my post to add this:
"You might already know all this, but hey, tips never hurt! I can't help you with the rest of it. I avoid Handle Vars like the plague. It's my Last Resort, so I can't help you there. The problem is that JASS wasn't meant to do what Handle Vars does, so sometimes you have problems. H2I seems to work fine, but I2H... shudder I've had too many problems with it.

I don't use World Editor Unlimited. Never liked it. I've heard some guys say not to use it and gave some valid reason, but as I don't use WEU, I don't know. The only change in the world editor I use is jassnewgenpack3d."
but my internet was being stupid.

yeah thanks a lot...btw i use WE UNLIMITED not for GUI add-in functions but expecially because it removes WE limits (you can make a destructible graphic very big, or you can "turn" units make them facing down(hard to explain<.<)...or you can set the time of cast of each skill (btw, i'm removing this too)

however, i NEED attachVariables (or handle vars, as you prefer)....i'm creating a big spell system which use resistance (and i can't use abilities), showed damages and things like it....

Yes probably you can say that is better if i don't start creating a jass script so big as this...however, it's not very difficult, actually i'm at a good point :)

and i started using jass only because i can do things like that :p



btw thanks for suggestions...i've to findout how much attachvars can i put on each unit (because at the moment, i've to put 7 AttachVars on each unit in game...i thinks it's a little bit high...yes they are all integer but...)

A little question: when a unit dies and i don't know if it will be resurrected (so i can't remove it from the game) what should i do to clear attachVars on it?

are they going to be deleted by themselves?(i think no but...)

some solutions?:O
 
Status
Not open for further replies.
Top