• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Trigger I've been struggling with

Status
Not open for further replies.
Level 14
Joined
Oct 18, 2013
Messages
719
I've been messing around to do this one damned trigger XD another continuation of one of my posts. I haven't messed with this trigger for awhile, but I need help fixing it. This ONE problem just keeps tripping me up and I'm too lazy to solve it myself. Alright so I pick one available slot from an index and assign an icon to it. However, I don't know how to assign a "duelist" to the correct slot index. The inteface is assigned correctly, but the finalist is not. The Index of Points gets scrambled up which is the issue, so the random integer generated (ex: 3) will not match up with the actual 3rd point... So what do I do to avoid that? It's rather complex and difficult to explain, so I hope I explained well enough.

  • Set TempInt = (Random integer number between 1 and MaxIndex)
  • Set Finalist[TempInt] = Winner[(WinnerNum - 1)]
  • Set UIWinPoint[TempInt] = UIWinPoint[MaxIndex]
  • Set MaxIndex = (MaxIndex - 1)
My duels trigger works like this:
Move Finalist[int] to point x
int= int + 1
move finalist[int] to point x

So to follow the order the UI gives, the points need to "match up" if that makes sense o_O Should I change the duel trigger? It seems that would be the way to do it, but i'm genuinely not sure. :goblin_boom:

-----
edit:

Also, this is on a completely different topic, however it is also an issue im having whilst making my map. Uhm, I'm trying to create a lightning, so I'm using Custom Script that allows attaching a Z coordinate to a lightning. But yeah, using this custom script crashes my world edtior. As in, I will press ok, then when I press ok again it just locks up. Lol? Is it an error with JNPG or is a syntax error causing this to crash WE?
Code:
set udg_LightningStrings[udg_LoopInt] = AddLightningEx("DRAM",true, GetLocationX(udg_CasterLoc), GetLocationY(udg_CasterLoc), GetLocationZ(udg_CasterLoc) + 70), GetLocationX(udg_PuppetLoc[udg_LoopInt]), GetLocationY(udg_PuppetLoc[udg_LoopInt]), GetLocationZ(udg_PuppetLoc[udg_LoopInt]) +55)
 
Level 14
Joined
Oct 18, 2013
Messages
719
Thanks, never knew strings for script had a limit xD Alright so I solved that, but now I'm getting a syntax error. I can't find where there is an extra comma, if there is one xD "
  • set udg_LS[udg_LoopInt] = AddLightningEx("DRAM",true, GetLocationX(udg_Loc), GetLocationY(udg_Loc), GetLocationZ(udg_Loc) + 70), GetLocationX(udg_PuppetLoc[udg_LoopInt]), GetLocationY(udg_PuppetLoc[udg_LoopInt]), GetLocationZ(udg_PuppetLoc[udg_LoopInt]) +55)"
I just counted the # of commas in mine, then compared that to the one in the example spell in this topic: http://www.hiveworkshop.com/forums/...279/beginners-guide-lightning-effects-220370/

Unless I counted wrong, they both have 7. Man, World Editor has just had me stumped lately xD

The error is: "Syntax Error, Unexpected ","?

And also, I keep having this problem that when a unit activates any ability, they get Medivh's Crow Form. The ability code for it is Amrf if I'm correct. So I searched my map's .j file for Amrf and can't find an instance where it will just give it to any unit who activates an ability, though I may be incorrect on that. Are there any other methods to fix this?
 
Last edited:
Level 14
Joined
Oct 18, 2013
Messages
719
Yeah I do. I put KB3D in my map quite a while ago, and didn't have any issue until recently. I doubt it is KB3D though, likely something I did. I'll be sure to check my .j file again and make sure there isn't any instance where it just adds the ability. I'm like 99% sure that's the issue, as I've never set crow form into an ability variable or anything (Thank god xD) And alright, thanks for catching my typos XD

Hmm.. So the creation of the lightning doesn't cause syntax errors, but it doesnt show either xD
 
Last edited:
Status
Not open for further replies.
Top