[SOLVED]Thing_Move issue
[SOLVED]Thing_Move issue
So i am trying to move all players to specific teleport destinations based on their tid. Thing is, they aren't teleporting.
The code.
Now before you go on and ramble about the obvious stuff, yes, i have teleport destinations with the tags 7000, 7001, 7002 etc. Also, it's a global acs script.
The code.
Now before you go on and ramble about the obvious stuff, yes, i have teleport destinations with the tags 7000, 7001, 7002 etc. Also, it's a global acs script.
Last edited by agaures on Sun Nov 17, 2013 9:27 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
RE: Thing_Move issue
I never did this, but if im right, you need to use teleport_other.
RE: Thing_Move issue
I have already tried teleport_other, same result.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
RE: Thing_Move issue
Try Teleport(random(min,max), 0, 0) the min and max will be the lowest and the highest TID's of the Teleport destinations you want to teleport them.
THE ROMANIAN POWER
Code: Select all
<+Dastan> edd
<+Dastan> boxxy skin when
<+Shift> dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan> Shift, yes
--------------------------------------------------------------------
21:53:26 <@Estar> well, if i'd be a girl, i would say ideidoom has ok looks
RE: Thing_Move issue
Teleport, teleports the activator. In this case, there are no activators. But i could use the random thing for thing_move.IdeIdoom wrote: Try Teleport(random(min,max), 0, 0) the min and max will be the lowest and the highest TID's of the Teleport destinations you want to teleport them.
Edit:
Nevermind, that would only move one player.
Last edited by agaures on Sun Nov 17, 2013 7:53 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
RE: Thing_Move issue
Look up that samsara port level. it had teleport_other too i think, but with a timer.
This timer kept restarting the script untill all 32 player id's came by, thats how it teleported them to the boat and land.
or you could kill everybody and change their spawn to wherever you want them :#
This timer kept restarting the script untill all 32 player id's came by, thats how it teleported them to the boat and land.
or you could kill everybody and change their spawn to wherever you want them :#
Last edited by Mr.Man on Sun Nov 17, 2013 7:54 am, edited 1 time in total.
RE: Thing_Move issue
I could use a loop:
Edit:
Didn't work.
Edit2:
I added a '!' before the 'x == playercount()' and then it never stopped teleporting.
Code: Select all
script 1 (void)
{
int x = 0;
until(x == playercount())
{
teleportother(random(1000, 1063), 7000+playernumber(), 1);
delay(1);
x++;
}
}Didn't work.
Edit2:
I added a '!' before the 'x == playercount()' and then it never stopped teleporting.
Last edited by agaures on Sun Nov 17, 2013 8:14 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
RE: Thing_Move issue
I don't think it's void. Try Enter/Open and make it just teleport and see if it works.
EDIT: Wait a minute, you have sector tags over 7000?
EDIT: Wait a minute, you have sector tags over 7000?
Last edited by IdeIdoom on Sun Nov 17, 2013 8:17 am, edited 1 time in total.
THE ROMANIAN POWER
Code: Select all
<+Dastan> edd
<+Dastan> boxxy skin when
<+Shift> dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan> Shift, yes
--------------------------------------------------------------------
21:53:26 <@Estar> well, if i'd be a girl, i would say ideidoom has ok looks
RE: Thing_Move issue
Why not over 9000?
You should add a counter, like (teleported++) if you know what i mean
And if (teleported==32) terminate;
You know what i mean?
You should add a counter, like (teleported++) if you know what i mean
And if (teleported==32) terminate;
You know what i mean?
RE: Thing_Move issue
IdeIdoom wrote: EDIT: Wait a minute, you have sector tags over 7000?
@Mr.Man: I will try that.agaures wrote:yes, i have teleport destinations with the tags 7000, 7001, 7002 etc.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
RE: Thing_Move issue
Teleport destinations? Teleport destinations use TIDs not Tags. Sectors use tags. If you already defined the teleport destinations things with TIDs, you don't need sector tags.
THE ROMANIAN POWER
Code: Select all
<+Dastan> edd
<+Dastan> boxxy skin when
<+Shift> dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan> Shift, yes
--------------------------------------------------------------------
21:53:26 <@Estar> well, if i'd be a girl, i would say ideidoom has ok looks
RE: Thing_Move issue
TIDs, Tags, same thing. Also, i never used a sector tag.IdeIdoom wrote: Teleport destinations? Teleport destinations use TIDs not Tags. Sectors use tags. If you already defined the teleport destinations things with TIDs, you don't need sector tags.
Edit:
Mr.Man, turns out i don't know what you mean.
Last edited by agaures on Sun Nov 17, 2013 8:33 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
RE: Thing_Move issue
Code: Select all
script 1 (void)
{
int x = teleported;
until(x == 64)
{
teleportother(random(1000, 1063), 7000+playernumber(), 1);
delay(1);
x++;
}
}
THE ROMANIAN POWER
Code: Select all
<+Dastan> edd
<+Dastan> boxxy skin when
<+Shift> dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan> Shift, yes
--------------------------------------------------------------------
21:53:26 <@Estar> well, if i'd be a girl, i would say ideidoom has ok looks
RE: Thing_Move issue
I was thinking what he was trying to imply was quite like my code... which doesn't work.IdeIdoom wrote:Probably what he meant.Code: Select all
script 1 (void) { int x = teleported; until(x == 64) { teleportother(random(1000, 1063), 7000+playernumber(), 1); delay(1); x++; } }
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
- Vincent(PDP)
- Forum Regular
- Posts: 527
- Joined: Thu Mar 14, 2013 7:35 pm
- Location: Sweden
- Clan: My DOOM site
- Clan Tag: <MDS>
- Contact:
RE: Thing_Move issue
This should work:agaures wrote:I was thinking what he was trying to imply was quite like my code... which doesn't work.IdeIdoom wrote:Probably what he meant.Code: Select all
script 1 (void) { int x = teleported; until(x == 64) { teleportother(random(1000,1063), 7000+playernumber(), 1); delay(1); x++; } }
Code: Select all
Script 1 ENTER
{
Delay(1);
If(GameStarted == True) //Or what you want to call it
{
Teleport(7000+PlayerNumber(), 0, 1);
Terminate;
}
Restart;
}
Last edited by Vincent(PDP) on Sun Nov 17, 2013 9:03 am, edited 1 time in total.
RE: Thing_Move issue
Actually, replace 1000+PlayerNumber() with 7000+PlayerNumber()
THE ROMANIAN POWER
Code: Select all
<+Dastan> edd
<+Dastan> boxxy skin when
<+Shift> dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan> Shift, yes
--------------------------------------------------------------------
21:53:26 <@Estar> well, if i'd be a girl, i would say ideidoom has ok looks
- Vincent(PDP)
- Forum Regular
- Posts: 527
- Joined: Thu Mar 14, 2013 7:35 pm
- Location: Sweden
- Clan: My DOOM site
- Clan Tag: <MDS>
- Contact:
RE: Thing_Move issue
No, because the teleport destinations had tid 1000-1063.IdeIdoom wrote: Actually, replace 1000+PlayerNumber() with 7000+PlayerNumber()
RE: Thing_Move issue
Funny, i was building on a similar code just now.
Replacement for script 999:
script 995
Edit:
Replacement for script 999:
Code: Select all
script 999 enter //Give all players unique tid
{
Thing_ChangeTID(0, 1000+PlayerNumber());
SetActorProperty(1000+PlayerNumber(), APROP_HEALTH, 100);
ACS_Execute(995, 0, 0, 0, 0);
}Code: Select all
script 995 (void)
{
if(countdown == true)
{
Thing_Move(1000+PlayerNumber(), 7000+PlayerNumber(), 0);
terminate;
}
Delay(1);
Restart;
}Also, sorry. IdeIdoom is right, the teleport destinations had the tids 7000-7063.Vincent(PDP) wrote:No, because the teleport destinations had tid 1000-1063.IdeIdoom wrote: Actually, replace 1000+PlayerNumber() with 7000+PlayerNumber()
Because the first argument in TeleportOther is the TID of the thing to teleport.Vincent(PDP) wrote: Ok why did he write random(1000,1063) then :S
Last edited by agaures on Sun Nov 17, 2013 9:04 am, edited 1 time in total.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything
- Vincent(PDP)
- Forum Regular
- Posts: 527
- Joined: Thu Mar 14, 2013 7:35 pm
- Location: Sweden
- Clan: My DOOM site
- Clan Tag: <MDS>
- Contact:
RE: Thing_Move issue
Ok your script will probably not work, because no player has activated the script, so the PlayerNumber will only be 0 all the time
RE: Thing_Move issue
Watch the both codes, mate. First script has ENTER and it executes the teleporting script.
THE ROMANIAN POWER
Code: Select all
<+Dastan> edd
<+Dastan> boxxy skin when
<+Shift> dastan you really want to fap at it this much and now you are going crazy and shredding your hair into a million tiny pieces for this boxxy skin to come out that way you can cum out
<+Dastan> Shift, yes
--------------------------------------------------------------------
21:53:26 <@Estar> well, if i'd be a girl, i would say ideidoom has ok looks