| 10-19-2006, 01:00 AM | #1 |
Well, I dont want my quests triggered by rects could I do this JASS:Start Quest A Events Player 1 red selects a unit (11x, for each player) Conditions Actions -------- Check if the player has the quest... -------- Custom script: if GetQuestState(GetTriggerPlayer(),1)==0 then -------- Start Quest 1 -------- Custom script: call StartQuest( GetTriggerPlayer(), 1 ) Custom script: endif (NORMAL Below) JASS:Start Quest A Events Unit - A unit enters gg_rct_ReciveQuestA Conditions ((Triggering unit) is A Hero) Equal to True Actions -------- Check if the player has the quest... -------- Custom script: if GetQuestState(GetTriggerUnit(),1)==0 then -------- Start Quest 1 -------- Custom script: call StartQuest( GetTriggerUnit(), 1 ) Custom script: endif could I do that w/o breaking it? |
| 10-19-2006, 01:25 AM | #2 |
No, you can't because StartQuest and GetQuestState take a unit as first argument, but you're specifing a player as first argument. You must specifiy a unit, such as the main hero, for it to work. |
| 10-19-2006, 01:38 AM | #3 |
Soon as bought, I load my heroes into an array could I do WTH, everytime I try to enable one of the triggers, my map instantly closes, without error wth o_O? o well, i'll just replace it with backups Hey um, could you tell me if its possible at all to change it? like JASS:Start Quest A Events Player 1 red selects a unit (11x, for each player) Conditions Actions -------- Check if the player has the quest... -------- Custom script: if GetQuestState(udg_PlayersHero[GetConvertedPlayerId](),1)==0 then -------- Start Quest 1 -------- Custom script: call StartQuest(udg_PlayersHero[GetConvertedPlayerId(), 1 ) Custom script: endif Is that possible? Why, everytime I try to save, with the quest thing, does it instantly close? |
| 10-19-2006, 08:38 AM | #4 |
You forgot the ] in: call StartQuest(udg_PlayersHero[GetConvertedPlayerId()], 1 ) and made the ] before the () GetQuestState(udg_PlayersHero[GetConvertedPlayerId()],1)==0 Btw. when you write something in Jass, remove those nasty "Custom script:"s. |
| 10-19-2006, 03:44 PM | #5 |
He is writting triggers within jass tags. |
