• 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.

I'm stuck

Status
Not open for further replies.
Level 4
Joined
Nov 7, 2009
Messages
83
The title says most of what you need to know. I'm stuck.
I am good at programming in C,C++ and MATLAB (if you can say MATLAB involves programming, but it doesn't matter).
Thing is that I see a lot of different ideas when I try to make a spell. I think I can make a queue, I can use events, I always try to use functions so that I use modular programming, I try to use structures (in fact they are more a C++ class than a structure, because C structures don't have methods), but I just don't get it, I can't handle JASS, for every idea I attempt, I come to a dead end (some of them fail because JASS/vJASS has some asymetries, but they are the least).
So, my bigger problems come when I try to coordinate everything perfectly, because I would like to put, for example, more than one trigger in a scope, or I have to wait for a condition, like waiting for an attack to happen, and so I need sometimes to pass some variables from one trigger to another, but I want variables to stay hidden inside a module and I cant pass variables between triggers the way you do with functions (maybe this could be solved using handles, like the hated userdata and handles in MATLAB, but I don't know how do handles work in the world editor).
In conclusion, I will ask you experts for manuals, short and clear tutorials and every thing you think will be more useful for unstucking me.

Thanks in advance!
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
http://www.hiveworkshop.com/forums/...ls-280/vjass-indexer-tutorial-structs-114223/
A tutorial about how most of the spellmakers here make vJass MUI involving structs..

http://www.hiveworkshop.com/forums/jass-ai-scripts-tutorials-280/vjass-oop-lesson-128236/
A tutorial about what vJass is capable of with OOP, involving interfaces structs and some other stuff..

I hope this helps you somehow.. There are plenty more (vJass) tutorials in the tutorial section here on THW
(For if you cant find it :p http://www.hiveworkshop.com/forums/tutorials.php )
 
Status
Not open for further replies.
Top