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

structs

  1. Axis.Highpriest

    Structs in JASS AI?

    Hi there : ) TLDR at the end. I'm currently trying to write a campaign AI and as you might imagine, it's not working. I have the following line at the beginning of the main function to get some semblance of feedback: call DisplayTextToPlayer(Player(22),0,0,"AI started") When this line shows...
  2. HerlySQR

    Question about allocate and deallocate

    I see some people tried make this own allocators and deallocators to recycling structs, but doesn't the JassHelper already recycle them? Is something that still happening and there is something wrong with using that default functions (something strange because in that case the creator would have...
  3. Prometheus3375

    Issues with structs in vJass

    Before writing it I have googled this topic, but found nothing. Here I describe some bugs in vJass connected with structs. I used JassHelper 0.A.2.B from NewGen pack. First issue. Lets consider next code. struct A[8191] endstruct There is generated code below. You may notice that integer...
  4. Dark-Zalor

    [Solved] Problem with imbricated structures

    I got problems with my spell. Here it is an aura that increases the MaxHp of nearby allies. There is 2 structs Data and Buff. Data checks the unit that are around the owner of the buff Buff is a struct for each allies that got the bonus of life To write the code clearly I made an attribute d...
  5. Anachron

    [Solved] Issue with statics and struct children

    Aim: Have two different children structs that have their own static objects. What happens: When trying to set the children statics it will overwrite for all other parent children. The code above prints "Test: 2 :: 2". I was looking for a way to make this "Test 1 :: 2" library Test initializer...
  6. MyPad

    Widget Utilities

    I thought of writing up something that would allow destructable groups to be utilized for more than what Blizzard has given us access to. Here is what I've written: Knowing of the possible new API for the newer patches of Warcraft III and finally having used it, I have decided to rewrite the...
  7. SaintNicholas

    [Solved] How to turn this to struct

    scope Slash initializer init globals private constant integer ID = 'UNIS' private constant string EF = "Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl" private constant string EFW = "Abilities\\Weapons\\AvengerMissile\\AvengerMissile.mdl" private constant...
  8. MyPad

    [Solved] Question with Indexing (Structs)

    I wonder how this will behave (indexing). Am I doing something wrong with indexing this? private struct lolStruct extends array private static integer count = 0 private static thistype recycle = 0 private thistype recNext private static thistype first...
  9. Spellbound

    [vJASS] Learning Structs

    Trying to fix my Burst Laser system by remaking it with structs. I can't get the lightning effects to destroy properly, so I'm not sure what I'm doing wrong. I'm using this mostly as a way to pre-set the variables instead of having to add a million things when calling StructName.create()...
  10. Magtheridon96

    Structs for Dummies

    Structs For Dummies In this tutorial, I'm going to try to explain the concept of exactly What a struct is and why we use structs. Table of Contents What is a struct Why do we use structs Important methods Difference between Static Methods and Methods Struct extends array Struct...
  11. Kamikazzee

    Structs...

    I've just started into JASS, and I have a question: What are structs? I've got something like this: struct HeroStruct unit this integer unitType player owner //Item Stuff boolean isLookingAtEquipment unit isNotLookingAtEquipment item slot0 integer id0 item slot1...
Top