Jump to content



Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  Elwood : (02 May 2025 - 07:37 AM) When it was active, this place was some of the most fun I've ever had on the internet.
@  Elwood : (02 May 2025 - 07:37 AM) Really wish I liked Discord better so I could hang out with you guys again. I just really prefer forums to Discord. :/
@  Elwood : (02 May 2025 - 07:34 AM) Lol Blazer probably just keeping it up so I can leave it as my homepage for Firefox!
@  Valke : (04 April 2025 - 10:57 AM) wow i cant believe this site is still up
@  acceptance : (27 January 2025 - 08:32 PM) You're right, it really is nostalgic. Totally with Shu on that.
@  Shu : (15 November 2024 - 09:50 PM) Right you are
@  Elwood : (01 August 2024 - 03:41 AM) Wow a new post! ....aaaand it's a bot. Still, it's strangely nostalgic.
@  Oblivion Knight : (26 February 2024 - 11:30 AM) Whoa I can edit a typo. The technology.
@  Oblivion Knight : (26 February 2024 - 11:29 AM) Obligatory message.
@  Elwood : (02 January 2024 - 04:19 AM) Happy New Year!!!
@  Aaron : (13 February 2023 - 09:19 PM) I'm still out here alive. If you remember me, I hope you're doing well!
@  Aaron : (13 February 2023 - 09:09 PM) 2023 and this place is still up huhh
@  Elwood : (05 January 2023 - 07:58 AM) Ah a Christmas greeting from Wolfie! Even if I saw it way late Merry Christmas and Happy New Year to everybody!
@  Cero : (31 December 2022 - 09:27 PM) Man that bot went crazy
@  Whitewolf8 : (24 December 2022 - 10:02 AM) I return once more on the eve of Christmas to haunt you all again!... Mainly Elwood. Hello!
@  Elwood : (25 November 2022 - 04:58 AM) A bot! Ah the nostalgia!
@  Elwood : (02 November 2022 - 02:30 PM) Yo ho ho ho! Thar be the white wolf!
@  Whitewolf8 : (24 October 2022 - 12:29 AM) Well, blimey it's been a while. Hoy there! If anyone's still alive here anyway.
@  Valke : (21 April 2022 - 12:12 PM) im taking the 2nd shout of 2022 😂
@  Elwood : (03 March 2022 - 10:12 PM) Mwuhahaha! The first shout of 2022 is mine!

Photo

Turn Events


  • Please log in to reply
3 replies to this topic

#1 dlamey8015

dlamey8015

    Member

  • Members
  • PipPipPip
  • 43 posts

Posted 11 June 2014 - 11:36 PM

I was just wondering if it was possible to make a turn event occur a set number of turns after another event occurs.

#2 Snow

Snow

    The Combat Medic

  • Veterans
  • PipPipPipPipPipPipPipPipPipPip
  • 926 posts
  • Gender:Male
  • Location:Santiago de Chile
  • Interests:Tons of stuff, figure them out yourself.

Posted 12 June 2014 - 12:28 AM

Umm..... I don't really know. I want to say you can't, but you might be able to do something with conditionals....

The only way I can see it happening is with my small knowledge, you have an event (now known as event 0xYY) that happens on turn 5, 6, 7 and so on, with the same event ID. Then you set a condition that event 0xYY only takes place if event 0xZZ has been activated, and make it so that event 0xYY hasn't been activated so that it checks again next turn. The problem is that you don't really know how many turns it will happen after, since someone could activate event 0xZZ on turn one, making him wait 5 turns, OR someone could activate it on turn 8, so event 0xYY would never happen (in theory you could just keep going until turn 99 though).

I'm guessing this other way won't work for you, but if you're talking about two turn events you could just make two separate events, say one on turn 2 and one on turn 7 if you want 5 turns to pass between them.
Posted Image
Posted Image
This won't be removed until Chile wins the World Cup - Started 24/06/12
BTW, I take map requests if anyone wants to make one XD, just send me a PM and I'll most likely accept. If you wanna see some of previous work you can visit my gallery here, I'd skip to the end because I've improved alot XD.

#3 Fire Blazer

Fire Blazer

    You ready?

  • Creator
  • 12,103 posts
  • Gender:Male
  • Location:U.S.A.
  • Interests:Too many to list. =P

Posted 12 June 2014 - 06:12 AM

I'm not sure what Snow was saying but I'm guessing it was something like

event A happens turns 1-255
event B happens whenever

event A:

if event B has happened
if event ID 1 has not been triggered
set event ID 1 to triggered
else event ID HAS been triggered
activate event
else event B has NOT happened, do nothing
end event

you would have to add stuff like

"if event ID 1 has not been triggered
set event ID 1 to triggered
else event ID HAS been triggered"

for every turn such that it records a new event ID for every turn but only records the turns after an event happens

you could also do this much easier using ASM

Bblazer2.png

Signature thanks to Shu.


#4 SmashedFish

SmashedFish

    Tom is not for opening

  • Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1,858 posts
  • Gender:Not Telling
  • Interests:fictional characters

Posted 17 June 2014 - 01:17 PM

I'm not terribly good with conditionals yet, so none of this may work, but my C++ backgroud was yelling at me to add the following:

Say you want event B to happen 3 turns after event A, and it's something the player triggers, so you have no idea when it would start.

if event Z has triggered:
activate event B
else if event Y has been triggered:
activate event Z
else if event X has been triggered:
activate event Y
else if event A has been triggered:
activate event X

The basic idea is that event A is what the player does, which sets a flag. Event X sets the flag for event Y, which sets the flag for event Z, which sets the flag for event B, which is what you want to happen three turns later. I'm not sure if eventing uses the same sort of IF/ELSE shenanigans as C++, but if so, you want them using else ifs and in reverse order of the order they need to trigger in to be sure that only one happens per turn.

Images - 11/22 Writing - 5/17 FE: Immortal Shrine
forum_signature__aeiou_by_sakowfniapqf-d

 

Spoiler


Need help with hacking? Post in the subforum, or Skype me (smashedfish76).





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users