Search results

  1. substance

    Some basic scripting stuff

    So obviously this is new to everyone so I'm not expecting much but.. I've managed to create a new map, access the script tester from a newly created map (via Data -> View Script) and even added some new code and have it successfully compile. However, I've noticed that there's no way to 'save'...
  2. substance

    Flash Grenade

    I'm working on a flash grenade and pretty much everything is done, however, i cant seemt o come up with a good formula for figuiring out the duration of the 'blind' based on the unit's distance and angle from the grenade. Basically how it should work is the closer you are the the grenade when...
  3. substance

    preventing animation change on walk

    I'm trying to make an ability that , when casted, makes the unit run a certain animation and that unit will STAY in that animation even if he's orderd to move. I tried making a .02 timer that constantly sets his animation to the one i wanted but this looked terrible. I also messed with the...
  4. substance

    Need a formula [MATH]

    I'm changing a texttag's transparency based off the remaining time of a timer. The timer is a 20 second timer and the LESS time remaing the MORE visible the texttag should be. So, for example if there is 1 second left on the timer then the transparency of the texttag should be at 255. If...
  5. substance

    Display information

    So I have a 'callvote system' that allows players to kick other players in a democratic fasion. Once a player initiates a vote I want to display that information to all the players. What I want to display is: name of player being kicked time left untill vote ends how many votes for 'yes'...
  6. substance

    grim001's Object Engine - demo map

    In a nut-shell, this is a demo map showing off the features of a soon to be released physics engine. Map and original post can be found here
  7. substance

    Your favorite map features?

    Due to a delay I have no control over I have some extra time to work on my map's user features and I'm wondering which features you guys find the most usefull/fun in the maps you play? By 'features' I mean the ones that are not specific to the map's genre (TD, AOS) but more general. For example...
  8. substance

    Snippet GetNearestUnitInRangeOfUnit

    This function uses Group Recycling and an 'always true' boolexp (ALL) although you can feel free to edit it. function GetNearestUnitInRangeOfUnit takes unit nearestUnit, real radius returns unit local real x = GetUnitX(nearestUnit) local real y = GetUnitY(nearestUnit) local real...
  9. substance

    System Timer and Group Recycling

    This system recycles timers and groups, getting rid of the need to set them to null, and improving performance and memory usage. This also includes an 'always true' boolexp to avoiding using 'null' in GroupEnum's which can leak. This system requires vJass to work library Recycle initializer...
  10. substance

    Disabled Spellbook

    So I have an passive aura ability based off devotion aura. I dont want the icon to show up in the unit's spellcard when it is given the ability so I thought i'd go with the disabled spellbook trick. If im not mistaken this works by putting the passive ability in the spellbook and then giving...
  11. substance

    Lightning offset

    I have unit that has a gun (based off the marine model) and i'm using lightning to create an effect where it looks like the lightning is coming from the caster's gun to the target unit. Obviously by default the lightning starts from origin of the caster. I figuired i could use projection to...
  12. substance

    Need unique skill-based ability ideas!

    I come to you guys because i'm in need of ability and item ideas for my project. In short, it's a CTF map with a futuristic theme and will work heavily with a physics engine. Here are my heroes(classes) so far: Medic Engineer Cyborg Marine Gunner Recon So what I'm looking for are...
  13. substance

    'groupenum leaks if you dont use a filter'

    GroupEnumUnitsInRange(g,x,y,100,null) Apparently that leaks because it doesnt use a filter. So what's a way around it? Just make a global boolexp and use it whenever you call a groupenum. No, I havent tested it so I'm not 100% sure if this is true, but what's the harm if it isnt? =p...
  14. substance

    An idea I had.

    I'm not sure if this is common sense or maybe even a bad idea, but to me it seems perfect for what i need. Anyway, the idea is for every unit to have his own 'unit data' struct and making accessing the user-created information for that unit easy to access from any function. This gets rid of the...
  15. substance

    Unit_state_max_life

    I've been messing around with healing units VIA triggers but i've run into a problem. call SetUnitState(data.targetunit, UNIT_STATE_LIFE, GetUnitState(data.targetunit, UNIT_STATE_MAX_LIFE)) call BJDebugMsg("unit's current HP is "+R2S(GetUnitState(data.targetunit, UNIT_STATE_LIFE))) The...
  16. substance

    Damage event

    Im making a unit that when he attacks an ally he will damage them like normal but then instantly heal them for the same amount he damaged them x 2. function Trig_MedicAttack_Conditions takes nothing returns boolean return GetUnitTypeId(GetAttacker()) == 'E00W' endfunction function...
  17. substance

    alliance

    Working on a '-balance' system on my map and im trying to setup alliance changes. The names for all the types, however, are vague and I dont know what most do. So If I move a player from the red team to the blue team, I would assume I'd do something like : call...
  18. substance

    Spellbook Attribute System.

    I have an idea for a attribute system and I just wanna make sure it's possible before attemping to make it from scratch. The only reason i assume it may not be is because i've never seen it done and the attribute systems i have seen use item inventory. it's pretty simple but I dont wanna spend...
  19. substance

    callvote kick

    I'm finishing up a simple callvote system to kick people (and hopefully do other things later). Just wanted to make sure things were optimized before i moved on: globals boolean Voting = false timer VotingTimer integer VotingValue timerdialog VotingTimerDialog trigger VoteTrigger...
  20. substance

    'new' attatch method.

    http://wc3campaigns.net/pastebint.php?t=93235&code=29e26baa170b05af2d3ffd04408ae7e1 Alot of talk of handle vars and such to attatch handles so I thought i'd share something grim001 came up with. No I2H.
Top