• 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] Jass Cinematic system help

Status
Not open for further replies.
Level 6
Joined
Mar 10, 2008
Messages
147
Hello

I'm trying to use the jass cinematic system and everytime i try to make my own trigger in it, i get some weird errors

For example error1 : expected a function name
and error2 : expected '('

I don't know any jass, and i'm clueless to what this means. Can anyone please explain me how to fix this?

LH
 

Attachments

  • Error1.jpg
    Error1.jpg
    79 KB · Views: 94
  • Error2.jpg
    Error2.jpg
    65.6 KB · Views: 96
You're calling functions wrongly: the lines should be:
JASS:
call UnitSlide( unit code, -9571, -14306.6, 40 ) //If I can see the right numbers
// The other one
call ActorAssign( unit code )

The "unit code" I put above is a weird code xD
I suggest you to do like this:
  • Set tempUnit = Your unit
  • Custom script: call UnitSlide(udg_tempUnit, -9571, -14306.6, 40)
  • -------- The other --------
  • Set tempUnit = Blademaster of the Blackrock Clan 0303 <gen>
  • Custom script: call ActorAssign(udg_tempUnit)
 
Level 6
Joined
Mar 10, 2008
Messages
147
Thank you very much, i'll try it right away.

Edit: Arf i did what you said but i have this error now : expected a function name and expected a function.
Myabe i can try with the unit code thing? How do i get a unit's code?
 
Go to the Object Editor and "View > Object Values as Raw Data".

Then just put the code that appears near the unit in which you want to slide.

Show us your functions. I strongly suggest either learning JASS officially or using GUI JASS. (Use Custom Scripts to perform your actions)

Did you implement the system correctly? According to your errors, it seems like you didn't put the system in the map header. To do so, copy the whole map header of the Cinematic System (just click the map name and copy the code) then just paste it into your own map header.

And instead of actually entering the x and y values, I suggest you place a region, retrieve the center of the region in a location variable, get the x and y of that location, null and remove the location, then use the coordinates for that function.

Sorry if all this is confusing. :\
 
Status
Not open for further replies.
Top